API Calls
Player registration 创建玩家帐号接口
| Endpoint 接口: | register |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/register?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
|
password Minimum Length : 6 and maximum Length : 20 characters |
String 字串 | Y 是 | String 加密字符串 |
| cashier_username | String 字串 | Y 是 | Cashier Username 商户账户 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| success | String 字串 | success message 报错内容 |
| error | String 字串 | Error Message 报错码 |
| username | String 字串 | username exsit message 报错内容 |
Player login 创建玩家帐号接口
| Endpoint 接口: | login |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/login
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
| password | String 字串 | Y 是 | String 加密字符串 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| error | String 字串 | Error Message 报错码 |
| token | String 字串 | Bearer Token 报错内容 |
Player details 创建玩家帐号接口
| Endpoint 接口: | me |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/me?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| id | Number 字串 | User ID 报错码 |
| username | String 字串 | Username 报错码 |
| balance | String 字串 | User Balance 报错码 |
| total_in | Number 字串 | Total IN 报错码 |
| total_out | Number 字串 | Total Out 报错码 |
| refunds | String 字串 | Refunds 报错码 |
| role_id | Number 字串 | User Role 报错码 |
| status | String 字串 | Status 报错码 |
| language | String 字串 | Language 报错码 |
| currency | String 字串 | Currency 报错码 |
| last_login | String 字串 | Date 报错码 |
| created_at | String 字串 | Date 报错码 |
| updated_at | String 字串 | Date 报错码 |
| error | String 字串 | Error Message 报错码 |
Player Status Update 创建玩家帐号接口
| Endpoint 接口: | status |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/user/status?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
| status | String 字串 | Y 是 | String status (Active,Banned,Unconfirmed) 加密字符串 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| success | Bool 字串 | Success: true or false 报错内容 |
| error | String 字串 | Error Message 报错码 |
Player update profile 创建玩家帐号接口
| Endpoint 接口: | details |
| Request 请求类型: | PATCH |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/me/details?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
| password | String 字串 | Y 是 | String 加密字符串 |
| password_confirmation | String 字串 | Y 是 | String 加密字符串 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| id | Number 字串 | User ID 报错码 |
| username | String 字串 | Username 报错码 |
| balance | String 字串 | User Balance 报错码 |
| total_in | Number 字串 | Total IN 报错码 |
| total_out | Number 字串 | Total Out 报错码 |
| refunds | String 字串 | Refunds 报错码 |
| role_id | Number 字串 | User Role 报错码 |
| status | String 字串 | Status 报错码 |
| language | String 字串 | Language 报错码 |
| currency | String 字串 | Currency 报错码 |
| last_login | String 字串 | Date 报错码 |
| created_at | String 字串 | Date 报错码 |
| updated_at | String 字串 | Date 报错码 |
| error | String 字串 | Error Message 报错码 |
Player get balance 创建玩家帐号接口
| Endpoint 接口: | getbalance |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/me/getbalance?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| error | String 字串 | Error Message 报错码 |
| balance | String 字串 | User Balance 报错内容 |
Shop get balance 创建玩家帐号接口
| Endpoint 接口: | getshopbalance |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/me/getshopbalance?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| error | String 字串 | Error Message 报错码 |
| balance | String 字串 | User Balance 报错内容 |
Player deposit 创建玩家帐号接口
| Endpoint 接口: | deposit |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/me/deposit?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
amount * amount of deposit *小写 |
Number 字串 | Y 是 | Amount of deposit 会员账号 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| success | Bool 字串 | Success: true or false 报错内容 |
| balance | String 字串 | User Balance 报错内容 |
| error | String 字串 | Error Message 报错码 |
Player withdraw 创建玩家帐号接口
| Endpoint 接口: | withdraw |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/me/withdraw?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
amount * amount of withdraw *小写 |
Number 字串 | Y 是 | Amount of withdraw 会员账号 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| success | Bool 字串 | Success: true or false 报错内容 |
| balance | String 字串 | User Balance 报错内容 |
| error | String 字串 | Error Message 报错码 |
Category list 创建玩家帐号接口
| Endpoint 接口: | category |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/category?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| data | Object/Array 字串 |
List of category 报错码 { "id", "title", "parent", "position", "href","shop_id" } |
| error | String 字串 | Error Message 报错内容 |
Game list 创建玩家帐号接口
| Endpoint 接口: | games |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/games?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
| id | Number 数字 | N 氮 | Get game by id 通过id获取游戏 |
| name | String 細繩 | N 氮 | Multiple game name with | separator 多个游戏名称带有|分隔符 |
| search | String 細繩 | N 氮 | Search by game title 按游戏名称搜索 |
| device | String 細繩 | N 氮 | Get game by multiple device with | separator 通过多个设备获取游戏 |分隔符 |
| labels | String 細繩 | N 氮 | Get game by multiple labels with | separator 通过多个标签获取游戏 |分隔符 |
| category | String 細繩 | N 氮 | Get game by multiple category ids with | separator 通过多个类别 ID 获取游戏 |分隔符 |
| page | Number 細繩 | N 氮 | The default page is 1. 默认页面为 1。 |
| per_page | Number 細繩 | N 氮 | The default number of games displayed per page is 25. If the number is set to -1, all available games will be displayed on a single page without pagination. 每页默认显示的游戏数量为 25。如果将该数字设置为 -1,则所有可用的游戏将显示在一页上,无需分页。 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| data | Object/Array 字串 |
List of game 报错码 { "id", "name", "title", "category", "device", "denomination", "view", "label", "jpg" } |
| error | String 字串 | Error Message 报错内容 |
Game stats 创建玩家帐号接口
| Endpoint 接口: | game |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/stats/game?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
| game | String 細繩 | N 氮 | Get stats by game 通过id获取游戏 |
| balance_from | Number 数字 | N 氮 | Search by balance from 按游戏名称搜索 |
| balance_to | Number 数字 | N 氮 | Search by balance to 按游戏名称搜索 |
| bet_from | Number 数字 | N 氮 | Search by bet from 按游戏名称搜索 |
| bet_to | Number 数字 | N 氮 | Search by bet to 按游戏名称搜索 |
| win_from | Number 数字 | N 氮 | Search by win from 按游戏名称搜索 |
| win_to | Number 数字 | N 氮 | Search by win to 按游戏名称搜索 |
| start_date | String 数字 | N 氮 | Search by start date and time 按开始日期和时间搜索 |
| end_date | String 数字 | N 氮 | Search by end date and time 按结束日期和时间搜索 |
| page | Number 細繩 | N 氮 | The default page is 1. 默认页面为 1。 |
| per_page | Number 細繩 | N 氮 | The default number of records displayed per page is 25. If the number is set to -1, all available records will be displayed on a single page without pagination. 每页默认显示的游戏数量为 25。如果将该数字设置为 -1,则所有可用的游戏将显示在一页上,无需分页。 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| data | Object/Array 字串 |
List of stats 报错码 { 'id','game','date_time','username','balance','bet','win' } |
| error | String 字串 | Error Message 报错内容 |
Game log 创建玩家帐号接口
| Endpoint 接口: | log |
| Request 请求类型: | GET |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/game/log?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
| game | String 細繩 | N 氮 | Get stats by game 通过id获取游戏 |
| start_date | String 数字 | N 氮 | Search by start date and time 按开始日期和时间搜索 |
| end_date | String 数字 | N 氮 | Search by end date and time 按结束日期和时间搜索 |
| page | Number 細繩 | N 氮 | The default page is 1. 默认页面为 1。 |
| per_page | Number 細繩 | N 氮 | The default number of records displayed per page is 25. If the number is set to -1, all available records will be displayed on a single page without pagination. 每页默认显示的游戏数量为 25。如果将该数字设置为 -1,则所有可用的游戏将显示在一页上,无需分页。 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| data | Object/Array 字串 |
List of stats 报错码 { 'id','game','categories','time','username','log' } |
| error | String 字串 | Error Message 报错内容 |
Delete Game Log 删除游戏日志
| Endpoint 接口: | log_delete |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/game/log_delete?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
username * Use mobile number *小写 |
String 字串 | Y 是 |
Player user name 会员账号 Length : 11 character 最短长度:11位 |
log_id | Number 細繩 | N 氮 | Delete game log by id 通过ID删除游戏日志 |
refund_amount | Number 細繩 | N 氮 | Refund amount 退款金额 |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| success | Bool 布尔 | true 真的 |
| error | String 字串 | Error Message 报错内容 |
Game Play 创建玩家帐号接口
| Endpoint 接口: | game/play |
| Request 请求类型: | POST |
| Response 回传格式: | application/json |
Input Data Type 请求资料型态
Example 范例:
<API_URL>/game/play?key=xxxxxxxxx
| Fields 参数 | Type 资料型态 | Req 必要 | Description 参数说明 |
|---|---|---|---|
|
Authorization * Bearer token |
String 字串 | "Yes" for logged in user, "No" for Demo “是”表示登录用户,“否”表示演示 | Pass inside the header 适合标题 |
|
key * Api Key *小写 |
String 字串 | Y 是 | API user key 会员账号 |
|
id * Game ID / Game Name *游戏ID/游戏名称 |
Number/String 数字/字符串 | Y 是 | Game id or Game name for play game 游戏ID或游戏名称(用于玩游戏) |
Response Data Type 回传资料型态
| Fields 参数 | Type 资料型态 | Description 参数说明 |
|---|---|---|
| game_url | String 字串 | Game Url for play game 报错码 |
| error | String 字串 | Error Message 报错内容 |
Error Code 报错码列表
| Error Code 报错码 | Description 报错说明 |
|---|---|
| 0 | SUCCESS 请求成功 |
| 61 | CURRENCY_NOT_SUPPORT 货币不兼容 |
| 70 | INSUFFICIENT_KIOSK_BALANCE 集成系统余额不足 |
| 71 | INVALID_REFERENCE_ID 单据号不正确 |
| 72 | INSUFFICIENT_BALANCE 余额不足 |
| 73 | INVALID_TRANSFER_AMOUNT 转账金额不正确 |
| 74 | INVALID_TRANSFER_AMOUNT_TWO_DECIMAL_ONLY 转账金额不能多过两个小数点 0.00 |
| 75 | NOT_ALLOW_TO_MAKE_TRANSFER_WHILE_IN_GAME 不允许在游戏中进行转移 |
| 81 | MEMBER_NOT_FOUND 会员账号不存在 |
| 82 | MEMBER_EXISTED 会员账号已存在 |
| 83 | OPERATOR_EXISTED 代理号已存在 |
| 90 | INVALID_PARAMETER 请求参数不正确 |
| 91 | INVALID_OPERATOR 代理号不正确 |
| 93 | INVALID_PARAMETER_TYPE 请求参数类型不正确 |
| 94 | INVALID_PARAMETER_USERNAME 账号不正确 |
| 95 | INVALID_PARAMETER_PASSWORD 密码不正确 |
| 96 | INVALID_PARAMETER_OPASSWORD 旧密码不正确 |
| 97 | INVALID_PARAMETER_EMPTY_DOMAINNAME 请求链接/域名不正确 |
| 98 | INVALID_USERNAME_OR_PASSWORD 账号/密码错误 |
| 99 | INVALID_SIGNATURE 加密错误 |
| 600 | pre-check stage FAILED, deposit/withdraw transaction IGNORED 前期检验失败。 存款/取款 操作已被无视 |
| 601 | DEPO_APIREQ_BLOCKED_FOR_THIS_PRODUCT_TILL_FURTHER_NOTICE 此产品的存款 功能暂时停用维修 |
| 602 | WITH_APIREQ_BLOCKED_FOR_THIS_PRODUCT_TILL_FURTHER_NOTICE 此产品的取款 功能暂时停用维修 |
| 603 | Going to perform an online maintenance, Deposit/Withdraw API is DISABLED temporarily (disabled duration 5~ 10 minutes, will release earlier when done earlier). 即将执行在线系统维护,为了避免维护时导致的系统不稳定,转账API暂时停止(暂停时间大约5~10分钟,若提早完毕会提早解放) |
| 992 | INVALID_PARAMETER_PRODUCT_NOT_SUPPORTED_GAMETYPE 平台不兼容请求的游戏类型 |
| 991 | OPERATOR_STATUS_INACTIVE 代理号已冻结 |
| 994 | ACCESS_PROHIBITED 接口访问被禁止 |
| 995 | PRODUCT_NOT_ACTIVATED 平台未开通 |
| 996 | PRODUCT_NOT_AVAILABLE 平台不支持 |
| 998 | PLEASE_CONTACT_CSD 请联系客服 |
| 999 | UNDER_MAINTENENCE 系统维护中 |
| 9999 | UNKNOWN_ERROR 未知错误 |
| -987 | RECORD_NOT_FOUND 交易单号不存在;产品不支持 |
| -997 | SYS_EXCEPTION, Please contact CS. 系统错误,请联络客服。 |
| -998 | INSUFFICIENT_APIKIOSK_BALANCE 集成系统接口余额不足 |
| -999 | API_ERROR 接口错误 |