The Data method is used to retrieve user (player) information.
BETCORE calls this method to get additional information about the user (player), in particular their balance.
The request body is a JWT token. The data field contains a JSON string containing the PartnerUserId (player ID, string) and TagId.
{
"nbf": 1620989453,
"exp": 1620989463,
"iss": "https://test.tvbetapi.net/identity-api",
"data": "{\"PartnerUserId\":\"SomeUserId100\",\"TagId\":1313}",
"client_id": "PartnerClient-1556"
}
| Parameter | Data type | Description | Required | |
|---|---|---|---|---|
| JWT payload | ||||
| data | json string | Request data. | Yes | |
| Â | PartnerUserId | string | Partner's player ID. | Yes |
| TagId | number | Identification tag for an embedded iFrame page element; relevant for Partners using WebFrame as a client. See more on Tags. |
Yes | |
| ExtraData | object | Additional data at the Partner's request. | No | |
curl --location --request POST 'https://partners-api-host/users/data' \
--header 'Content-Type: application/json' \
--data-raw '"eyJhbGciOiJSUzI1NiIsImtpZCI6IkQyNTk5NTU5REMxNkI5NkZGNkU5OTI2NkQ2MTdBMDgyQjk2MjdDNUEiLCJ0eXAiOiJKV1QiLCJ4NXQiOiIwbG1WV2R3V3VXXzI2WkptMWhlZ2dybGlmRm8ifQ.eyJuYmYiOjE2MjA5ODk0NTMsImV4cCI6MTYyMDk4OTQ2MywiaXNzIjoiaHR0cHM6Ly90ZXN0LnR2YmV0YXBpLm5ldC9pZGVudGl0eS1hcGkiLCJkYXRhIjoie1wiUGFydG5lclVzZXJJZFwiOlwiU29tZVVzZXJJZDEwMFwifSIsImNsaWVudF9pZCI6IlBhcnRuZXJDbGllbnQtMTU1NiJ9"'{
"ErrorCode": 200,
"Message": "Success",
"Value": {
"Balance": "7100.5"
}
}