Register Player

Before a player can enter the game, this interface must be called to complete player registration, after which they can enter and play the game.

Request URL

POST {API_URL_ROOT}/player/register

Request Parameters

Header Content

Parameter Name Required Type Description
sign Yes string Signature, calculated using Signature Algorithm
timestamp Yes int UTC timestamp in seconds, seconds elapsed from January 1, 1970 to now, e.g.: 1741837297
Accept-Language Yes string Accepted language code, refer to Language List, e.g.: zh,en, to provide corresponding language error messages when errors occur.
Content-Type Yes string "application/json; charset=utf-8"

BODY Content

Parameter Name Required Type Description
tenantId Yes int Merchant ID, unique integer assigned by the platform
siteId No string Merchant site ID, required when there are multiple sites, can be set to merchant ID if there's only one site
userId Yes string Merchant's player ID, ID that can distinguish each player
nickName Yes string Player nickname
balance No decimal Balance
currency No string Currency

Example

{
  "tenantId": 1,
  "siteId": "123",
  "userId": "t1_276682",
  "nickName": "Chiba",
  "balance": 10304.00,
  "currency": "BRL"  
}

Response Parameters

Parameter Name Type Description
isSuccess boolean Indicates whether the operation was successful
code int Error code, when isSuccess is false, this field value is a positive integer, Error Codes
message string Error message, the interface will return corresponding error messages based on the Accept-Language value
data object Data, null in this case

Example

{
  "isSuccess": true,
  "code": 0,
  "data": null
}

results matching ""

    No results matching ""