Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are two key processes that Vendor will need to following when using the Vendor Services in API-NG:

Each of these processes are detailed below.

Subscribing a Customer

Anchor
Subscribing
Subscribing

Preconditions: Customer has a Betfair account.  Vendor has a Betfair vendor account, the app key for their app, and their (Vendor) session token.

  1. Customer visits Vendor’s web site and decides to sign up for the Vendor’s app.
  2. The Customer purchases a 12 month subscription to the application from the Vendor’s web site.
  3. The Vendor’s web site server then calls the Account API-NG operation getApplicationSubscriptionToken, passing in the Vendor’s app key, a valid session token for the Vendor’s Betfair account (to prove that they own that App Key) and the length of the subscription required (365 days in this scenario).
  4. Betfair returns to the vendor a Subscription Token of the form ABCD-EFGH-IJKL.
  5. The Subscription Token is then provided to the instance of the Vendor’s app used by the Customer. 

    This may happen in a number of ways, including:

    i)  Emailed from Vendor to Customer, who then types the subscription token into the app.
    ii) Associated with the Customer’s app instance by the Vendor, so that the token can be cited by the app based on Customer login to the app.

  6. The Vendors App requires Customer to login to Betfair using interactive login method. See sample code interactive login sample code here
  7. Betfair returns Customer’s session token to the app.
  8. The subscription is then activated by the app calling activateApplicationSubscription passing in the subscription token and a valid session token for the Customer

 

 

Checking a Customers Subscription History

Anchor
CheckingSub
CheckingSub
In this scenario the Vendor wishes to check the customer’s subscription status to establish if the customer has:

...