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. Dashbaord
  • 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. Dashbaord
  • 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. Dashbaord
  • 27. Get Url Start Tournament (Common)
  • 28. Leader Board

28. Leader Board

28.1 Get Big Win (Common)

ตัวอย่าง UI — เมื่อเชื่อมต่อแล้ว สามารถนำข้อมูลจาก response ไปทำ UI แสดง Big Win ได้ประมาณนี้:

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
agentUsernameStringtestopupapixxเอเย่นต์ที่ใช้งาน
keyStringpbR-P0cnKwLVirSOCvf53คีย์ของเอเย่นต์
webStringsportbook101เว็บที่ใช้งาน

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[ ... ]รายการสมาชิกที่ชนะรางวัลใหญ่
usernameStringtestopupboat201ยูสเซอร์ของสมาชิก
betNumber50ยอดเดิมพัน
payoutNumber17392.5ยอดที่ได้รับทั้งหมด
winloseNumber17342.5ยอดได้เสีย (payout - bet)
multiplierNumber347.85ตัวคูณที่ชนะ
currencyStringTHBสกุลเงิน
gameNameStringSuper Ace Xชื่อเกม
gameImageObject{ vertical, horizontal, square }URL รูปภาพเกมในแต่ละสัดส่วน
gameImage.verticalStringhttps://ambimgcdn2.co/...L/...webpURL รูปเกมแนวตั้ง
gameImage.horizontalStringhttps://ambimgcdn2.co/...S/...webpURL รูปเกมแนวนอน
gameImage.squareStringhttps://ambimgcdn2.co/...webpURL รูปเกมแบบสี่เหลี่ยมจัตุรัส
gameIdString68f203d0e7de6b01caf9748cรหัสเกม
providerNameStringPragmatic Playชื่อค่ายเกม
providerCodeStringRPGโค้ดค่ายเกม
providerImageObject{ logo, transparent, horizontal, horizontalWhite }URL รูปภาพค่ายเกมในแต่ละแบบ
providerImage.logoStringhttps://ambimgcdn2.co/...webpURL โลโก้ค่ายเกม
providerImage.transparentStringhttps://ambimgcdn2.co/...webpURL รูปค่ายเกมแบบพื้นหลังโปร่งใส
providerImage.horizontalStringhttps://ambimgcdn2.co/...webpURL รูปค่ายเกมแนวนอน
providerImage.horizontalWhiteStringhttps://ambimgcdn2.co/...pngURL รูปค่ายเกมแนวนอนสีขาว
ref1String3YyXR9QTlAD8unQuรหัสอ้างอิงของรอบเดิมพัน (ใช้ใน 28.2)
timestampNumber1782915078Unix timestamp ของการเดิมพัน (ใช้ใน 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
agentUsernameStringtestopupapixxเอเย่นต์ที่ใช้งาน
keyStringpbR-P0cnKwLVirSOCvf53คีย์ของเอเย่นต์
ref1String3YyXR9QTlAD8unQuรหัสอ้างอิงของการเดิมพัน (จาก 28.1)
timestampString1782915078Unix timestamp ของการเดิมพัน
webStringsportbook101เว็บที่ใช้งาน

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": "..." }รายละเอียดการเดิมพันของรายการรางวัลใหญ่
urlStringhttps://report-uat.askmeslot-demo.com/result/?t=...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.3 Get Leaderboard Score (Common)

ตัวอย่าง UI — เมื่อเชื่อมต่อแล้ว สามารถนำข้อมูลจาก response ไปทำ UI แสดง Leaderboard ได้ประมาณนี้:

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
agentUsernameStringtestopupapixxเอเย่นต์ที่ใช้งาน
keyStringpbR-P0cnKwLVirSOCvf53คีย์ของเอเย่นต์
lastWeekBooleanfalsefalse = อันดับสัปดาห์ปัจจุบัน, true = อันดับสัปดาห์ที่แล้ว
webStringsportbook101เว็บที่ใช้งาน

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[ ... ]รายการอันดับลีดเดอร์บอร์ด
rankNumber1อันดับ
prefixStringTESTprefix ของเอเย่นต์ที่สมาชิกสังกัด
usernameStringtestopupboat201ยูสเซอร์ของสมาชิก
currencyStringTHBสกุลเงิน
betNumber50ยอดเดิมพัน
payoutNumber17392.5ยอดที่ได้รับทั้งหมด
multiplierNumber347.85ตัวคูณที่ชนะ ใช้จัดอันดับ
gameNameStringSuper Ace Xชื่อเกม
gameImageObject{ vertical, horizontal, square }URL รูปภาพเกมในแต่ละสัดส่วน
gameImage.verticalStringhttps://ambimgcdn2.co/...L/...webpURL รูปเกมแนวตั้ง
gameImage.horizontalStringhttps://ambimgcdn2.co/...S/...webpURL รูปเกมแนวนอน
gameImage.squareStringhttps://ambimgcdn2.co/...webpURL รูปเกมแบบสี่เหลี่ยมจัตุรัส
gameIdString68f203d0e7de6b01caf9748cรหัสเกม
providerNameStringPragmatic Playชื่อค่ายเกม
providerCodeStringRPGโค้ดค่ายเกม
providerImageObject{ logo, transparent, horizontal, horizontalWhite }URL รูปภาพค่ายเกมในแต่ละแบบ
providerImage.logoStringhttps://ambimgcdn2.co/...webpURL โลโก้ค่ายเกม
providerImage.transparentStringhttps://ambimgcdn2.co/...webpURL รูปค่ายเกมแบบพื้นหลังโปร่งใส
providerImage.horizontalStringhttps://ambimgcdn2.co/...webpURL รูปค่ายเกมแนวนอน
providerImage.horizontalWhiteStringhttps://ambimgcdn2.co/...pngURL รูปค่ายเกมแนวนอนสีขาว

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
agentUsernameStringtestopupapixxเอเย่นต์ที่ใช้งาน
keyStringpbR-P0cnKwLVirSOCvf53คีย์ของเอเย่นต์
usernameStringtestopupapixxxยูสเซอร์ของสมาชิกที่ต้องการดูรายละเอียดลีดเดอร์บอร์ด
lastWeekBooleanfalsefalse = สัปดาห์ปัจจุบัน, true = สัปดาห์ที่แล้ว
webStringsportbook101เว็บที่ใช้งาน

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": "..." }รายละเอียดการเดิมพันลีดเดอร์บอร์ดของสมาชิก
urlStringhttps://report-uat.askmeslot-demo.com/result/?t=...URL หน้าผลการเดิมพันของรอบนั้น

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.
ก่อนหน้า
27. Get Url Start Tournament (Common)