Sportbook APISportbook API
  • 1. 创建用户 (通用)
  • 2. 更改密码 (常用)
  • 3. 更改状态 (常用)
  • 4. 重定向登录 (通用)
  • 5. 获取个人资料和余额(通用)
  • 6. 普通存款和提款
  • 7. 存款和提款待处理交易
  • 8. 根据存款ID获取盈亏 (通用)
  • 9. 通过 DepositID 获取投注历史(通用)
  • 10. 获取 WinLose 和 Turnover(通用)
  • 11. 获取按日期的输赢和投注量
  • 12. 游戏列表(通用)
  • 13. 开始游戏 (通用)
  • 14. 游戏详情(通用)
  • 15. 开始彩票游戏 (通用)
  • 16. 获取多个存款ID的盈亏 (通用)
  • 17. 报告盈亏账户
  • 18. 获取提供商前缀列表(通用)
  • 19. 通过提供商获取游戏列表(通用)
  • 20. 获取普通百家乐投注量(通用)
  • 21. 获取存款和提款交易(通用)
  • 22. 通过用户名获取存款和提款交易(通用)
  • 23. 获取代理信用(通用)
  • 24. 获取最近游戏(通用)
  • 25. 收藏的游戏
  • 26. 仪表盘
  • 27. Get Url Start Tournament (Common)
  • 游戏类型详情
  • 速率限制
  • 错误代码
  • English
  • ภาษาไทย
  • 简体中文
  • 1. 创建用户 (通用)
  • 2. 更改密码 (常用)
  • 3. 更改状态 (常用)
  • 4. 重定向登录 (通用)
  • 5. 获取个人资料和余额(通用)
  • 6. 普通存款和提款
  • 7. 存款和提款待处理交易
  • 8. 根据存款ID获取盈亏 (通用)
  • 9. 通过 DepositID 获取投注历史(通用)
  • 10. 获取 WinLose 和 Turnover(通用)
  • 11. 获取按日期的输赢和投注量
  • 12. 游戏列表(通用)
  • 13. 开始游戏 (通用)
  • 14. 游戏详情(通用)
  • 15. 开始彩票游戏 (通用)
  • 16. 获取多个存款ID的盈亏 (通用)
  • 17. 报告盈亏账户
  • 18. 获取提供商前缀列表(通用)
  • 19. 通过提供商获取游戏列表(通用)
  • 20. 获取普通百家乐投注量(通用)
  • 21. 获取存款和提款交易(通用)
  • 22. 通过用户名获取存款和提款交易(通用)
  • 23. 获取代理信用(通用)
  • 24. 获取最近游戏(通用)
  • 25. 收藏的游戏
  • 26. 仪表盘
  • 27. Get Url Start Tournament (Common)
  • 游戏类型详情
  • 速率限制
  • 错误代码
  • English
  • ภาษาไทย
  • 简体中文
  • 概述
  • 1. 创建用户 (通用)
  • 2. 更改密码 (常用)
  • 3. 更改状态 (常用)
  • 4. 重定向登录 (通用)
  • 5. 获取个人资料和余额(通用)
  • 6. 普通存款和提款
  • 7. 存款和提款待处理交易
  • 8. 根据存款ID获取盈亏 (通用)
  • 9. 通过 DepositID 获取投注历史(通用)
  • 10. 获取 WinLose 和 Turnover(通用)
  • 11. 获取按日期的输赢和投注量
  • 12. 游戏列表(通用)
  • 13. 开始游戏 (通用)
  • 14. 游戏详情(通用)
  • 15. 开始彩票游戏 (通用)
  • 16. 获取多个存款ID的盈亏 (通用)
  • 17. 报告盈亏账户
  • 18. 获取提供商前缀列表(通用)
  • 19. 通过提供商获取游戏列表(通用)
  • 20. 获取普通百家乐投注量(通用)
  • 21. 获取存款和提款交易(通用)
  • 22. 通过用户名获取存款和提款交易(通用)
  • 23. 获取代理信用(通用)
  • 24. 获取最近游戏(通用)
  • 25. 收藏的游戏
  • 26. 仪表盘
  • 27. Get Url Start Tournament (Common)
  • 28. Leader Board
  • 29. Free Spin

29. Free Spin

调用顺序:29.1 获取 provider → 29.2 获取该 provider 的游戏(gameID)→ 29.3 发放 free spin → 29.4 查询是否已使用

29.1 Get Provider Free Spin (Common)

供 Merchant 获取支持 free spin 的 provider 列表

