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

2.6 Get Deposit And Withdraw Transaction By Time (Common)

Use for Merchant get the deposit and withdraw transactions of all members directly under the agent for a date and time range. Same result as 2.3 Get Deposit And Withdraw Transaction, but startDate / endDate carry a time and the time zone can be chosen.

Method : [Post]
Path : {{domain}}/ext/depositWithdrawTransactionHistoryByTime/{{prefix}}/{{agentUsername}}
Content-Type : application/json

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "startDate": "01-11-2026 09:00:00",
    "endDate": "01-11-2026 18:29:59",
    "gmt": "+07:00",
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
startDateString01-11-2026 09:00:00Start, DD-MM-YYYY HH:mm:ss. Included.
endDateString01-11-2026 18:29: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 and returns the same transactions as 2.3 with 01-11-2026 → 02-11-2026. 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.
  • date of a transaction is the exact time it was recorded, so the range is exact to the second.
  • Only transactions with transaction: "success" of members directly under the agent are returned, in no particular order.

Response

{
    "code": 0,
    "data": [
        {
            "_id": "62b974f56e82c478362086bb",
            "transaction": "success",
            "user": "auto0859765751",
            "actionBy": "API",
            "currency": "THB",
            "action": "DEPOSIT",
            "amount": 10,
            "withdraw": 0,
            "from": "CASH",
            "date": "2026-11-01T02:14:29.256Z",
            "__v": 0,
            "afterCredit": 10,
            "beforeCredit": 0
        }
    ]
}
KeyTypeDescription
codeNumberResponse code of API.
dataArrayTransactions. Same fields as 2.3. Empty array when there is none.
data[].userStringMember username.
data[].actionStringDEPOSIT or WITHDRAW.
data[].amountNumberAmount.
data[].currencyStringCurrency.
data[].beforeCredit / afterCreditNumberCredit before and after.
data[].dateDateTime of the transaction (UTC).

Error Code

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100012Key not found.
100013Agent not found.
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
2.5 Get Credit Agent (Common)