Cash In
INFO
Top up a specific player's cash wallet. This operation must be performed after a successful response from game_start(./game_start.md). The interface can be called multiple times for recharges.
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/wallet/cash_in |
| Request Method | POST |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | View details | |
| user_id | string | Y | User Unique Identifier. (Limit: 50 characters) |
| currency | string | Y | Currency |
| amount | string | Y | Amount |
| biz_id | string | Y | Transaction voucher, unique for each user to prevent duplicate top-ups. (Limit: 50 characters) |
Return Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | Message for debug |
| data | array | Y | Body |
| data.balance | string | Y | Balance |
Sample
Http Request
Post Method
URL : /wallet/cash_in?mid=1697028447&sign=628b7e189c237cdca2a8aed48abbb5fdd2e180fc288a3338963feb884763d495&ts=1735279133
{"user_id":"640d9cc9e398629379e5bd22","currency":"MXN","amount":"100","biz_id":"1234567890"}
Http Response(success)
{
"code": 0,
"msg": "",
"data": {
"balance": "100"
}
}