Authentication
This request is sent to merchant's callback url to authenticate the user in the game
| path | /auth |
|---|---|
| method | POST |
| headers | x-api-key |
Request
- Parameters
- Example
| Parameter | Description |
|---|---|
| token | String - Player's token on the merchant's side |
{
"token": "0ae4b6385b4a5966a5849c0d8b50202a"
}
Response
- Parameters
- Success Example
- Error Example
| Parameter | Description |
|---|---|
| code | Number - response status code |
| message | String - response explanation |
| data | Object
|
{
"code": 200,
"message": "ok",
"data": {
"id": "12345",
"name": "johndoe",
"balance": 1000
}
}
{
"code": 401,
"message": "Invalid user token",
"data": {}
}