Wallet IntegrationAuthenticate

Authenticate

The authentication call is the initial request required before any monetary transaction can occur between the Sportsbook and the Casino Operator’s wallet system. The purpose of this call is to validate a one-time authentication token issued by the Operator’s wallet system and passed during the Sportsbook UI launch. As a result of the authentication call, the Operator’s wallet system should return the basic details of the player.

Request

  • Path: /authenticate
  • Retried: No
FieldTypeDescription
authTokenstring (required)One-time auth token issued by Operator’s wallet that identifies player session

Example Autenticate request

POST https://{wallet base url}/authenticate HTTP/1.1
Content-Type: application/json
 
{
    "authToken": "e904d244-0353-42dd-b47b-7ef9aebe74d5"
} 

Response

FieldTypeDescription
playerIdstring (required)Unique player identifier in Operator’s PAM
brandCodestring (required)Brand reference
sessionIdstring (required)Unique session identifier. Sent in any subsequent calls
displayNamestring (required)Player’s display name. Cannot be email address
balancedecimal (required)Player’s current balance in player’s currency
currencystring (required)Currency code for player’s balance
countrystring (required)Country of the player’s country

Example Authenticate response

{
    "playerId": "2b84aabc-e2cb-4fbc-a038-e2123e0a0311",
    "brandCode": "CASINO_BRAND",
    "sessionId": "a5fee2a1-45a2-41f2-9e08-f2101bf1592a",
    "displayName": "Test player",
    "balance": 100.00,
    "currency": "USD",
    "country": "GB"
}