Sportbook APISportbook API
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashboard
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashboard
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • Overview
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashboard
  • 27. Get Url Start Tournament (Common)

11. Get Winlose By Date

11.1 Get Winlose And Turnover All Member By Date (Common)

Use for Merchant Get Winlose And Turnover All Member By Date

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "betType":["normal","comboStep","step","Casino","Slot","Lotto","Keno","Trade","Card","Poker","m2","Esport","Cock","Sbo","Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"],
    "startDate": "01-02-2022 (DD-MM-YYYY)",
    "endDate": "02-02-2022 (DD-MM-YYYY)",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
betTypeString["normal", "comboStep", "step", "Casino", "Slot", "Lotto", "Keno", "Trade", "Card", "Poker", "m2", "Esport", "Cock", "Sbo", "Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"]The type of game we want to find.
startDateDate01-02-2022Account viewing start date.
endDateDate02-02-2022Account viewing end date.
webStringsportbook101Active websites.

Response

{
    {
        "code": 0,
        "lastUpdate": "2022-05-02T08:20:48.099Z",
        "msg": "SUCCESS",
        "data": [
            {
                "_id": "auto0830192203",
                "betAmt": {
                    "$numberDecimal": "-524"
                },
                "validAmt": {
                    "$numberDecimal": "-524"
                },
                "winLose": {
                    "$numberDecimal": "-297.2"
                },
                "stake": 196
            }
        ]
    }
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "_id": "auto0830192203", "betAmt": { "$numberDecimal": "-524" }, "validAmt": { "$numberDecimal": "-524" }, "winLose": { "$numberDecimal": "-297.2" }, "stake": 196 }data winlose and turnover

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 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
100040betType not found.
100033Data not found.
104missing 'startDate' field.
105missing 'endDate' field.
50010Something went wrong please try again.

11.2 Get Total Winlose And Turnover All Member By Date (Common)

Use for Merchant Get Total Winlose And Turnover All Member By Date

*The api can be called 6 times per hour and no more than 1 date can be entered. Please retrieve it every day if you want to refund the lost amount weekly or monthly.

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "betType":["normal","comboStep","step","Casino","Slot","Lotto","Keno","Trade","Card","Poker","m2","Esport","Cock","Sbo","Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"],
    "startDate": "01-02-2022 (DD-MM-YYYY)",
    "endDate": "02-02-2022 (DD-MM-YYYY)",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
betTypeString["normal", "comboStep", "step", "Casino", "Slot", "Lotto", "Keno", "Trade", "Card", "Poker", "m2", "Esport", "Cock", "Sbo", "Saba","Dbs","Fbs","Plb","Umb","Vsb", "Afb", "Lali"]The type of game we want to find.
startDateDate01-02-2022Account viewing start date.
endDateDate02-02-2022Account viewing end date.
webStringsportbook101Active websites.

Response

{
    {
        "code": 0,
        "lastUpdate": "2023-11-12T12:05:11.675Z",
        "msg": "SUCCESS",
        "data": [
            {
                "_id": null,
                "betAmt": {
                    "$numberDecimal": "-47398.84"
                },
                "validAmt": {
                    "$numberDecimal": "-47398.84"
                },
                "winLose": {
                    "$numberDecimal": "-16374.70"
                },
                "stake": 514
            }
        ]
    }
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "_id": null, "betAmt": { "$numberDecimal": "-47398.84" }, "validAmt": { "$numberDecimal": "-47398.84" }, "winLose": { "$numberDecimal": "-16374.70" }, "stake": 514 }data total winlose and turnover

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 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
100040betType not found.
100033Data not found.
104missing 'startDate' field.
105missing 'endDate' field.
50010Something went wrong please try again.
Prev
10. Get WinLose And Turnover (Common)
Next
12. Game List (Common)