10. Get WinLose And Turnover (Common)
Use for Merchant get WinLose And Turnover
*The api can be called 300 times per minute and the date can be no more than 1 day. Please save it every day if you want to refund the lost amount weekly or monthly.
Method : [Post]
Path : {{domain}}/ext/getWinLoseAndTurnOver/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"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. |
username | String | testagninemb01 | Users who want to view their deposit history |
startDate | Date | 01-02-2022 | Account viewing start date |
endDate | Date | 02-02-2022 | Account Viewing End Date |
web | String | sportbook101 | Active websites. |
Response
{
"code": 0,
"data": {
"card": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"casino": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"hdp": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"keno": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"lotto": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"mixParlay": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"mixStep": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"poker": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"slot": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"trade": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"esport": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"cock": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"sbo": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"saba": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"dbs": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"fbs": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"plb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"umb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"vsb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"afb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"lali": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
},
"msg": "SUCCESS"
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "card": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "casino": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "hdp": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "keno": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "lotto": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "mixParlay": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "mixStep": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "poker": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "slot": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "trade": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "esport": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "cock": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "sbo": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "saba": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "dbs": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "fbs": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "plb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "umb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "vsb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "afb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "lali": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, } | data winlose and turnover [ "card" is a card game, "casino" is a casino, "hdp" is a single sport, "keno" is keno, "lotto" is all lotteries, "mixParlay" is a parlay sport, "mixStep" is a combo sport, "poker" is a poker, "slot" is a slot game, "trade" is a trader, "esport" is an e-sports, "cock" is a cockfight, "sbo" is a sbobet sport, "saba" is an Ibcbet sport, "dbs" is a Panda sport, "fbs" is a FB sport, "plb" is a Parlaybay sport, "umb" is an Um bet sport, "vsb" is a Virtual Sport Pragmatic sport, "afb" is a AFB88 sport, "lali" is a Lalika bet sport, "com" is a commission, "stake" is the number of tickets, "vl" is the actual bet amount, "wl" is the total profit and loss, ] |
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. |
104 | missing 'startDate' field. |
105 | missing 'endDate' field. |
50010 | Something went wrong please try again. |