获取钱包
描述
获取用户当前钱包
请求方式
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/wallet/get |
| Request Method | POST |
请求参数
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | Api接入规范 | |
| user_id | string | Y | 用户id(上限50字符) |
| currency | string | Y | 币种 |
返回参数
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | 对应 code 的错误描述 |
| data | array | Y | Body |
| data.balance | string | Y | 余额 |
请求示例
Http Request
Post Method
URL : /wallet/get?mid=1697028447&sign=8056d1931af453635c3b0bc89c96605c7d3731cd29f698f0fe48c2384e945cce&ts=1713768205
{"user_id":"640d9cc9e398629379e5bd22","currency":"MXN"}
Http Response(success)
{
"code": 0,
"msg": "",
"data": {
"balance": "100"
}
}