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)
  • 28. Leader Board

28. Leader Board

28.1 Get Big Win (Common)

UI Example — Once integrated, you can build a Big Win UI like this from the response data:

Big Win UI example

Use for Merchant Get list of big win members

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "username": "testopupboat201",
            "bet": 50,
            "payout": 17392.5,
            "winlose": 17342.5,
            "multiplier": 347.85,
            "currency": "THB",
            "gameName": "Super Ace X",
            "gameImage": {
                "vertical": "https://ambimgcdn2.co/img/sportsbook/game/AMBS/L/AMBS_Super%20Ace%20X_1762182840.webp",
                "horizontal": "https://ambimgcdn2.co/img/sportsbook/game/AMBS/S/AMBS_Super%20Ace%20X_1762182846.webp",
                "square": "https://ambimgcdn2.co/img/sportsbook/game/AMBS/AMBS_Super%20Ace%20X_1765519034.webp"
            },
            "gameId": "68f203d0e7de6b01caf9748c",
            "providerName": "Pragmatic Play",
            "providerCode": "RPG",
            "providerImage": {
                "logo": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1762422974.webp",
                "transparent": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1762422978.webp",
                "horizontal": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1762422984.webp",
                "horizontalWhite": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1769158273.png"
            },
            "ref1": "3YyXR9QTlAD8unQu",
            "timestamp": 1782915078
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataArray[ ... ]List of big win members
usernameStringtestopupboat201Member username
betNumber50Bet amount
payoutNumber17392.5Total payout amount
winloseNumber17342.5Win/Lose amount (payout - bet)
multiplierNumber347.85Win multiplier
currencyStringTHBCurrency
gameNameStringSuper Ace XGame name
gameImageObject{ vertical, horizontal, square }Game image URLs in different aspect ratios
gameImage.verticalStringhttps://ambimgcdn2.co/...L/...webpVertical (portrait) game image URL
gameImage.horizontalStringhttps://ambimgcdn2.co/...S/...webpHorizontal (landscape) game image URL
gameImage.squareStringhttps://ambimgcdn2.co/...webpSquare game image URL
gameIdString68f203d0e7de6b01caf9748cGame id
providerNameStringPragmatic PlayProvider name
providerCodeStringRPGProvider code
providerImageObject{ logo, transparent, horizontal, horizontalWhite }Provider image URLs in different styles
providerImage.logoStringhttps://ambimgcdn2.co/...webpProvider logo image URL
providerImage.transparentStringhttps://ambimgcdn2.co/...webpTransparent provider image URL
providerImage.horizontalStringhttps://ambimgcdn2.co/...webpHorizontal provider image URL
providerImage.horizontalWhiteStringhttps://ambimgcdn2.co/...pngHorizontal white provider image URL
ref1String3YyXR9QTlAD8unQuReference id of the bet round (used in 28.2)
timestampNumber1782915078Unix timestamp of the bet (used in 28.2)

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.

28.2 Get Big Win Bet Detail (Common)

Use for Merchant Get bet detail (result page url) of a big win record

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "ref1": "3YyXR9QTlAD8unQu",
    "timestamp": "1782915078",
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
ref1String3YyXR9QTlAD8unQuReference id of the bet (from 28.1).
timestampString1782915078Unix timestamp of the bet.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": {
        "url": "https://report-uat.askmeslot-demo.com/result/?t=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3ODI5MTU2MzYsInJvdW5kSWQiOiIzWXlYUjlRVGxBRDh1blF1IiwidXNlcm5hbWUiOiJhbWJzYW1iMDAwNnU5NSIsImxhbmciOiJlbiIsInJhdGVDdXJyZW5jeSI6MSwiY3VycmVuY3kiOiJUSEIifQ.ptNTGuXUjM7tBL2fI86zZW6tVixGV3wbHYQeVZGLSzs"
    }
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject{ "url": "..." }Bet detail of the big win record
urlStringhttps://report-uat.askmeslot-demo.com/result/?t=...Result page URL of the bet round

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.

28.3 Get Leaderboard Score (Common)

