Get wallet records
INFO
Wallet deposit and withdrawal history (only the last 60 days of records are provided)
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/wallet/history |
| 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 |
| start_time | int | Y | Start time (millisecond timestamp) |
| end_time | int | Y | End time (millisecond timestamp) |
Return Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | Message for debug |
| data | array | Y | Body |
| data.amount | string | Y | Transaction amount |
| data.ops_type | int | Y | Operation type: 1 - Cash In, 2 - Cash Out |
| data.biz_id | string | Y | Transaction receipt |
| data.before_balance | string | Y | Balance before operation |
| data.after_balance | string | Y | Balance after operation |
| data.created_at | int64 | Y | Operation 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
},
]
}