Credit
INFO
Player receives funds (winning a game, refund, etc.).
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | <MerchantHost>/credit Like: http://www.game.com/credit |
| 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 |
| amount | string | Y | Amount |
| game_name | string | Y | game name |
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?mid=1697028447&sign=30700e51895537ab9e375d048a76ad8cb0b9e447c65db968f83e9f98cb6e9607&ts=1713768205
{"biz_id":"1782255166111227905","round_id":"1782299428861145088","game_code":"gp_classic_4","user_id":"jUhNj+meQ16inuksiKj0zR88","currency":"PHP","amount":"31.21","reason":"win","game_name":"scratch_match"}
Http Response(success)
{
"code": 0,
"msg": "",
"data": {
"balance": {
"amount": "35.64",
"currency": "PHP",
"user_id": "jUhNj+meQ16inuksiKj0zR88"
}
}
}