Settle
INFO
This callback is sent when the game is settled.
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | <MerchantHost>/settle Like: http://www.game.com/settle |
| Request Method | Post |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | View details | |
| biz_id | string | Y | Order Num |
| round_id | string | Y | Game Round Id |
| game_id | int | N | Game Id |
| game_code | string | Y | The index of game data |
| game_name | string | Y | Game Name |
| user_id | string | Y | User Unique Identifier |
| currency | string | Y | Currency |
| bet_amount | string | Y | Bet Amount |
| pay_out | string | Y | Pay Out |
| multiplier | string | Y | Multiplier |
| start_time | int | Y | Start Time |
| end_time | int | Y | End Time |
| result | string | Y | (payout > 0) "win" "lose" |
| actual_bet_amount | string | Y | The actual bet amount is the same as bet_amount without special logic |
Return Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | Message for debug |
| data | object | Y | Body |
| data.balance | object | Y | Balance Object |
| balance.user_id | string | Y | User unique identifier |
| balance.currency | string | Y | Currency |
| balance.amount | string | Y | Amount |
Sample
Http Request
Post Method
URL : <MerchantHost>/settle?mid=1697028447&sign=66a3036691a70474d21db54e280536946018ed748b1bd59d61d479b0b65c9891&ts=1713768205
{"biz_id":"xwqca+cfqoii1298","round_id":"rquonvuhqwi123cdjas","game_id":1698141171540,"user_id":"jUhNj+meQ16inuksiKj0zR88","currency":"PHP","bet_amount":"1","multiplier":"1.9913","pay_out":"1.9913","result":"win","start_time":1693555029,"end_time":1693555045,"game_name":"scratch_match","actual_bet_amount":"1"}
Http Response(success)
{
"code": 0,
"msg": "",
"data": {
"balance": {
"amount": "35.64",
"currency": "PHP",
"user_id": "jUhNj+meQ16inuksiKj0zR88"
}
}
}