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}}"
}
Key | Type | Example Value | Description |
---|---|---|---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
username | String | test001 | Users who want to watch their favorite games. |
web | String | sportbook101 | Active 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
}
]
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "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
Value | msg |
---|---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100012 | Key not found. |
100013 | Agent 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"
}
Key | Type | Example Value | Description |
---|---|---|---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
username | String | testagninemb01 | Users who want to add their favorite games. |
gameId | String | 6177a6a402d9f528ced33334 | Game ID that you want to add to your favorites. |
web | String | sportbook101 | Active websites. |
Response
{
"code": 0,
"msg": "success",
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
Error Code
Value | msg |
---|---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100012 | Key not found. |
100013 | Agent 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"
}
Key | Type | Example Value | Description |
---|---|---|---|
agentUsername | String | testag | The agent's username. |
key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
gameId | String | 6177a6a402d9f528ced33334 | Game ID that you want to delete. |
username | String | testagninemb01 | User who wants to delete favorite games. |
web | String | sportbook101 | Active websites. |
Response
{
"code": 0,
"msg": "success",
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
Error Code
Value | msg |
---|---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100012 | Key not found. |
100013 | Agent not found. |