9. Get Bet History By DepositID (Common)
Use for Merchant get Bet History By DepositID
*SLOT FISHING KENO POKER play totals are updated in real time, at least 150 seconds, but no more than 300 seconds.
*Playlist can be viewed for 1 month.
*PG playlist can be viewed for 7 days.
Method : [Post]
Path : {{domain}}/ext/getHistoryBetByDepositID/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"refId": "60fcda0071ce66250c9c2efd",
"nk":"eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjoxNjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0"
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|---|---|---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
username | String | testagninemb01 | Users who want to view profiles |
refId | String | 60fcda0071ce66250c9c2efd | Reference ID for Top Up |
nk | String | eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjox NjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0 | Data display page |
web | String | sportbook101 | Active websites. |
Response
{
"code": 0,
"data": {
[
{
"__v": 0,
"_id": "61fcda0071ce66000c9c2dfe",
"d": "2022-02-04T07:47:12.178Z",
"l": [
"DEPOSIT",
"61fcda0071ce66000c9c2dfd",
null,
null,
null,
"Fri Feb 04 2022 14:47:12 GMT+0700 (GMT+07:00)",
"10",
"0",
"10",
null,
null,
null
],
"p": "61fcda0071ce66000c9c2dfd",
"t": "61fcda0071ce66000c9c2dfd",
"u": "testnineag01ninemb01"
}
],
},
msg: "SUCCESS",
nk: "eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjoxNjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0="
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
nk | String | eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjox NjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0= | nk is next key. The first shot will get 100 data items. If there are more than 100 items, there will be a field named nk. Shoot the same line and send nk to get data items 101 - 200 for Load more. |
data | Array | [ { "__v": 0, "_id": "61fcda0071ce66000c9c2dfe", "d": "2022-02-04T07:47:12.178Z", "l": [ "DEPOSIT", "61fcda0071ce66000c9c2dfd", null, null, null, "Fri Feb 04 2022 14:47:12 GMT+0700 (GMT+07:00)", "10", "0", "10", null, null, null ], "p": "61fcda0071ce66000c9c2dfd", "t": "61fcda0071ce66000c9c2dfd", "u": "testnineag01ninemb01" } ], msg: "SUCCESS", nk: "eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjoxNjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0=" | data bet history by deposit id [ "d" is the time played, "u" is the user who played, "l[0]" is the action with [bet, payout, wl], "l[1]" is the refId, "l[2]" is the ref 1 used to shoot the gameDetail line, "l[3]" is the ref 2 used to shoot the gameDetail line, "l[4]" is the ref 3 used to shoot the gameDetail line, "l[5]" is the betTime, "l[6]" is the payout amount, "l[7]" is before credit, "l[8]" is after credit, ] |
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. |
100021 | Missing 'refId' field. |
100022 | RefId is type string. |
100033 | Data not found. |