Cancel
If any issue about network or request timeout force us to cancel the deduct, after we've canceled the deduct, we will send this API request to inform you. Cancel means the processing bet in a game will be cancel , and will not be accepted anymore.
Access Details
| Restful Endpoint | /api/payment/cancel |
|---|---|
| Method | POST |
| Headers | X-Company-Key |
RESTful Request
{
"session_id": 0,
"game_id": 0,
"username": "",
"transaction_id": ""
"is_cancel_all" : false,
"reason": "",
"happened_at": 0,
}
RESTful Response
{
"data": {
"transaction": {},
},
"error": {},
}
Sample
Request
{
"session_id": 123,
"game_id": 1,
"username": "sol",
"transaction_id": "123-userID-happened_at",
"is_cancel_all" : true,
"happened_at": 1679755004,
"reason": ""
}
Response
{
"data": {
"username": "sol",
"balance": 2000,
"happened_at": "1679755004",
},
"error": {
"id": 0,
"msg": ""
}
}