Skip to content
  • There are no suggestions because the search field is empty.

How can I create users (players)?

User details (such as token, ID, language, currency) are provided from your side. When the iFrame is initialised for a logged-in user, you need to pass a user session token (any string used to authorise users to make debit/credit operations); when omitted, a user is not allowed to bet since the iFrame is in the logged-out mode. When a user token is set in the iFrame initialisation properties, the User details(/userDetails) endpoint will be called (see the details of this endpoint in the iFrame documentation). User handling and wallet implementation should exist in your sportsbook before integrating the iFrame. Please note that the iFrame is not a complete sportsbook platform, it needs a pre-existing user wallet implementation (user and funds handling) to operate. Elaboration:

  1. You need to set up a Rest API as defined in our documentation; this API will be the intermediary between our iFrame and your back-end.
  2. On this API, there need to be 3 endpoints - /userDetails, /debitUser, /creditUser
  3. When you want to initialise the iFrame for a logged in user, you need to pass the user's session token in the iFrame initialisation script parameters, in the "token" field.
  4. When you pass the user's session token to the iFrame, the iFrame will do a request to your API's /userDetails endpoint with this token, and will expect a response with the details of this user (ID, currency, language...).
  5. Only if a correct response is received from your API's /userDetails endpoint will the iFrame load for the user; otherwise, the iFrame will be empty (= no matches, tournaments, or sports).
  6. If you want to initialise the iFrame without the user session (= nobody is logged in, nobody can bet), then you should not include the "token" field in the iFrame initialisation config.