21. Get Deposit And Withdraw Transaction (Common)
Use for Merchant Get Deposit And Withdraw Transaction
*The api can be called 6 times per hour and can only contain up to 1 date. Please save it every day.
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 | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
startDate | Date | 01-02-2022 | The start date of viewing. |
endDate | Date | 02-02-2022 | End of viewing day. |
web | String | sportbook101 | Active websites. |
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. |