Sportbook APISportbook API
  • 1. Member

    • 1.1 Create User (Common)
    • 1.2 Change Password (Common)
    • 1.3 Change Status (Common)
    • 1.4 Redirect Login (Common)
    • 1.5 Get Profile And Credit (Common)
  • 2. Deposit & Withdraw

    • 2.1 Normal Deposit And Withdraw
    • 2.2 Deposit And Withdraw Pending Transaction
    • 2.3 Get Deposit And Withdraw Transaction (Common)
    • 2.4 Get Deposit And Withdraw Transaction By User (Common)
    • 2.5 Get Credit Agent (Common)
    • 2.6 Get Deposit And Withdraw Transaction By Time (Common)
  • 3. Game

    • 3.1 Get Provider Prefix List (Common)
    • 3.2 Game List (Common)
    • 3.3 Get Game List By Provider (Common)
    • 3.4 Game Detail (Common)
    • 3.5 Start Games (Common)
    • 3.6 Start Lotto (Common)
    • 3.7 Get Recently Games (Common)
    • 3.8 Favourite Games
  • 4. Win/Lose & Report

    • 4.1 Get WinLose By DepositID (Common)
    • 4.2 Get WinLose Multi DepositID (Common)
    • 4.3 Get Bet History By DepositID (Common)
    • 4.4 Get WinLose And Turnover (Common)
    • 4.5 Get Winlose By Date
    • 4.6 Get Normal Baccarat Turnover (Common)
    • 4.7 Report Winlose Account
    • 4.8 Dashboard
    • 4.9 Win/Lose Detail Report
    • 4.10 Get WinLose And Turnover By Time (Common)
  • 5. Promotion

    • 5.1 Get Url Start Tournament (Common)
    • 5.2 Leader Board
    • 5.3 Free Spin
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • 1. Member

    • 1.1 Create User (Common)
    • 1.2 Change Password (Common)
    • 1.3 Change Status (Common)
    • 1.4 Redirect Login (Common)
    • 1.5 Get Profile And Credit (Common)
  • 2. Deposit & Withdraw

    • 2.1 Normal Deposit And Withdraw
    • 2.2 Deposit And Withdraw Pending Transaction
    • 2.3 Get Deposit And Withdraw Transaction (Common)
    • 2.4 Get Deposit And Withdraw Transaction By User (Common)
    • 2.5 Get Credit Agent (Common)
    • 2.6 Get Deposit And Withdraw Transaction By Time (Common)
  • 3. Game

    • 3.1 Get Provider Prefix List (Common)
    • 3.2 Game List (Common)
    • 3.3 Get Game List By Provider (Common)
    • 3.4 Game Detail (Common)
    • 3.5 Start Games (Common)
    • 3.6 Start Lotto (Common)
    • 3.7 Get Recently Games (Common)
    • 3.8 Favourite Games
  • 4. Win/Lose & Report

    • 4.1 Get WinLose By DepositID (Common)
    • 4.2 Get WinLose Multi DepositID (Common)
    • 4.3 Get Bet History By DepositID (Common)
    • 4.4 Get WinLose And Turnover (Common)
    • 4.5 Get Winlose By Date
    • 4.6 Get Normal Baccarat Turnover (Common)
    • 4.7 Report Winlose Account
    • 4.8 Dashboard
    • 4.9 Win/Lose Detail Report
    • 4.10 Get WinLose And Turnover By Time (Common)
  • 5. Promotion

    • 5.1 Get Url Start Tournament (Common)
    • 5.2 Leader Board
    • 5.3 Free Spin
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • Overview
  • 1. Member

    • 1.1 Create User (Common)
    • 1.2 Change Password (Common)
    • 1.3 Change Status (Common)
    • 1.4 Redirect Login (Common)
    • 1.5 Get Profile And Credit (Common)
  • 2. Deposit & Withdraw

    • 2.1 Normal Deposit And Withdraw
    • 2.2 Deposit And Withdraw Pending Transaction
    • 2.3 Get Deposit And Withdraw Transaction (Common)
    • 2.4 Get Deposit And Withdraw Transaction By User (Common)
    • 2.5 Get Credit Agent (Common)
    • 2.6 Get Deposit And Withdraw Transaction By Time (Common)
  • 3. Game

    • 3.1 Get Provider Prefix List (Common)
    • 3.2 Game List (Common)
    • 3.3 Get Game List By Provider (Common)
    • 3.4 Game Detail (Common)
    • 3.5 Start Games (Common)
    • 3.6 Start Lotto (Common)
    • 3.7 Get Recently Games (Common)
    • 3.8 Favourite Games
  • 4. Win/Lose & Report

    • 4.1 Get WinLose By DepositID (Common)
    • 4.2 Get WinLose Multi DepositID (Common)
    • 4.3 Get Bet History By DepositID (Common)
    • 4.4 Get WinLose And Turnover (Common)
    • 4.5 Get Winlose By Date
    • 4.6 Get Normal Baccarat Turnover (Common)
    • 4.7 Report Winlose Account
    • 4.8 Dashboard
    • 4.9 Win/Lose Detail Report
    • 4.10 Get WinLose And Turnover By Time (Common)
  • 5. Promotion

    • 5.1 Get Url Start Tournament (Common)
    • 5.2 Leader Board
    • 5.3 Free Spin

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}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtestagninemb01Member, 5–24 characters, directly under the agent.
startDateString01-11-2026 00:00:00Start, DD-MM-YYYY HH:mm:ss. Included.
endDateString01-11-2026 23:59:59End, DD-MM-YYYY HH:mm:ss. Included up to the end of that second.
gmtString+07:00Optional. 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.
webStringsportbook101Active 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 endDate counts to the end of its second. 01-11-2026 00:00:00 → 01-11-2026 23:59:59 is 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.
  • startDate may equal endDate (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:00 with +07:00 = 01-11-2026 00:00:00 with +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 }
    }
}
KeyTypeDescription
codeNumberResponse code of API.
msgStringDescription of code.
dataObjectOne entry per product, always all keys, 0 when there was no play. Same keys as 4.4.
data.*.vlNumberValid bet amount (turnover).
data.*.wlNumberWin/lose of the member.
data.*.comNumberCommission.
data.*.stakeNumberNumber 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

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100005Missing 'username' field.
100006Username is type string.
100009Your username must be between 5 and 24 character.
100012Key not found.
100013Agent not found.
100014Member not found. (also when the member is not directly under the agent)
104missing 'startDate' field
105missing 'endDate' field
50012Invalid 'gmt' field. Expected format '+07:00'.
50013Invalid 'startDate' or 'endDate'. Expected format 'DD-MM-YYYY HH:mm:ss'.
50014'startDate' must not be after 'endDate'.
50010Something went wrong please try again. (temporary error, try again)
Prev
4.9 Win/Lose Detail Report