21. 获取存款和提款交易(通用)
用于商户获取存款和提款交易
*API 每小时最多调用 6 次,且日期不能超过 1 天,请每天抓取并保存数据
方法 : [Post]
路径 : {{domain}}/ext/depositWithdrawTransactionHistory/{{prefix}}/{{agentUsername}}
内容类型 : application/json
请求正文
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"startDate": "01-02-2022 (DD-MM-YYYY)",
"endDate": "02-02-2022 (DD-MM-YYYY)",
"web": "{{whiteLabel}}"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
agentUsername | String | testag | 使用的代理 |
key | String | tnyENKDWvOkBXpvm6UZVa | 代理的密钥 |
startDate | Date | 01-02-2022 | 查看的开始日期 |
endDate | Date | 02-02-2022 | 查看的结束日期 |
web | String | sportbook101 | 使用的网站 |
响应
{
[
{
"_id": "62b974f56e82c478362086bb",
"transaction": "success",
"user": "auto0859765751",
"actionBy": "API",
"currency": "MMK",
"action": "DEPOSIT",
"amount": 10,
"withdraw": 0,
"from": "CASH",
"date": "2022-06-27T09:14:29.256Z",
"__v": 0,
"afterCredit": 10,
"beforeCredit": 0
}
]
}
键名 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Number | 0 | API 响应代码。 |
msg | String | success | 响应代码的描述。 |
data | Array | { "_id": "62b974f56e82c478362086bb", "transaction": "success", "user": "auto0859765751", "actionBy": "API", "currency": "MMK", "action": "DEPOSIT", "amount": 10, "withdraw": 0, "from": "CASH", "date": "2022-06-27T09:14:29.256Z", "__v": 0, "afterCredit": 10, "beforeCredit": 0 } | 存款和提款交易数据 |
错误代码
值 | 信息 |
---|---|
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 | 出现错误,请重试。 |