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)

26. Dashboard

26.1 Get Dashboard Win/Lose and Turnover By Games (Common)

Used to get data for get dashboard win/Lose and turnover by games

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "top": "game",
    "resultType": "turnover",
    "startDate": "01-02-2022 (DD-MM-YYYY)",
    "endDate": "02-02-2022 (DD-MM-YYYY)",
    "limit": 10,
    "page": 1,
    "size": 10,
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
topStringgametop is type select game
resultTypeStringturnoverresultType have 3 type [ win, lose and turnover] win = top win by game, lose = top lose by game, turnover = top turnover by game
limitNumber10limit page
pageNumber1page
sizeNumber10size of page
startDateDate01-02-2022Account viewing start date.
endDateDate02-02-2022Account viewing end date.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "key": "65e591a6a8d4f9e78a2359cb",
            "gameInfo": {
                "name": "Gemstones Gold",
                "image": "https://ambimgcdn.co/img/sportsbook/game/PGS/S/PGS_Gemstones%20Gold_1709544120.webp",
                "gameType": "Slot"
            },
            "providerInfo": {
                "name": "PG Soft",
                "image": "https://ambimgcdn.co/img/sportsbook/assets/provider/PG-Soft.png"
            },
            "docCount": 3,
            "value": 22752
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "data": [ { "key": "65e591a6a8d4f9e78a2359cb", "gameInfo": { "name": "Gemstones Gold", "image": "https://ambimgcdn.co/img/sportsbook/game/PGS/S/PGS_Gemstones%20Gold_1709544120.webp", "gameType": "Slot" }, "providerInfo": { "name": "PG Soft", "image": "https://ambimgcdn.co/img/sportsbook/assets/provider/PG-Soft.png" }, "docCount": 3, "value": 22752 } ] }data top turnover by game

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.
1000003Top is Only [ player , game , provider ]
1000004ResultType is Only [ win , lose , turnover ]
100017You make multiple transactions, please wait 1 minute and try again.

26.2 Get Dashboard Win/Lose and Turnover By Provider (Common)

Used to get data for get dashboard win/Lose and turnover by provider

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "top": "provider",
    "resultType": "turnover",
    "startDate": "01-02-2022 (DD-MM-YYYY)",
    "endDate": "02-02-2022 (DD-MM-YYYY)",
    "limit": 10,
    "page": 1,
    "size": 10,
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
topStringprovidertop is type select provider
resultTypeStringturnoverresultType have 3 type [ win, lose and turnover] win = top win by provider, lose = top lose by provider, turnover = top turnover by provider
limitNumber10limit page
pageNumber1page
sizeNumber10size of page
startDateDate01-02-2022Account viewing start date.
endDateDate02-02-2022Account viewing end date.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "key": "PGS",
            "providerInfo": {
                "name": "PG Soft",
                "image": "https://ambimgcdn.co/img/sportsbook/assets/provider/PG-Soft.png"
            },
            "docCount": 177,
            "value": 235338.8
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "data": [ { "key": "PGS", "providerInfo": { "name": "PG Soft", "image": "https://ambimgcdn.co/img/sportsbook/assets/provider/PG-Soft.png" }, "docCount": 177, "value": 235338.8 } ] }data top turnover by provider

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.
1000003Top is Only [ player , game , provider ]
1000004ResultType is Only [ win , lose , turnover ]
100017You make multiple transactions, please wait 1 minute and try again.

26.3 Get Dashboard Win/Lose and Turnover By Player (Common)

Used to get data for get dashboard win/Lose and turnover by Player

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "top": "player",
    "resultType": "turnover",
    "startDate": "01-02-2022 (DD-MM-YYYY)",
    "endDate": "02-02-2022 (DD-MM-YYYY)",
    "limit": 10,
    "page": 1,
    "size": 10,
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
topStringplayertop is type select player
resultTypeStringturnoverresultType have 3 type [ win, lose and turnover] win = top win by player, lose = top lose by player, turnover = top turnover by player
limitNumber10limit page
pageNumber1page
sizeNumber10size of page
startDateDate01-02-2022Account viewing start date.
endDateDate02-02-2022Account viewing end date.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "key": "agthbmb03",
            "docCount": 211,
            "value": 382525.29
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "data": [ { "key": "agthbmb03", "docCount": 211, "value": 382525.29 } ] }data top turnover by player

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.
1000003Top is Only [ player , game , provider ]
1000004ResultType is Only [ win , lose , turnover ]
100017You make multiple transactions, please wait 1 minute and try again.

26.4 Get Graph Dashboard Win/Lose Turnover And Player (Common)

Used to get data for get dashboard win/Lose, turnover and Player for graph

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "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.
startDateDate01-02-2022Account viewing start date.
endDateDate02-02-2022Account viewing end date.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "keyAsString": "2025-02-05",
            "wl": 401.14999999999986,
            "turnover": 665.6,
            "player": 2
        },
        {
            "keyAsString": "2025-02-06",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-07",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-08",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-09",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-10",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-11",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-12",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-13",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-14",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-15",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-16",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-17",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-18",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-19",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-20",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-21",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-22",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-23",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-24",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-25",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-26",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-27",
            "wl": 0,
            "turnover": 0,
            "player": 0
        },
        {
            "keyAsString": "2025-02-28",
            "wl": -1.2,
            "turnover": 6,
            "player": 1
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "data": [ { "keyAsString": "2025-02-05", "wl": 401.14999999999986, "turnover": 665.6, "player": 2 }, { "keyAsString": "2025-02-06", "wl": 0, "turnover": 0, "player": 0 }, { "keyAsString": "2025-02-07", "wl": 0, "turnover": 0, "player": 0 } ] }data winlose turnover and player

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.
1000003Top is Only [ player , game , provider ]
1000004ResultType is Only [ win , lose , turnover ]
100017You make multiple transactions, please wait 1 minute and try again.

26.5 Get User Online (Common)

Used to get data user online by type

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
    {
        "_id": {
            "source": "slot"
        },
        "count": 1
    },
    {
        "_id": {
            "source": "plb"
        },
        "count": 1
    }
]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "data": [ { "_id": { "source": "slot" }, "count": 1 }, { "_id": { "source": "plb" }, "count": 1 } ] }data user online by type

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.
100017You make multiple transactions, please wait 1 minute and try again.
Prev
25. Favourite Games
Next
27. Get Url Start Tournament (Common)