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)

25. Favourite Games

25.1 Get Favourite Games (Common)

Use for Merchant Get Favourites Games List

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "username": "{{agentUsername}}ninemb01",
    "key": "{{key}}",
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtest001Users who want to watch their favorite games.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "success",
    "data": [
        {
            "id": "61e661646c514c28b00c0ba1",
            "provider": "AMBS",
            "providerForCollaction": "AMBS",
            "dataForProvider": {
                "gameID": "GOVDISCO"
            },
            "gameName": {
                "en": "Government Disco",
                "th": "สภาดิสโก้",
                "cn": "政府迪斯科",
                "la": "",
                "id": "",
                "vn": "",
                "my": "",
                "mm": "",
                "kh": "",
                "tw": ""
            },
            "gameStatus": "ACTIVE",
            "loseStatus": "NORMAL",
            "gameCategory": "SLOT",
            "gameType": [
                "SLOT",
                "BUY_FREE_SPINS",
                "MEGAWAYS"
            ],
            "supportCurrency": null,
            "image": [
                {
                    "style": "COMMON",
                    "vertical": {
                        "en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669783.webp",
                        "th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669787.webp",
                        "cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669791.webp",
                        "la": "",
                        "id": "",
                        "vn": "",
                        "my": "",
                        "mm": "",
                        "kh": "",
                        "tw": ""
                    },
                    "horizontal": {
                        "en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669805.webp",
                        "th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669799.webp",
                        "cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669808.webp",
                        "la": "",
                        "id": "",
                        "vn": "",
                        "my": "",
                        "mm": "",
                        "kh": "",
                        "tw": ""
                    },
                    "banner": {
                        "en": "",
                        "th": "",
                        "cn": "",
                        "la": "",
                        "id": "",
                        "vn": "",
                        "my": "",
                        "mm": "",
                        "kh": "",
                        "tw": ""
                    }
                }
            ],
            "updateTime": "2022-08-13T01:03:08.584Z",
            "updateBy": "by admin",
            "position": 4,
            "recommend": false,
            "recommendPosition": 0,
            "popular": true,
            "popularPosition": 2,
            "fundWallet": false
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
dataObject { "id": "61e661646c514c28b00c0ba1", "provider": "AMBS", "providerForCollaction": "AMBS", "dataForProvider": { "gameID": "GOVDISCO" }, "gameName": { "en": "Government Disco", "th": "สภาดิสโก้", "cn": "政府迪斯科", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" }, "gameStatus": "ACTIVE", "loseStatus": "NORMAL", "gameCategory": "SLOT", "gameType": [ "SLOT", "BUY_FREE_SPINS", "MEGAWAYS" ], "supportCurrency": null, "image": [ { "style": "COMMON", "vertical": { "en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669783.webp", "th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669787.webp", "cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669791.webp", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" }, "horizontal": { "en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669805.webp", "th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669799.webp", "cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669808.webp", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" }, "banner": { "en": "", "th": "", "cn": "", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" } } ], "updateTime": "2022-08-13T01:03:08.584Z", "updateBy": "by admin", "position": 4, "recommend": false, "recommendPosition": 0, "popular": true, "popularPosition": 2, "fundWallet": false }Data Favourites Games

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.

25.2 Add Favourites Games (Common)

Use for Merchant Add Favourites Games List

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "username": "{{agentUsername}}ninemb01",
    "key": "{{key}}",
    "web": "{{whiteLabel}}",
    "gameId": "6177a6a402d9f528ced33334"
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtestagninemb01Users who want to add their favorite games.
gameIdString6177a6a402d9f528ced33334Game ID that you want to add to your favorites.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "success",
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code

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.

25.3 Delete Favourites Games (Common)

Use for Merchant Delete Favourites Games List

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "username": "{{agentUsername}}ninemb01",
    "key": "{{key}}",
    "web": "{{whiteLabel}}",
    "gameId": "6177a6a402d9f528ced33334"
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
gameIdString6177a6a402d9f528ced33334Game ID that you want to delete.
usernameStringtestagninemb01User who wants to delete favorite games.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "success",
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code

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.
Prev
24. Get Recently Games (Common)
Next
26. Dashboard