4.10 Get WinLose And Turnover By Time (Common)
Use for Merchant get WinLose And Turnover of one member for a date and time range. Same result as 4.4 Get WinLose And Turnover, but startDate / endDate carry a time and the time zone can be chosen.
Method : [Post]
Path : {{domain}}/ext/getWinLoseAndTurnoverByTime/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"startDate": "01-11-2026 00:00:00",
"endDate": "01-11-2026 23:59:59",
"gmt": "+07:00",
"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 | Member, 5–24 characters, directly under the agent. |
| startDate | String | 01-11-2026 00:00:00 | Start, DD-MM-YYYY HH:mm:ss. Included. |
| endDate | String | 01-11-2026 23:59:59 | End, DD-MM-YYYY HH:mm:ss. Included up to the end of that second. |
| gmt | String | +07:00 | Optional. Time zone of startDate / endDate as +HH:MM or -HH:MM (minutes 00, 15, 30 or 45; from -12:00 to +14:00). Not sent = GMT+7. |
| web | String | sportbook101 | Active websites. |
Time range rules
- The format must match exactly: two-digit day, month, hour, minute and second, for example
01-11-2026 09:05:00. A date without a time is rejected (50013). - Both ends are included, and
endDatecounts to the end of its second.01-11-2026 00:00:00→01-11-2026 23:59:59is the whole day. For back-to-back windows end one second before the next start:00:00:00–00:59:59,01:00:00–01:59:59. startDatemay equalendDate(one second) but may not be after it (50014).- The same moment sent in a different time zone gives the same result:
01-11-2026 07:00:00with+07:00=01-11-2026 00:00:00with+00:00. - Bets are counted by bet time. Slot, fishing and similar games are grouped into one record per 5 minutes, counted at the time of the first bet in the group, so for these games the precision is about 5 minutes.
- The result is cached for 5 minutes. The same request within 5 minutes returns the same numbers, so a range that ends "now" does not show bets from the last 5 minutes until the cache expires.
Response
{
"code": 0,
"msg": "SUCCESS",
"data": {
"hdp": { "vl": 1500, "wl": -320.5, "com": 7.5, "stake": 3 },
"mixParlay": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"mixStep": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"casino": { "vl": 20000, "wl": 1180, "com": 0, "stake": 12 },
"slot": { "vl": 1868, "wl": -633, "com": 0, "stake": 48 },
"card": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"lotto": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"keno": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"trade": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"poker": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"esport": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"cock": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"saba": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"sbo": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"dbs": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"fbs": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"plb": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"umb": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"vsb": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"afb": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"lali": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"wss": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"m8": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"ufa": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"obx": { "vl": 0, "wl": 0, "com": 0, "stake": 0 },
"pdx": { "vl": 0, "wl": 0, "com": 0, "stake": 0 }
}
}
| Key | Type | Description |
|---|---|---|
| code | Number | Response code of API. |
| msg | String | Description of code. |
| data | Object | One entry per product, always all keys, 0 when there was no play. Same keys as 4.4. |
| data.*.vl | Number | Valid bet amount (turnover). |
| data.*.wl | Number | Win/lose of the member. |
| data.*.com | Number | Commission. |
| data.*.stake | Number | Number of tickets. |
Products: hdp single sport, mixParlay parlay sport, mixStep combo sport, casino casino, slot slot, card card games, lotto all lotteries, keno keno, trade trade, poker poker, esport e-sports, cock cockfight, saba Ibcbet, sbo Sbobet, dbs Panda sport, fbs FB sport, plb Parlaybay, umb Um bet, vsb Virtual Sport Pragmatic, afb AFB88, lali Lalika bet, ufa UFA+, pdx Saba Sport (PDX), and wss, m8, obx for the sportsbooks with those codes. Amounts have 2 decimals.
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 5 and 24 character. |
| 100012 | Key not found. |
| 100013 | Agent not found. |
| 100014 | Member not found. (also when the member is not directly under the agent) |
| 104 | missing 'startDate' field |
| 105 | missing 'endDate' field |
| 50012 | Invalid 'gmt' field. Expected format '+07:00'. |
| 50013 | Invalid 'startDate' or 'endDate'. Expected format 'DD-MM-YYYY HH:mm:ss'. |
| 50014 | 'startDate' must not be after 'endDate'. |
| 50010 | Something went wrong please try again. (temporary error, try again) |