Credit Settle
INFO
This callback is sent when the game is settled.
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | <MerchantHost>/credit_n_settle Like: http://www.game.com/credit_n_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 |
| 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 |
| game_name | string | Y | game name |
| 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>/credit_n_settle?mid=1697028447&sign=409569663365c5fda551a083db95a05ca707b8b31cdd9904c3c658661301073b&ts=1713768205
{"biz_id":"1782255166111227904","round_id":"1782299428861145088","game_code":"gp_classic_4","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"
}
}
}