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
| Field | Type | Description |
|---|---|---|
authToken | string (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
| Field | Type | Description |
|---|---|---|
playerId | string (required) | Unique player identifier in Operator’s PAM |
brandCode | string (required) | Brand reference |
sessionId | string (required) | Unique session identifier. Sent in any subsequent calls |
displayName | string (required) | Player’s display name. Cannot be email address |
balance | decimal (required) | Player’s current balance in player’s currency |
currency | string (required) | Currency code for player’s balance |
country | string (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"
}