UI Example — Once integrated, you can build a Leaderboard UI like this from the response data:

Leaderboard UI example

Use for Merchant Get leaderboard score ranking

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "lastWeek": false,
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
lastWeekBooleanfalsefalse = current week ranking, true = last week ranking.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "rank": 1,
            "prefix": "TEST",
            "username": "testopupboat201",
            "currency": "THB",
            "bet": 50,
            "payout": 17392.5,
            "multiplier": 347.85,
            "gameName": "Super Ace X",
            "gameImage": {
                "vertical": "https://ambimgcdn2.co/img/sportsbook/game/AMBS/L/AMBS_Super%20Ace%20X_1762182840.webp",
                "horizontal": "https://ambimgcdn2.co/img/sportsbook/game/AMBS/S/AMBS_Super%20Ace%20X_1762182846.webp",
                "square": "https://ambimgcdn2.co/img/sportsbook/game/AMBS/AMBS_Super%20Ace%20X_1765519034.webp"
            },
            "gameId": "68f203d0e7de6b01caf9748c",
            "providerName": "Pragmatic Play",
            "providerCode": "RPG",
            "providerImage": {
                "logo": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1762422974.webp",
                "transparent": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1762422978.webp",
                "horizontal": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1762422984.webp",
                "horizontalWhite": "https://ambimgcdn2.co/img/sportsbook/provider/RPG/RPG_1769158273.png"
            }
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataArray[ ... ]Leaderboard ranking list
rankNumber1Ranking position
prefixStringTESTAgent prefix of the member
usernameStringtestopupboat201Member username
currencyStringTHBCurrency
betNumber50Bet amount
payoutNumber17392.5Total payout amount
multiplierNumber347.85Win multiplier used to rank
gameNameStringSuper Ace XGame name
gameImageObject{ vertical, horizontal, square }Game image URLs in different aspect ratios
gameImage.verticalStringhttps://ambimgcdn2.co/...L/...webpVertical (portrait) game image URL
gameImage.horizontalStringhttps://ambimgcdn2.co/...S/...webpHorizontal (landscape) game image URL
gameImage.squareStringhttps://ambimgcdn2.co/...webpSquare game image URL
gameIdString68f203d0e7de6b01caf9748cGame id
providerNameStringPragmatic PlayProvider name
providerCodeStringRPGProvider code
providerImageObject{ logo, transparent, horizontal, horizontalWhite }Provider image URLs in different styles
providerImage.logoStringhttps://ambimgcdn2.co/...webpProvider logo image URL
providerImage.transparentStringhttps://ambimgcdn2.co/...webpTransparent provider image URL
providerImage.horizontalStringhttps://ambimgcdn2.co/...webpHorizontal provider image URL
providerImage.horizontalWhiteStringhttps://ambimgcdn2.co/...pngHorizontal white provider image URL

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.

28.4 Get Leaderboard Bet Detail (Common)

Use for Merchant Get leaderboard bet detail (result page url) of a member

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}xxx",
    "lastWeek": false,
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
usernameStringtestopupapixxxMember username to view the leaderboard bet detail.
lastWeekBooleanfalsefalse = current week, true = last week.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": {
        "url": "https://report-uat.askmeslot-demo.com/result/?t=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3ODI5MTU1NDksInJvdW5kSWQiOiIzWXlYUjlRVGxBRDh1blF1IiwidXNlcm5hbWUiOiJhbWJzYW1iMDAwNnU5NSIsImxhbmciOiJlbiIsInJhdGVDdXJyZW5jeSI6MSwiY3VycmVuY3kiOiJUSEIifQ.9mPGE3WUs9dBgzNl0G9Ni4uCcBZXEYWn1fUUNn56ovc"
    }
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject{ "url": "..." }Leaderboard bet detail of the member
urlStringhttps://report-uat.askmeslot-demo.com/result/?t=...Result page URL of the bet round

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 24 character.
100012Key not found.
100013Agent not found.
100014Member not found.
Prev
27. Get Url Start Tournament (Common)