22. Get Deposit And Withdraw Transaction By User (Common)
Use for Merchant Get Deposit And Withdraw Transaction By User
Method : [Post]
Path : {{domain}}/ext/depositWithdrawTransactionHistoryByUsername/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"username":"test001",
"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. |
username | String | test001 | Users you want to search. |
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
{
"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
}
]
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
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 } ] | data Deposit And Withdraw Transaction By Username |
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. |