21. Get Deposit And Withdraw Transaction (Common)
Use for Merchant Get Deposit And Withdraw Transaction
*api สามารถเรียกใช้ได้ ชั่วโมงละ 6 คร้ง และ ใส่วันที่ได้ไม่เกิน 1 วัน กรุณาดึงไปเก็บไว้ทุกวัน
Method : [Post]
Path : {{domain}}/ext/depositWithdrawTransactionHistory/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"startDate": "01-02-2022 (DD-MM-YYYY)",
"endDate": "02-02-2022 (DD-MM-YYYY)",
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|---|---|---|
agentUsername | String | testag | เอเย่นต์ที่ใช้งาน |
key | String | tnyENKDWvOkBXpvm6UZVa | คีย์ของเอเย่นต์ |
startDate | Date | 01-02-2022 | วันเริ่มต้นของการดู |
endDate | Date | 02-02-2022 | วันสิ้นสุดของการดู |
web | String | sportbook101 | เว็บที่ใช้งาน |
Response
{
[
{
"_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
}
]
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
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 } | data Deposit And Withdraw Transaction |
Error Code
Value | msg |
---|---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100005 | Missing 'username' field. |
100006 | Username is type string. |
100009 | Your username must be between 8 and 48 character. |
100012 | Key not found. |
100013 | Agent not found. |
100014 | Member not found. |
100033 | Data not found. |
104 | missing 'startDate' field. |
105 | missing 'endDate' field. |
50010 | Something went wrong please try again. |