Skip to content

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

ItemNameSample
PathPath{Api_Address}/wallet/cash_in
Request MethodPOST

Request Parameters

NameTypeRequiredDescription
Sign ParamsYView details
user_idstringYUser Unique Identifier. (Limit: 50 characters)
currencystringYCurrency
amountstringYAmount
biz_idstringYTransaction voucher, unique for each user to prevent duplicate top-ups. (Limit: 50 characters)

Return Parameters

NameTypeRequiredDescription
codeintY
msgstringYMessage for debug
dataarrayYBody
data.balancestringYBalance

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"
    }
}