Download OpenAPI specification:Download
REST API
Method : GET/POST, depends on each endpoint spec 依接口规格说明
Format : JSON
Uri prefix : /gameapi/v2
Example:
POST /gameapi/v2/create_player HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: <api server>
Connection: close
Content-Length: 255
Request
{
"merchant_code": "04e17735ba374dcd898746c6ac8118e4",
"auth_token": "59ddb8dd71f8494485ff200f78bc4dba",
"username": "merchant.player2",
"sign": "20fbee96a0f436a6d8386b192a569a27bcc1c689"
}
Response
{
"success": true,
"code": 0,
"detail": {
"id": 11216,
"role": 3,
"username": "o2p1632998628",
"company": 11198
}
}
Standard result:
Game Code | Name en | Name zh |
---|---|---|
lobby | Game Lobby | 游戏大厅 |
Game Code | Game Tag | Name en | Name zh | Rank of last month | Released |
---|---|---|---|---|---|
crash | 1 | Crash | 暴力弹 | 1 | 2022/6/30 |
mine | 1 | Mine | 挖矿弹 | 2 | 2022/6/30 |
plinko | 1 | Plinko | 叮咚球 | 3 | 2022/6/30 |
dice | 1 | Lucky Beer | 幸运啤酒 | 4 | 2022/6/30 |
coin | 1 | Goal | 点球 | 5 | 2022/6/30 |
limbo | 1 | Limbo | 凌波弹 | 6 | 2022/6/30 |
space-max | 2 | Space Max | 星际探险 | - | 2023/5/15 |
double | 1 | Double | 轮盘 | - | 2022/6/30 |
keno | 1 | Keno | 基诺球 | - | 2022/6/30 |
crypto | 1 | Crypto | 宝石 | - | 2022/6/30 |
triple | 1 | Triple | 三联爆 | - | 2022/6/30 |
hilo | 1 | Hilo | 西洛 | - | 2022/6/30 |
tower | 1 | Tower | 爬塔 | - | 2022/6/30 |
bingo | 1 | Bingo | 宾果 | - | 2023/3/1 |
poker | 1 | Video Poker | 电子扑克 | - | 2023/4/1 |
wheel | 1 | Wheel | 转盘 | - | 2023/6/30 |
nine | 1 | Nine | 拆弹专家 | - | 2023/10/4 |
color | 1 | Color | 颜色 | - | 2024/1/3 |
racing | 1 | Racing | 赛车 | - | 2024/1/26 |
space | 1 | Space | 星际迷航 | - | 2024/8/8 |
baccarat | 1 | Baccarat | 百家乐 | - | 2024/12/26 |
Game Code | Game Tag | Name en | Name zh | Rank of last month | Released |
---|---|---|---|---|---|
m-mine | 3 | Monster Mine | 怪兽扫雷 | 1 | 2023/9/1 |
m-plinko | 3 | Monster Plinko | 怪兽弹珠 | 2 | 2023/9/1 |
m-tower | 3 | Monster Tower | 怪兽爬塔 | 3 | 2023/9/1 |
m-fight | 3 | Monster Fight | 怪兽斗争 | 4 | 2023/9/1 |
m-crypto | 3 | Monster Crypto | 怪兽宝石 | - | 2023/9/1 |
m-triple | 3 | Monster Triple | 怪兽三联 | - | 2023/9/1 |
m-hilo | 3 | Monster HiLo | 怪兽西洛 | - | 2024/3/1 |
m-dice | 3 | Monster Dice | 怪兽骰宝 | - | 2024/3/1 |
m-crash | 3 | Monster Crash | 怪兽飞船 | - | 2024/4/9 |
Game Code | Game Tag | Name en | Name zh | Rank of last month | Released |
---|---|---|---|---|---|
3001 | 10 | Happy Farm | 快乐农场 | 2024/1/25 | |
3002 | 10 | Lucky 10 | 幸运十倍 | 2024/1/25 | |
3003 | 10 | Super 777 | 超级777 | 2024/1/25 | |
3004 | 10 | Jungle Adventure | 丛林探险 | 2024/1/25 | |
3005 | 10 | Shoot out | 点球大战 | 2024/1/25 | |
3006 | 10 | Niu Niu | 牛牛 | 2024/1/25 |
Game Code | Game Tag | Name en | Name cn | Released |
---|---|---|---|---|
7001 | 30 | Molten Dragon | 熔火幼龙 | 2024/9/12 |
7002 | 30 | Magic Girl | 小魔女 | 2024/9/12 |
7003 | 30 | Jungle Travel | 丛林旅行 | 2024/9/12 |
Code | Message | Description |
---|---|---|
1 | InvalidSignature | 无效的签名 |
2 | InvalidMerchantCode | 无效的商户号 |
3 | InvalidSecureKey | 无效的安全密钥 |
4 | InvalidAuthToken | 无效的授权书识别符 |
5 | InvalidGamePlatformId | 无效的游戏平台识别码 |
6 | InvalidUsername | 无效的用户名 |
7 | InvalidPassword | 无效的密码 |
8 | DuplicateUsername | 用户名重复 |
9 | InvalidExtraInfo | 无效的额外信息 |
10 | InvalidGamePlatformSettings | 无效的游戏平台配置 |
11 | InvalidBetLimit | 无效的限注配置 |
12 | InvalidActionType | 无效的动作类型 |
13 | InvalidAmount | 无效的金额 |
14 | DuplicateExternalTransId | 外部交易识别码重复 |
15 | NoEnoughBalance | 余额不足 |
16 | InvalidFromDateTime | 无效的启示时间 |
17 | InvalidToDateTime | 无效的结束时间 |
18 | InvalidExternalTransId | 无效的外部交易识别码 |
19 | SecureKeyNotAllowed | 不允许此安全密钥 |
20 | BonusRequired | 需要奖金组 |
21 | InvalidBonus | 无效的奖金组 |
22 | InvalidRebate | 无效的返点比例 |
23 | AccountDuplicated | 账号用户名重复 |
24 | SubAccountNotFound | 未找到指定子账号 |
25 | InvalidParent | 无效的上级代理 |
26 | RequestDataRequired | 需要请求资料 |
27 | RequestTooFast | 请求频率过快 |
28 | TransactionIdRequired | 请传入交易号或外部交易号 |
29 | PlayerNotFound | 未找到指定玩家 |
put server or ip which don’t give to player 隐藏对外 ip
Setup white ip on servers 服务器上设置白名单 IP
For staging environment, it is necessary to add allowed ips for visiting game front-end through back office 测试环境需要在管理后台增加访问游戏的 IP 白名单
Any 32 chars(letter and number), Will send by email
Testing key: dd35aPO0bd186dc6ace6We2e0fb48s70
Any 32 chars(letter and number), Will send by email
Testing key: dd35aPO0bd186dc6ace6We2e0fb48s70
Always use utf-8
所有参数默认编码 所有参数默认编码 utf-8
Ignore sign field or object type field
忽略参数名为 sign 的字段,或参数值为 object 类型的字段
The order should be sorted by parameter name in alphabetical order
所有参数名,按字母顺序排序
Concat all non-empty values to one string , append sign key
to last, then use SHA1 to get signature
把所有非空参数的值,连接成一个字符串,把签名秘钥
放到结尾,然使用 SHA1 加密算法生成签名
Example:
Suppose the sign key is SIGN_KEY_EXAMPLE
, and we need to sign following parameter object
假如商户的签名秘钥为 SIGN_KEY_EXAMPLE
,我们需要对此参数进行签名
{
"b": 1.1,
"a": 1,
"d": "some string",
"e": "",
"c": true,
"sign": "abcdefg",
"g": {
"x": 1,
"y": 2
},
"f": null
}
以下为计算签名流程 The sign procedure is as below
Ignore fields without value, of object type, or having name “sign”, then we have
忽略 value 为空的字段,忽略 object 类型字段,忽略 key 为 sign 的字段,得到
{
"b": 1.1,
"a": 1,
"d": "some string",
"c": true
}
Order the params by key ascendingly, then we have
将 key 按字母顺序排序,得到
{
"a": 1,
"b": 1.1,
"c": true,
"d": "some string"
}
Put the values together (without key) in the order of their key, and add the sign key to the end, then we have the string before sign
将 value(不需 key)按顺序连接起来,并且在最后拼接上签名密钥,得到签名 之前的字符串
11.1truesome stringSIGN_KEY_EXAMPLE
Perform sha1 hash on the string before sign, then we get the sign value 对原始字符串进行 sha1 加密,得到签名
91bef33b208ba98ac2d889b9c4e996651ca58146
Get auth_token by merchant_code and secure_key
使用 merchant_code 商户号和 secure_key 安全秘钥获得 auth_token 身份 token
Send auth_token as parameter when call api
每次调用 api 的时候传送参数身份 token
If client wants to use seamless mode of chain games, client has to implement webhooks described below, and provide us client’s host_url. 如果接入方想要使用区块链游戏的单钱包模式,接入方需要按照下列规格实现 webhook,并提供我们对应的服务器网址.
Sign algorithm is the same as described in Security Mode chapter. 签名算法同安全模式章节说明.
query client side player information
查询接入方玩家信息
Name | Type | Description |
---|---|---|
unique_id | string | unique id for each transaction 独立识别每次调用接口的 id |
timestamp | number | unix time (s) 当前时间戳 unix 秒 |
merchant_code | string | merchant code 商户号 |
username | string | player username 玩家用户名 |
sign | string | Signature 参数签名 |
{
"unique_id": "sampleId",
"timestamp": 1654752446,
"merchant_code": "testMerchant",
"username": "testPlayer",
"sign": "testSign"
}
Name | Type | Description |
---|---|---|
is_success | boolean | if the bet is successful or not, default true 投注是否成功,不传默认为成功 |
err_msg | string | error message if error 操作失败的错误说明 |
username | string | player username 玩家用户名 |
balance | number | balance 玩家余额 |
currency | string | currency 玩家货币 |
{
"is_success": true,
"err_msg": "",
"username": "test",
"balance": 100,
"currency": "test"
}
Bet
投注
Name | Type | Description |
---|---|---|
unique_id | string | unique id for each transaction 独立识别每次调用接口的 id |
timestamp | number | unix time (s) 当前时间戳 unix 秒 |
merchant_code | string | merchant code 商户号 |
username | string | player username 玩家用户名 |
amount | number | bet amount 投注金额 |
currency | string | currency 玩家货币 |
game_code | string | game code 游戏代码 |
bet_id | number | bet number 投注 id |
round_id | string or number | round number 局号;目前只有 double 游戏为 string 格式 |
number | string | updated bet content 投注内容 |
sign | string | Signature 参数签名 |
number
detail
game | Type | Description |
---|---|---|
crash | string | sample: 1000 |
double | string | sample: 1 ; 0 yellow, 1 green, 2 blue |
plinko | string | sample: {"layer":8,"level":0} ; level: 0 blue, 1 green, 2 red |
keno | string | sample: {"number":"[1,2,3]","level":0} ; level (risk): 0 low, 1 medium, 2 high |
dice | string | sample: {"point":90,"game_type":1} ; type 1 under, 2 over |
triple | string | sample: {"position":[10,2,3],"level":0} , level (risk): 0 low, 1 medium, 2 high |
bingo | string | sample: {"card":"[44,53,63,9,64,30,13,57,17,24,36,71,1,58,35,61,7,48,75,45,40,18,69,16]","count":45} ; card: cards dealt to player; count: reveal cards count chosen by player |
limbo | string | sample: {"point":2} ; point: cashout point |
crypto | string | sample: {} ; constant |
coin | string | sample: {"position":"[1]","type":1} for instant, {"type":2} for multiple; position: 1 head, 2 tail; type: 1 instant, 2 multiple |
mine | string | sample: {"count":1} for normal bet or {"count":1,"position":"[0]"} for instant bet; count: how many ghosts; position: player's choice |
tower | string | sample: {"count":1} for normal bet or {"count":1,"position":"[0]"} for instant bet; count: bombs per floor; position: player's choice at each floor |
hilo | string | sample: {} ; constant |
poker | string | sample: {"poker_init":"[49,18,31,7,11]"} initial hand, 0~51 ♠♥♣♦ |
wheel | string | sample: {"level":1,"segments":20} , level: difficulty; segments: player's choice |
nine | string | sample: {} for normal bet or {"position":"[0]"} for instant bet; position: the line player cuts |
3001 | string | sample: {"content":[49,49,20,"顺",15,51,22,9,49,44,3,46,4],"lucky_draw":[6,8,16,18,66,68,88,"顺","发"]} ; scratch card content and symbols that are counted as hits |
3002 | string | sample: {"content":[15,28,24,51,77,47,75,12,29,59,36,91,6,9,88,22,41,12,26,73,90,33,55,94,94,64,48,86,55,95,85,14,66,13,89,72,69,12,95,66,16,58,90,96,14,24,74,62,41,62,30,38],"lucky_draw":46} ; scratch card content and symbol which is counted as hit |
3003 | string | sample: {"content":[220,158,398,519,638,514,893,238,602,215,830,126,780,524,66,758,350,809,396,192,894,667,107,694,234,535,159,226,917,912,85,194,344,740,506,378,327,707,410,684,466,246,147,840,605,0,24,717,722],"lucky_draw":[0,7,77,777]} ; scratch card content and symbols that are counted as hits |
3004 | string | sample: {"content":[2,7,1,8,5,4,0,4,7],"lucky_draw":[]} ; scratch card content, only 7 are considered for hit patterns; lucky_draw is always empty |
3005 | string | sample: {"content":[1,0,0,0,0,0,0,0,0,0,0,0],"lucky_draw":[1]} ; scratch card content, 1 means hit; lucky_draw is always one element of 1 |
{
"unique_id": "testId",
"timestamp": 1654752446,
"merchant_code": "testMerchant",
"username": "testPlayer",
"amount": 30,
"currency": "USD",
"game_code": "double",
"bet_id": 99,
"round_id": "testRound",
"number": "white",
"sign": "testSign"
}
Name | Type | Description |
---|---|---|
is_success | boolean | if the bet is successful or not, default true 投注是否成功,不传默认为成功 |
err_msg | string | error message if error 操作失败的错误说明 |
balance | number | balance 玩家余额 |
currency | string | currency 玩家货币 |
need_refund | boolean | if the failed bet needs refund, default true 此失败注单是否需要退款,不传默认为需要退款 |
退款控制
need_refund
, 不传的时候默认为 true,具体情形如下need_refund
值为false的时候,我们不会再调用refund webhookneed_refund
值为true的时候,我们会调用refund webhook 退回玩家投注金额need_refund
字段,我们会调用refund webhook 退回玩家投注金额,跟目前的行为一致need_refund
这个字段Refund Control
is_success
false), client can add a field need_refund
, which is optional and defaults to true; the effects are as followsneed_refund
false: we don't invoke client's refund webhook for this failed betneed_refund
true: we invoke client's refund webhook for this failed betneed_refund
is not in response: we invoke client's refund webhook for this failed bet, like the behavior before we introduce this fieldis_success
true), client don't have to specify this field in response{
"is_success": true,
"err_msg": "",
"balance": 100,
"currency": "test",
}
payout
派彩
This api will be invoked when a bet is settled, no matter win or lose
当注单结算,无论输赢,都会调用此接口
Name | Type | Description |
---|---|---|
unique_id | string | unique id for each transaction 独立识别每次调用接口的 id |
timestamp | number | unix time (s) 当前时间戳 unix 秒 |
merchant_code | string | merchant code 商户号 |
username | string | player username 玩家用户名 |
amount | number | payout amount 派彩金额 |
currency | string | currency 玩家货币 |
game_code | string | game code 游戏代码 |
bet_id | number | bet number 投注 id |
round_id | string or number | round number 局号;目前只有 double 游戏为 string 格式 |
number | string | updated bet content 更新后的投注内容 |
sign | string | Signature 参数签名 |
number
detail
game | Type | Description |
---|---|---|
crash | string | sample: 1.2 |
double | string | sample: 1 ; 0 yellow, 1 green, 2 blue |
plinko | string | sample: {"layer":8,"level":0} ; level: 0 blue, 1 green, 2 red |
keno | string | sample: {"number":[1,2,3],"level":0} ; level (risk): 0 low, 1 medium, 2 high |
dice | string | sample: 90 |
triple | string | sample: {"position":[10,2,3],"level":0} , level (risk): 0 low, 1 medium, 2 high |
bingo | string | sample: [58,22,65,39,5,17,68,18,29,38,47,46,45,48,11,41,74,64,20,51,73,63,21,57] |
limbo | string | sample: 2 |
crypto | string | always an empty string |
coin | string | sample: 1 or "[1,1]" (instant or multiple); 1 head, 2 tail |
mine | string | sample: [0] |
tower | string | sample: [0] |
hilo | string | sample: [0,2,3] ; 0 skip, 1 equal, 2 less, 3 larger |
poker | string | sample: [ 32, 44, 26, 39, 2 ] |
wheel | string | always an empty string |
nine | string | sample: [0] |
3001 | string | sample: {"content":[49,49,20,"顺",15,51,22,9,49,44,3,46,4],"lucky_draw":[6,8,16,18,66,68,88,"顺","发"]} ; scratch card content and symbols that are counted as hits |
3002 | string | sample: {"content":[15,28,24,51,77,47,75,12,29,59,36,91,6,9,88,22,41,12,26,73,90,33,55,94,94,64,48,86,55,95,85,14,66,13,89,72,69,12,95,66,16,58,90,96,14,24,74,62,41,62,30,38],"lucky_draw":46} ; scratch card content and symbol which is counted as hit |
3003 | string | sample: {"content":[220,158,398,519,638,514,893,238,602,215,830,126,780,524,66,758,350,809,396,192,894,667,107,694,234,535,159,226,917,912,85,194,344,740,506,378,327,707,410,684,466,246,147,840,605,0,24,717,722],"lucky_draw":[0,7,77,777]} ; scratch card content and symbols that are counted as hits |
3004 | string | sample: {"content":[2,7,1,8,5,4,0,4,7],"lucky_draw":[]} ; scratch card content, only 7 are considered for hit patterns; lucky_draw is always empty |
3005 | string | sample: {"content":[1,0,0,0,0,0,0,0,0,0,0,0],"lucky_draw":[1]} ; scratch card content, 1 means hit; lucky_draw is always one element of 1 |
{
"unique_id": "testId",
"timestamp": 1654752446,
"merchant_code": "testMerchant",
"username": "testPlayer",
"amount": 60,
"currency": "USD",
"game_code": "double",
"bet_id": 99,
"round_id": "testRound",
"number": "white",
"sign": "testSign"
}
Name | Type | Description |
---|---|---|
is_success | boolean | if the bet is successful or not, default true 投注是否成功,不传默认为成功 |
err_msg | string | error message if error 操作失败的错误说明 |
balance | number | balance 玩家余额 |
currency | string | currency 玩家货币 |
{
"is_success": true,
"err_msg": "",
"balance": 100,
"currency": "test"
}
Client needs to check bet_id and round_id, and whether the amount is same with the value of parameter
接入方需要检查投注 id、局号、以及退回金额是否与投注时参数金额一致
Important Note 重要事项
For all failed bets, we will invoke refund endpoint. Client needs to check if player balance has been deducted for these failed bets; if not, client's refund webhook should not add bet amount back to player balance.
针对所有投注失败的注单,我们会进行退款,接入方要判断这一局是否有成功扣除余额,若没有扣除余额的话,refund webhook 实现逻辑不需要加回余额。
Name | Type | Description |
---|---|---|
unique_id | string | unique id for each transaction 独立识别每次调用接口的 id |
timestamp | number | unix time (s) 当前时间戳 unix 秒 |
merchant_code | string | merchant code 商户号 |
username | string | player username 玩家用户名 |
amount | number | refund amount 退回金额 |
currency | string | currency 玩家货币 |
game_code | string | game code 游戏代码 |
bet_id | number | bet number 投注 id |
round_id | string or number | round number 局号;目前只有 double 游戏为 string 格式 |
type | integer | 1: refund 2: payout failed 3: issue cancel; 1:退回 2:派彩失败 3:取消 |
sign | string | Signature 参数签名 |
{
"unique_id": "testId",
"timestamp": 1654752446,
"merchant_code": "testMerchant",
"username": "testPlayer",
"amount": 30,
"currency": "USD",
"game_code": "double",
"bet_id": 99,
"round_id": "testRound",
"type": 1,
"sign": "testSign"
}
Name | Type | Description |
---|---|---|
is_success | boolean | if the bet is successful or not, default true 投注是否成功,不传默认为成功 |
err_msg | string | error message if error 操作失败的错误说明 |
balance | number | balance 玩家余额 |
currency | string | currency 玩家货币 |
{
"is_success": true,
"err_msg": "",
"balance": 100,
"currency": "test"
}
Generate token by merchant code and secure key
使用商户号和安全秘钥生成 token
timeout在600之内时,会生成返回新的auth token,并刷新过期时间
if timeout less than 600, will generate new auth token and refresh timeout
merchant_code required | string |
secure_key required | string |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
{- "merchant_code": "string",
- "secure_key": "string",
- "sign": "string"
}
{- "success": true,
- "code": 0,
- "detail": {
- "auth_token": "8f5a3598a8c44f46b41d0a5a8fc3cee0",
- "timeout": 7198
}
}
create player account
创建玩家游戏账号
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
username required | string [ 6 .. 100 ] characters only letter, number, hyphen, underscore;玩家用户名 |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
{- "auth_token": "stringstringstringstringstringst",
- "merchant_code": "string",
- "username": "string",
- "sign": "string"
}
{- "success": true,
- "code": 0,
- "detail": {
- "id": 11354,
- "role": 3,
- "username": "o2p1633071566",
- "company": 11336
}
}
query player detail
查询玩家信息
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
username required | string [ 6 .. 100 ] characters only letter, number, hyphen, underscore;玩家用户名 |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
{- "success": true,
- "code": 0,
- "detail": {
- "id": 11354,
- "role": 3,
- "username": "o2p1633071566",
- "company": 11336
}
}
kick player
剔除玩家
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
username required | string [ 6 .. 100 ] characters only letter, number, hyphen, underscore;玩家用户名 |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
{- "auth_token": "stringstringstringstringstringst",
- "merchant_code": "string",
- "username": "string",
- "sign": "string"
}
{- "success": true,
- "code": 0,
- "detail": "ok"
}
block player
禁用玩家
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
username required | string [ 6 .. 100 ] characters only letter, number, hyphen, underscore;玩家用户名 |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
{- "auth_token": "stringstringstringstringstringst",
- "merchant_code": "string",
- "username": "string",
- "sign": "string"
}
{- "success": true,
- "code": 0,
- "detail": {
- "blocked": true
}
}
unblock player
启用玩家
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
username required | string [ 6 .. 100 ] characters only letter, number, hyphen, underscore;玩家用户名 |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
{- "auth_token": "stringstringstringstringstringst",
- "merchant_code": "string",
- "username": "string",
- "sign": "string"
}
{- "success": true,
- "code": 0,
- "detail": {
- "blocked": false
}
}
launch game
启动游戏
auth_token required | string 32 characters from authentication API;来自身份 认证 API | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
merchant_code required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
game_code required | string 参考游戏列表的 Game Code 值 传入 lobby 时启动游戏大厅 Values of Game Code in Game List section If game code is passed with value | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
username required | string [ 6 .. 100 ] characters only letter, number, hyphen, underscore;玩家用户名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
language required | string Enum: "en" "zh" "vi" "th" "id" "pt" "ar" "de" "es-MX" "es" "fr" "hu" "it" "ro" "ko" "ja" "tr" "ru"
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
home_link | string If provided, game UI will display a button to navigate user to this url;如果传入,则游 戏页面会显示一个可以导向此网址的按钮 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
trial | boolean whether launch trial game or not 是否启动试玩页面
|
{- "success": true,
- "code": 0,
- "detail": {
- "game_url": "test"
}
}
query mini game history stream (recommended)
串流查询游戏历史 (建议使用)
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
from required | string start of bet time range, format |
to required | string end of bet time range, format |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
game_code | string 参考游戏列表 Classic 系列与 Monster 系列的 Game Code 值 Values of Game Code of Classic series and Monster series in Game List section |
time_type | integer Enum: 1 2 time type for query filter; default to 1 过滤的时间类型,预设 1
|
last_bet_id | string 指定要返回 ID 比这个值更大的记录 |
{- "success": true,
- "code": 0,
- "time": 1708570865824,
- "rid": 1923,
- "cost": 10,
- "detail": {
- "has_next": false,
- "total_rows_current_page": 2,
- "game_history": [
- {
- "uniqueid": "crash_1000000775",
- "username": "o2p1708570800",
- "game_code": "crash",
- "game_tag": 1,
- "bet_time": 1708570803,
- "payout_time": 1708570803,
- "game_finish_time": 1708570803,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 5,
- "bet_details": {
- "period": "10516",
- "cashout": 999,
- "cashout_auto": 1000,
- "try_cashout": true
}, - "result_details": {
- "result_point": 3.31,
- "result_seed": "c9ac9fe477475e71c119c4db8777acfacb9378da627afc051e7a44c8b029e083"
}
}, - {
- "uniqueid": "crash_1000000811",
- "username": "o2p1708570800",
- "game_code": "crash",
- "game_tag": 1,
- "bet_time": 1708570855,
- "payout_time": 1708570855,
- "game_finish_time": 1708570855,
- "bet_amount": 100,
- "payout_amount": 120,
- "status": 4,
- "bet_details": {
- "period": "10517",
- "cashout": 1.2,
- "cashout_auto": 1.2,
- "try_cashout": false
}, - "result_details": {
- "result_point": 3.89,
- "result_seed": "7b8d6cd658b0fcb4c8507184844c6b395c14fa722b408266cc6f717a15826d5c"
}
}
]
}
}
query scratch game history stream (recommended)
串流查询游戏历史 (建议使用)
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
from required | string start of bet time range, format |
to required | string end of bet time range, format |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
game_code | string 参考游戏列表 Scratch 系列的 Game Code 值 Values of Game Code of Scratch series in Game List section |
time_type | integer Enum: 1 2 time type for query filter; default to 1 过滤的时间类型,预设 1
|
last_bet_id | string 指定要返回 ID 比这个值更大的记录 |
{- "success": true,
- "code": 0,
- "time": 1708572889906,
- "rid": 2173,
- "cost": 11,
- "detail": {
- "has_next": false,
- "total_rows_current_page": 15,
- "game_history": [
- {
- "uniqueid": "3001_100943",
- "username": "o2p1708572807",
- "game_code": "3001",
- "game_tag": 10,
- "bet_time": 1708572859,
- "payout_time": 1708572859,
- "game_finish_time": 1708572859,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": {
- "content": [
- 38,
- 71,
- 68,
- 58,
- 4,
- 39,
- 57,
- 32,
- 33,
- 80,
- 70,
- 7,
- 7
], - "lucky_draw": [
- 6,
- 8,
- 16,
- 18,
- 66,
- 68,
- 88,
- "顺",
- "发"
]
}, - "result_details": {
- "award": [
- [
- 8,
- 10000,
- 50000
], - [
- 7,
- 1000,
- 5000
], - [
- 6,
- 100,
- 500
], - [
- 5,
- 10,
- 50
], - [
- 4,
- 5,
- 25
], - [
- 3,
- 3,
- 3
], - [
- 2,
- 1.2,
- 1.2
], - [
- 1,
- 0,
- 0
], - [
- 0,
- 0,
- 0
]
]
}
}, - {
- "uniqueid": "3001_100944",
- "username": "o2p1708572807",
- "game_code": "3001",
- "game_tag": 10,
- "bet_time": 1708572859,
- "payout_time": 1708572859,
- "game_finish_time": 1708572859,
- "bet_amount": 100,
- "payout_amount": 120,
- "status": 3,
- "bet_details": {
- "content": [
- 66,
- 58,
- 78,
- 24,
- 20,
- 65,
- 9,
- 34,
- 74,
- 26,
- 21,
- 16,
- 7
], - "lucky_draw": [
- 6,
- 8,
- 16,
- 18,
- 66,
- 68,
- 88,
- "顺",
- "发"
]
}, - "result_details": {
- "award": [
- [
- 8,
- 10000,
- 50000
], - [
- 7,
- 1000,
- 5000
], - [
- 6,
- 100,
- 500
], - [
- 5,
- 10,
- 50
], - [
- 4,
- 5,
- 25
], - [
- 3,
- 3,
- 3
], - [
- 2,
- 1.2,
- 1.2
], - [
- 1,
- 0,
- 0
], - [
- 0,
- 0,
- 0
]
]
}
}, - {
- "uniqueid": "3001_100945",
- "username": "o2p1708572807",
- "game_code": "3001",
- "game_tag": 10,
- "bet_time": 1708572859,
- "payout_time": 1708572859,
- "game_finish_time": 1708572859,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": {
- "content": [
- 50,
- "顺",
- 23,
- 30,
- 23,
- 61,
- 63,
- 46,
- 87,
- 26,
- 65,
- 51,
- 9
], - "lucky_draw": [
- 6,
- 8,
- 16,
- 18,
- 66,
- 68,
- 88,
- "顺",
- "发"
]
}, - "result_details": {
- "award": [
- [
- 8,
- 10000,
- 50000
], - [
- 7,
- 1000,
- 5000
], - [
- 6,
- 100,
- 500
], - [
- 5,
- 10,
- 50
], - [
- 4,
- 5,
- 25
], - [
- 3,
- 3,
- 3
], - [
- 2,
- 1.2,
- 1.2
], - [
- 1,
- 0,
- 0
], - [
- 0,
- 0,
- 0
]
]
}
}, - {
- "uniqueid": "3001_100946",
- "username": "o2p1708572807",
- "game_code": "3001",
- "game_tag": 10,
- "bet_time": 1708572859,
- "payout_time": 1708572859,
- "game_finish_time": 1708572859,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": {
- "content": [
- 34,
- 15,
- 6,
- 69,
- 22,
- 81,
- 57,
- 38,
- 59,
- 67,
- 50,
- 3,
- 7
], - "lucky_draw": [
- 6,
- 8,
- 16,
- 18,
- 66,
- 68,
- 88,
- "顺",
- "发"
]
}, - "result_details": {
- "award": [
- [
- 8,
- 10000,
- 50000
], - [
- 7,
- 1000,
- 5000
], - [
- 6,
- 100,
- 500
], - [
- 5,
- 10,
- 50
], - [
- 4,
- 5,
- 25
], - [
- 3,
- 3,
- 3
], - [
- 2,
- 1.2,
- 1.2
], - [
- 1,
- 0,
- 0
], - [
- 0,
- 0,
- 0
]
]
}
}
]
}
}
query slot game history stream (recommended)
串流查询游戏历史 (建议使用)
auth_token required | string 32 characters from authentication API;来自身份 认证 API |
merchant_code required | string |
from required | string start of bet time range, format |
to required | string end of bet time range, format |
sign required | string signatrue of request payload, created by rule written in Security Mode 参数签名,依据安全模式的签名规则 |
game_code | string 参考游戏列表 Slot 系列的 Game Code 值 Values of Game Code of Slot series in Game List section |
time_type | integer Enum: 1 2 time type for query filter; default to 1 过滤的时间类型,预设 1
|
last_bet_id | string 指定要返回 ID 比这个值更大的记录 |
{- "success": true,
- "code": 0,
- "time": 1728878471091,
- "rid": 7801,
- "cost": 33,
- "detail": {
- "has_next": false,
- "total_rows_current_page": 4,
- "game_history": [
- {
- "uniqueid": "7001_100879",
- "username": "o2p1728878370",
- "game_code": "7001",
- "game_tag": 30,
- "bet_time": 1728878467,
- "payout_time": 1728878467,
- "game_finish_time": 1728878467,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": { },
- "result_details": {
- "odds": 0,
- "content": [
- 6,
- 9,
- 12
]
}
}, - {
- "uniqueid": "7001_100880",
- "username": "o2p1728878370",
- "game_code": "7001",
- "game_tag": 30,
- "bet_time": 1728878467,
- "payout_time": 1728878467,
- "game_finish_time": 1728878467,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": { },
- "result_details": {
- "odds": 0,
- "content": [
- 1,
- 6,
- 5
]
}
}, - {
- "uniqueid": "7001_100881",
- "username": "o2p1728878370",
- "game_code": "7001",
- "game_tag": 30,
- "bet_time": 1728878467,
- "payout_time": 1728878467,
- "game_finish_time": 1728878467,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": { },
- "result_details": {
- "odds": 0,
- "content": [
- 12,
- 6,
- 0
]
}
}, - {
- "uniqueid": "7001_100882",
- "username": "o2p1728878370",
- "game_code": "7001",
- "game_tag": 30,
- "bet_time": 1728878467,
- "payout_time": 1728878467,
- "game_finish_time": 1728878467,
- "bet_amount": 100,
- "payout_amount": 0,
- "status": 3,
- "bet_details": { },
- "result_details": {
- "odds": 0,
- "content": [
- 9,
- 3,
- 1
]
}
}
]
}
}