22. 通过用户名获取存款和提款交易(通用)
用于商户根据用户名获取存款和提款交易
方法 : [Post]
路径 : {{domain}}/ext/depositWithdrawTransactionHistoryByUsername/{{prefix}}/{{agentUsername}}
内容类型 : application/json
请求正文
{
"agentUsername": "{{agentUsername}}",
"username":"test001",
"key": "{{key}}",
"startDate": "01-02-2022 (DD-MM-YYYY)",
"endDate": "02-02-2022 (DD-MM-YYYY)",
"web": "{{whiteLabel}}"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
agentUsername | String | testag | 使用的代理 |
username | String | test001 | 需要查询的用户名 |
key | String | tnyENKDWvOkBXpvm6UZVa | 代理的密钥 |
startDate | Date | 01-02-2022 | 查询的开始日期 |
endDate | Date | 02-02-2022 | 查询的结束日期 |
web | String | sportbook101 | 使用的网站 |
响应
{
"data": [
{
"_id": "62b97609135ce5795f817c7c",
"transaction": "success",
"user": "test001",
"actionBy": "API",
"currency": "MMK",
"action": "WITHDRAW",
"amount": 10,
"withdraw": 0,
"from": "CASH",
"date": "2022-06-27T09:19:05.726Z",
"__v": 0,
"afterCredit": 30,
"beforeCredit": 40
},
{
"_id": "62b97608135ce5795f817c7b",
"transaction": "success",
"user": "test001",
"actionBy": "API",
"currency": "MMK",
"action": "WITHDRAW",
"amount": 10,
"withdraw": 0,
"from": "CASH",
"date": "2022-06-27T09:19:04.373Z",
"__v": 0,
"afterCredit": 40,
"beforeCredit": 50
}
]
}
键名 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Number | 0 | API 响应代码。 |
msg | String | success | 响应代码的描述。 |
data | Object | [ { "_id": "62b97609135ce5795f817c7c", "transaction": "success", "user": "test001", "actionBy": "API", "currency": "MMK", "action": "WITHDRAW", "amount": 10, "withdraw": 0, "from": "CASH", "date": "2022-06-27T09:19:05.726Z", "__v": 0, "afterCredit": 30, "beforeCredit": 40 }, { "_id": "62b97608135ce5795f817c7b", "transaction": "success", "user": "test001", "actionBy": "API", "currency": "MMK", "action": "WITHDRAW", "amount": 10, "withdraw": 0, "from": "CASH", "date": "2022-06-27T09:19:04.373Z", "__v": 0, "afterCredit": 40, "beforeCredit": 50 } ] | 通过用户名获取的存款和提款交易数据 |
错误代码
值 | 信息 |
---|---|
0 | 成功 |
100001 | 缺少 'agent Username' 字段。 |
100002 | 'agentUsername' 必须为字符串。 |
100003 | 缺少 'key' 字段。 |
100004 | 'Key' 必须为字符串。 |
100005 | 缺少 'username' 字段。 |
100006 | 'Username' 必须为字符串。 |
100009 | 用户名长度必须在 8 到 48 个字符之间。 |
100012 | 未找到密钥。 |
100013 | 未找到代理。 |
100014 | 未找到会员。 |
100033 | 未找到数据。 |
104 | 缺少 'startDate' 字段。 |
105 | 缺少 'endDate' 字段。 |
50010 | 出现错误,请重试。 |