Method : [Post]
Path : {{domain}}/ext/getProviderFreeSpin/{{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": [
        {
            "provider": "PGS"
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringSUCCESSdescription of code
dataArray[{"provider":"PGS"}]Providers that support free spin, returned from the game service as-is

*The provider list is cached for 5 minutes. A provider added on the game service side may take up to 5 minutes to appear.

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.
998System error.

*Any other code is returned from the game service as-is, together with its own message.

29.2 Get Free Spin Games (Common)

供 Merchant 获取某个 provider 可发放 free spin 的游戏列表,将列表中的 gameID 作为 Create Free Spin 的 gameId 使用

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "provider": "L22",
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
providerStringL22Provider code from Get Provider Free Spin. Required.
webStringsportbook101Active websites.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "gameID": "66053e460b0139746d384980",
            "gameName": {
                "en": "Apes Squad",
                "th": "",
                "cn": "猿人突击队",
                "la": "",
                "id": "",
                "vn": "",
                "my": "",
                "mm": "",
                "kh": "",
                "tw": ""
            },
            "image": {
                "vertical": "https://ambimgcdn2.co/img/sportsbook/game/L22/L22_Apes%20Squad.webp",
                "horizontal": "https://ambimgcdn2.co/img/sportsbook/game/L22/L22_Apes%20Squad.webp",
                "square": "https://ambimgcdn2.co/img/sportsbook/game/L22/L22_Apes%20Squad.jpg"
            }
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringSUCCESSdescription of code
dataArray[{...}]Games that can give free spin, returned from the game service as-is
data[].gameIDString66053e460b0139746d384980Game id. Send it as gameId on Create Free Spin.
data[].gameNameObject{"en":"Apes Squad",...}Game name per language: en, th, cn, la, id, vn, my, mm, kh, tw. A language the provider did not fill in is "".
data[].imageObject{"vertical":"https://...",...}Game images: vertical, horizontal, square.

*Games hidden on the game service side are not returned.

*The game list is not cached. Every call fetches it from the game service.

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.
100015Invalid input format 'provider' field.
998System error.

*100015 is returned when provider is missing or is not a string, with error_filed "provider".

*A provider that does not support free spin returns code 9901 from the game service.

*Any other code is returned from the game service as-is, together with its own message.

29.3 Create Free Spin (Common)

供 Merchant 给会员发放 free spin

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "transactionId": "FS-20260914-0001",
    "gameId": "60531c5534d88c344ce9acb2",
    "betAmount": 1,
    "freeSpinCount": 10,
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
usernameStringtestopupapixxninemb01The member who receives the free spin. Must be a direct member of the agent.
transactionIdStringFS-20260914-0001Merchant reference of this free spin. Use it to query the log later.
gameIdString60531c5534d88c344ce9acb2Game to give the free spin on. Get it from Get Free Spin Games.
betAmountNumber1Bet amount per spin. Must be greater than 0.
freeSpinCountNumber10Number of free spins. Must be greater than 0.
webStringsportbook101Active websites.

*minAmount and maxAmount are not accepted. They are fixed at 0 and 100000.

*PG Soft games are served as two game id sets. Send either one — the system converts the id to the set that matches the member before sending it to the game service.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": {}
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringSUCCESSdescription of code
dataObject{}Result returned from the game service as-is

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.
100007Missing 'transactionId' field.
100008TransactionId is type string.
100010Missing 'gameId' field.
100011GameId is type string.
100012Key not found.
100013Agent not found.
100015Invalid input format 'betAmount' field.
100015Invalid input format 'freeSpinCount' field.
5044Permission denied
998System error.

*5044 means the username does not exist, or the member is not a direct member of the agent that sent the request.

*Any other code is returned from the game service as-is, together with its own message.

29.4 Get Free Spin Logs (Common)

供 Merchant 查询已发放的 free spin 状态(pending 未使用 / used 已使用)

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

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "transactionId": "FS-20260914-0001",
    "username": "{{agentUsername}}ninemb01",
    "provider": "PGS",
    "status": "pending",
    "page": 1,
    "limit": 20,
    "web": "{{whiteLabel}}"
}
KeyTypeExample ValueDescription
agentUsernameStringtestopupapixxThe agent's username.
keyStringpbR-P0cnKwLVirSOCvf53The agent's unique key.
transactionIdStringFS-20260914-0001Optional. The reference sent on create free spin. Returns only that free spin.
usernameStringtestopupapixxninemb01Required. The member to view logs of. Must be a direct member of the agent.
providerStringPGSOptional. PGS / FC / PG
statusStringpendingOptional. pending or used only.
pageNumber1Optional. Whole number (decimals are rounded down). Less than 1 becomes 1. Default 1.
limitNumber20Optional. Whole number (decimals are rounded down). Less than 1 becomes 20, more than 100 becomes 100. Default 20.
webStringsportbook101Active websites.

*username is required. Logs can be viewed only for members directly under the agent. To view several members, call once per member. The other filters are optional.

Response

{
    "code": 0,
    "msg": "SUCCESS",
    "data": [
        {
            "transactionID": "FS-20260914-0001",
            "username": "testopupapixxninemb01",
            "provider": "PGS",
            "status": "pending"
        }
    ]
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringSUCCESSdescription of code
dataArray[{...}]Free spin logs returned from the game service as-is

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.
100008TransactionId is type string.
100012Key not found.
100013Agent not found.
100015Invalid input format 'provider' field.
100015Invalid input format 'status' field.
100015Invalid input format 'page' field.
100015Invalid input format 'limit' field.
5044Permission denied
998System error.

*5044 means the username does not exist, or the member is not a direct member of the agent that sent the request.

*status accepts pending or used only. Any other value returns 100015 with error_filed "status".

*Any other code is returned from the game service as-is, together with its own message.

以前的
28. Leader Board