Skip to content

Get wallet records

INFO

Wallet deposit and withdrawal history (only the last 60 days of records are provided)

Request Method

ItemNameSample
PathPath{Api_Address}/wallet/history
Request MethodPOST

Request Parameters

NameTypeRequiredDescription
Sign ParamsYView details
user_idstringYUser Unique Identifier. (Limit: 50 characters)
currencystringYCurrency
start_timeintYStart time (millisecond timestamp)
end_timeintYEnd time (millisecond timestamp)

Return Parameters

NameTypeRequiredDescription
codeintY
msgstringYMessage for debug
dataarrayYBody
data.amountstringYTransaction amount
data.ops_typeintYOperation type: 1 - Cash In, 2 - Cash Out
data.biz_idstringYTransaction receipt
data.before_balancestringYBalance before operation
data.after_balancestringYBalance after operation
data.created_atint64YOperation timestamp (milliseconds)

Sample

Http Request
    Post Method
    URL : /wallet/history?mid=1697028447&sign=87fd689577f07fe1a135404ef9f6dad8e940b08fb62828e6dfb59254699e53a5&ts=1713768205 
    {"user_id":"640d9cc9e398629379e5bd22","currency":"MXN","start_time":1735228800000,"end_time":1735315200000}

Http Response(success)
    {
    "code": 0,
    "msg": "",
    "data": [
        {
            "amount": "100",
            "ops_type": 1,
            "biz_id": "1234567890",
            "before_balance": "1000",
            "after_balance": "1100",
            "created_at": 1735315200000
        },
        {
            "amount": "100",
            "ops_type": 2,
            "biz_id": "1234567890",
            "before_balance": "1000",
            "after_balance": "1100",
            "created_at": 1735315200000
        },
    ]
}