获取钱包记录
描述
钱包充值、转出余额历史记录(只提供最近60天的记录)
请求方式
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/wallet/history |
| Request Method | POST |
请求参数
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | Api接入规范 | |
| user_id | string | Y | 用户id(上限50字符) |
| currency | string | Y | 币种 |
| start_time | int | Y | 开始时间(毫秒时间戳) |
| end_time | int | Y | 结束时间(毫秒时间戳) |
返回参数
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | 对应 code 的错误描述 |
| data | array | Y | Body |
| data.amount | string | Y | 操作金额 |
| data.ops_type | int | Y | 操作类型,1-充值,2-转出余额 |
| data.biz_id | string | Y | 订单流水号 |
| data.before_balance | string | Y | 操作前余额 |
| data.after_balance | string | Y | 操作后余额 |
| data.created_at | int64 | Y | 操作时间戳(毫秒) |
请求示例
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
},
]
}