Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
1 of 40
Integration APIs Specification (API 接口文档)
接口文档)接口文档)
接口文档) v.2.7.1
Last Updated By
Nov 25, 2022
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
2 of 40
Note
All APIs are accessible by whitelisted IP addresses only.
All APIs are accessible by REST POST method.
All Date/Time is in GMT+8.
注意
注意注意
注意
API 需要通过白名单的 IP 地址
API 需要用 REST POST
所有日期/时间在马尼拉时 GMT+8
APIs Server Domain
https://api8745.cfb2.net (Sandbox)
https://api8745.uu128.net (Live)
Web Game Server Domain
https://kss.cfb2.net (Sandbox)
https://css.digmaan.biz(Live)
https://css.sabongderby.com (Live)
Mobile Game Server Domain
https://digmaantest.cm3645.com (Sandbox)
https://m.digmaan.live (Live)
https:// m.sabongpo.com (Live)
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
3 of 40
Change Log
Date Version Description Changed By
9/4/2016 2.1 Added. Odds_type at deposit.aspx & get_session_id.aspx . added lang at
auth_login.aspx
bigmoney
13/4/2016 2.1.1 Update <trans> tag to <data> Jevan
13/4/2016 2.1.2 Update Match No to String datatype Jevan
14/4/2016 2.1.3 Update name string length to 20 and update 13a 13b naming Jevan
01/05/16 2.1.4 Added 10a, 11a, 12a. bigmoney
07/05/2016 2.1.5 Added 14. set_bet_limit.aspx bigmoney
13/05/2016 2.1.6 Added login_id into 13b bigmoney
31/10/2016 2.2.0 Added 12b. bigmoney
05/10/2017 2.3.0 12a change to 30 mins max start_time and end_time bigmoney
05/10/2017 2.3.0 Added 15,16,17 bigmoney
15/01/2018 2.5.0 Added 12c bigmoney
22/05/2018 2.5.1 Update Sandbox & Live APIs & Game Server Domain bigmoney
23/05/2018 2.5.2 Added Seamless Wallet 1a & 1b bigmoney
24/05/2018 2.5.3 Added 14a check_seamless.aspx & 14b get_seamless.aspx bigmoney
01/08/2018 2.5.4 Update 13b. Web Login to Game Part 2 bigmoney
05/12/2018 2.5.5 Added <balance> to Seamless 1b bigmoney
28/01/2019 2.5.6 Added Seamless 1c bigmoney
11/04/2019 2.5.7 Added 18 Get Schedule bigmoney
09/02/2020 2.5.8 Added 13c. Mobile Login to Game Part 2 bigmoney
13/04/2020 2.5.9 Added 8a. Withdraw Alll bigmoney
16/04/2020 2.6.2 Added 16a. Get Keno Settled Ticket bigmoney
17/04/2020 2.6.3 Added 16b. Get Keno Settled Ticket by Bet Time bigmoney
23/02/2021 2.6.7 Added sample html script to 13b & 13c bigmoney
25/03/2021 2.6.8 Added Tax column to 11a, 12a, 12b, 12c bigmoney
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
4 of 40
1. Suspend Account (暂停户口
(暂停户口(暂停户口
(暂停户口
https://xxxx.xxxxxx.xxx/suspend_player.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
API Return
<?xml version="1.0" ?>
<suspend_player>
<status_code>00</status_code>
<status_text>OK</status_text>
</suspend_player>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
5 of 40
2. Disable Account (关闭户口
(关闭户口(关闭户口
(关闭户口
https://xxxx.xxxxxx.xxx/disable_player.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
API Return
<?xml version="1.0" ?>
<disable_player>
<status_code>00</status_code>
<status_text>OK</status_text>
</disable_player>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
6 of 40
3. Active Account (重新开户)
(重新开户)(重新开户)
(重新开户)
https://xxxx.xxxxxx.xxx/active_player.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
API Return
<?xml version="1.0" ?>
<active_player>
<status_code>00</status_code>
<status_text>OK</status_text>
</active_player>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
7 of 40
4. Kickout Player
https://xxxx.xxxxxx.xxx/kickout_player.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
API Return
<?xml version="1.0" ?>
<kickout_player>
<status_code>00</status_code>
<status_text>OK</status_text>
</kickout_player>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
8 of 40
5. Get Balance (cached 5 secs)
(余额)
余额)余额)
余额)
https://xxxx.xxxxxx.xxx/get_balance.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
API Return
<?xml version="1.0" ?>
<get_balance>
<status_code>00</status_code>
<status_text>OK</status_text>
<balance>10000</balance>
</get_balance>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
61.02 error : login id not found Login ID not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
9 of 40
7. Deposit (Auto Create New Player)
(存款
存款存款
存款
https://xxxx.xxxxxx.xxx/deposit.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
name String 20 Yes Player Name (for create new player)
amount Decimal 14,2 Yes Deposit amount
ref_no String 50 Yes Unique Trans ID in operator’s system
odds_type String 2 No Player Default Odds Type (EU/MY/HK)
API Return
<?xml version="1.0" ?>
<deposit>
<status_code>00</status_code>
<status_text>OK</status_text>
<amount>1000</amount>
<trans_id>280008</trans_id>
<balance_open>10000</balance_open>
<balance_close>11000</balance_close>
</deposit>
Response Code
Code Text Description
00 OK Successfully executed
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
10 of 40
61.01 error : api key not found API Key not found
61.01a error : create new player Error creating nw player account
61.02 error : ref no. existed Ref No. existed
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
11 of 40
8. Withdraw
(提款
提款提款
提款
https://xxxx.xxxxxx.xxx/withdraw.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
amount Decimal 14,2 Yes Deposit amount
ref_no String 50 Yes Unique Trans ID in operator’s system
API Return
<?xml version="1.0" ?>
<withdraw>
<status_code>00</status_code>
<status_text>OK</status_text>
<amount>1000</amount>
<trans_id>240009</trans_id>
<balance_open>11000</balance_open>
<balance_close>10000</balance_close>
</withdraw>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
61.02 error : login id not found Login ID not found
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
12 of 40
61.03 error : amount exceed balance Withdraw amount exceed balance
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
13 of 40
8a. Withdraw All
(全额
全额全额
全额提款
提款提款
提款
https://xxxx.xxxxxx.xxx/withdraw_all.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
ref_no String 50 Yes Unique Trans ID in operator’s system
API Return
<?xml version="1.0" ?>
<withdraw_all>
<status_code>00</status_code>
<status_text>OK</status_text>
<amount>10000</amount>
<trans_id>240009</trans_id>
<balance_open>10000</balance_open>
<balance_close>0</balance_close>
</withdraw_all>
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
61.02 error : login id not found Login ID not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
14 of 40
9. Check Transfer
(查询
查询查询
查询转帐)
转帐)转帐)
转帐)
https://xxxx.xxxxxx.xxx/check_transfer.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
ref_no String 50 Yes Unique Trans ID in operator’s system
API Return
<?xml version="1.0" ?>
<check_transfer>
<status_code>00</status_code>
<status_text>OK</status_text>
<found>1</found>
<amount>1000</amount>
<trans_id>240009</trans_id>
<balance_open>11000</balance_open>
<balance_close>10000</balance_close>
</check_transfer>
** found = 0/1
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
15 of 40
10a. Get Transfers (60 secs Interval Lock) (24 hours max) 获取
获取获取
获取转帐
转帐转帐
转帐
https://xxxx.xxxxxx.xxx/get_transfer_2.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
start_datetime Datetime Yes Start time of the transactions. format: 2015-01-01 00:00
end_datetime Datetime Yes End time of the transactions. format: 2015-01-01 00:00
API Return
<?xml version="1.0" ?>
<get_transfer>
<status_code>00</status_code>
<status_text>OK</status_text>
<total_records>2000</total_records>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_ transfer>
<data> Data Format
row delimited = |
= |
column delimited = ,
= ,
transfer_id, ref_no,login_id,transfer_mode,transfer_amount,balance_open,balance_close,created_datetime
转账编号, 参考号码, 录帐号,转帐类型,
,
转账前余额, 转账后余额, 转帐时间
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
16 of 40
Response Code
Code Text Description
00 OK Successfully executed
61.00 error : datetime range exceed 24 hours Time range exceed 24 hours
61.00a error : repeat access within allow interval - 60
secs
Repeat access within 60 secs
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Parameters Data
Type
Data
Length
Description
转账编号 trans_id
Interger
参考号码 ref_no
String 50
登录帐号 login_id
String 30
转帐类型
transfer_mode
String 10 CREDIT / DEBIT
transfer_amount
Decimal 14,4
转账前余额 balance_open
Decimal 14,4
转账后余额 balance_close
Decimal 14,4
转帐时间 transfer_time
Datetime
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
17 of 40
11a. Get Cockfight Open Ticket (15 secs Interval Lock) 获取
获取获取
获取未结算注单
未结算注单未结算注单
未结算注单
https://xxxx.xxxxxx.xxx/get_cockfight_open_ticket_2.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
API Return
<?xml version="1.0" ?>
<get_cockfight_open_ticket>
<status_code>00</status_code>
<status_text>OK</status_text>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_cockfight_open_ticket>
<data> Data Format
row delimited = |
= |
column delimited = ,
= ,
ticket_id, login_id, arena_code, arena_name_cn, match_no, match_type, match_date, fight_no, fight_datetime,
meron_cock, meron_cock_cn, wala_cock, wala_cock_cn, bet_on, odds_type, odds_asked, odds_given, stake,
stake_money, balance_open, balance_close, created_datetime, tax
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
18 of 40
Response Code
Code Text Description
00 OK Successfully executed
61.00a error : repeat access within allow interval - 15
secs
Repeat access within 15 secs
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Parameters Data
Type
Data
Length
Description
注单号码 ticket_id
Integer
登录帐号 login_id
String 30
赛场编号 arena_code
String 10
中文名字
arena_name_cn
String 10
赛事编号 match_no
String 10
赛事类型 match_type
String 20 OPENFIGH/TOURNAMENT
赛事日期 match_date
Datetime
日场次 fight_no
Integer
赛事时间 fight_datetime
Datetime
龍斗鸡 meron_cock
String 20
龍斗鸡中文名字
meron_cock_cn
String 10
鳳斗鸡 wala_cock
String 20
鳳斗鸡中文名字
wala_cock_cn
String 10
投注 bet_on
String 10 MERON/WALA/BDD/FTD/VOID
赔率类型 odds_type
String 10 MY/HK/ EU
要求赔率 odds_asked
Decimal 5,3
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
19 of 40
给出赔率 odds_given
Decimal 5,3
投注金额 stake
Integer
奖金 stake_money
Decimal 14,4
转账前余额 balance_open
Decimal 14,4
转账后余额 balance_close
Decimal 14,4
创建时间 created_datetime
Datetime
tax_money
Decimal 8,4
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
20 of 40
12a. Get Cockfight Processed Ticket (60 secs Interval Lock) (records duration 30 mins max) 获取
获取获取
获取结算注单
结算注单结算注单
结算注单
https://xxxx.xxxxxx.xxx/get_cockfight_processed_ticket_2.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
start_datetime Datetime Yes Start time of the transactions. format: 2015-01-01 00:00
end_datetime Datetime Yes End time of the transactions. format: 2015-01-01 00:00
API Return
<?xml version="1.0" ?>
<get_cockfight_processed_ticket>
<status_code>00</status_code>
<status_text>OK</status_text>
<total_records>2000</total_records>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_cockfight_processed_ticket>
<data> Data Format
row delimited = |
= |
column delimited = ,
= ,
ticket_id, login_id, arena_code, arena_name_cn, match_no, match_type, match_date, fight_no, fight_datetime,
meron_cock, meron_cock_cn, wala_cock, wala_cock_cn, bet_on, odds_type, odds_asked, odds_given, stake,
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
21 of 40
stake_money, balance_open, balance_close, created_datetime, fight_result, status_, winloss, comm_earned, payout,
balance_open1, balance_close1, processed_datetime, tax
Response Code
Code Text Description
00 OK Successfully executed
61.00 error : datetime range exceed 24 hours Time range exceed 24 hours
61.00a error : repeat access within allow interval - 60
secs
Repeat access within 60 secs
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Parameters Data
Type
Data
Length
Description
注单号码 ticket_id
Integer
登录帐号 login_id
String 30
赛场编号 arena_code
String 10
赛场名中文名字
arena_name_cn
String 10
赛事编号 match_no
String 10
赛事类型 match_type
String 20 OPENFIGH/TOURNAMENT
赛事日期 match_date
Datetime
日场次 fight_no
Integer
赛事时间 fight_datetime
Datetime
龍斗鸡 meron_cock
String 20
龍斗鸡中文名字
meron_cock_cn
String 10
鳳斗鸡 wala_cock
String 20
鳳斗鸡中文名字
wala_cock_cn
String 10
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
22 of 40
投注 bet_on
String 10 MERON/WALA/BDD/FTD
赔率类型 odds_type
String 10 MY/HK/ EU
要求赔率 odds_asked
Decimal 5,3
给出赔率 odds_given
Decimal 5,3
投注金额 stake
Integer
奖金 stake_money
Decimal 14,4
转账前余额 balance_open
Decimal 14,4
转账后余额 balance_close
Decimal 14,4
创建时间 created_datetime
Datetime
赛事结果 fight_result
String 10 MERON/WALA/BDD/FTD
状态 status
String 10 WIN/LOSE/REFUND/CANCEL
/VOID
输赢 winloss
Decimal 14,4
所得佣金 comm_earned
Decimal 14,4
派彩 payout
Decimal 14,4
转账前余额 balance_open1
Decimal 14,4
转账后余额 balance_close1
Decimal 14,4
处理时间 processed_datetime
Datetime
tax_money
Decimal 8,4
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
23 of 40
12b. Get Cockfight Processed Ticket by Bet Time (60 secs Interval Lock) (records duration 30 mins max)
获取
获取获取
获取结算注单
结算注单结算注单
结算注单
https://xxxx.xxxxxx.xxx/get_cockfight_processed_ticket_by_bet_time.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
start_datetime Datetime Yes Start time of the transactions. format: 2015-01-01 00:00
end_datetime Datetime Yes End time of the transactions. format: 2015-01-01 00:00
API Return
<?xml version="1.0" ?>
<get_cockfight_processed_ticket_by_bet_time>
<status_code>00</status_code>
<status_text>OK</status_text>
<total_records>2000</total_records>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_cockfight_processed_ticket_by_bet_time>
<data> Data Format
row delimited = |
= |
column delimited = ,
= ,
ticket_id, login_id, arena_code, arena_name_cn, match_no, match_type, match_date, fight_no, fight_datetime,
meron_cock, meron_cock_cn, wala_cock, wala_cock_cn, bet_on, odds_type, odds_asked, odds_given, stake,
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
24 of 40
stake_money, balance_open, balance_close, created_datetime, fight_result, status_, winloss, comm_earned, payout,
balance_open1, balance_close1, processed_datetime, tax
Response Code
Code Text Description
00 OK Successfully executed
61.00 error : datetime range exceed 24 hours Time range exceed 24 hours
61.00a error : repeat access within allow interval - 60
secs
Repeat access within 60 secs
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Parameters Data
Type
Data
Length
Description
注单号码 ticket_id
Integer
登录帐号 login_id
String 30
赛场编号 arena_code
String 10
赛场名中文名字
arena_name_cn
String 10
赛事编号 match_no
String 10
赛事类型 match_type
String 20 OPENFIGH/TOURNAMENT
赛事日期 match_date
Datetime
日场次 fight_no
Integer
赛事时间 fight_datetime
Datetime
龍斗鸡 meron_cock
String 20
龍斗鸡中文名字
meron_cock_cn
String 10
鳳斗鸡 wala_cock
String 20
鳳斗鸡中文名字
wala_cock_cn
String 10
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
25 of 40
投注 bet_on
String 10 MERON/WALA/BDD/FTD
赔率类型 odds_type
String 10 MY/HK/ EU
要求赔率 odds_asked
Decimal 5,3
给出赔率 odds_given
Decimal 5,3
投注金额 stake
Integer
奖金 stake_money
Decimal 14,4
转账前余额 balance_open
Decimal 14,4
转账后余额 balance_close
Decimal 14,4
创建时间 created_datetime
Datetime
赛事结果 fight_result
String 10 MERON/WALA/BDD/FTD
状态 status
String 10 WIN/LOSE/REFUND/CANCEL
/VOID
输赢 winloss
Decimal 14,4
所得佣金 comm_earned
Decimal 14,4
派彩 payout
Decimal 14,4
转账前余额 balance_open1
Decimal 14,4
转账后余额 balance_close1
Decimal 14,4
处理时间 processed_datetime
Datetime
tax_money
Decimal 8,4
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
26 of 40
12c. Get Cockfight Player Summary (60 secs Interval Lock) 获取
获取获取
获取玩家总结
玩家总结玩家总结
玩家总结
https://xxxx.xxxxxx.xxx/get_cockfight_player_summary.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
match_date Datetime Yes format: 2015-01-01
API Return
<?xml version="1.0" ?>
<get_cockfight_player_summary>
<status_code>00</status_code>
<status_text>OK</status_text>
<total_records>200</total_records>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_cockfight_player_summary>
<data> Data Format
row delimited = |
= |
column delimited = ,
= ,
login_id, match_date, stake, stake_money, winloss, comm_earned, payout, total_trans, tax
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
27 of 40
Response Code
Code Text Description
00 OK Successfully executed
61.00a error : repeat access within allow interval - 60
secs
Repeat access within 60 secs
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Parameters Data
Type
Data
Length
Description
登录帐号 login_id
String 30
赛事日期 match_date
Datetime
投注金额 stake
Integer
奖金 stake_money
Decimal 14,4
输赢 winloss
Decimal 14,4
所得佣金 comm_earned
Decimal 14,4
派彩 payout
Decimal 14,4
交易总数 total_trans
Integer
tax_money
Decimal 8,4
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
28 of 40
13a. Login to Game Part 1 (server to server) 进入
进入进入
进入游戏API
游戏AP游戏AP
游戏AP
https://xxxx.xxxxxx.xxx/get_session_id.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
login_id String 20 Yes Player's Login ID
name String 20 Yes Player's Name (for auto create player)
odds_type String 10 No Player Default Odds Type (EU/MY/HK)
API Return
<?xml version="1.0" ?>
<get_session_id>
<status_code>00</status_code>
<status_text>OK</status_text>
<session_id>xxxxxxxxxxxxxx</session_id>
</ get_session_id >
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
29 of 40
13b. [Web] Login to Game Part 2 (*** only use browser to Form POST, third party tool like Postman is not
supported ***) (*** POST method only. GET method is not supported ***) (auto create player) 进入游戏API
进入游戏AP进入游戏AP
进入游戏AP
https://xxx.xxxxxx.xxx/api/auth_login.aspx
Parameters Data Type Data Length Mandatory Description
session_id String 50 Yes Session ID return from get_session_id.aspx
lang String 10 No Game Site Language
en-US, zh-CN, zh-TW, vi-VN, th-TH, id-ID, ko-KR, es-ES
login_id String 20 Yes Player's Login ID
** upon successful auth, it will redirect to lobby page
<html><head></head><body>
<form name="myform">
<input type="hidden" name="session_id" value="xxxxxxxx" />
<input type="hidden" name="lang" value="xxx" />
<input type="hidden" name="login_id" value="xxxxxxx" />
</form>
<script type="text/javascript">
document.myform.submit();
</script>
</body></html>
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
30 of 40
13c. [Mobile] Login to Game Part 2 (*** only use browser to Form POST, third party tool like Postman is not
supported ***) (*** POST method only. GET method is not supported ***) (auto create player) 进入游戏API
进入游戏AP进入游戏AP
进入游戏AP
https://xxx.xxxxxx.xxx/api/cash/auth
Parameters Data Type Data Length Mandatory Description
session_id String 50 Yes Session ID return from get_session_id.aspx
lang String 10 No Game Site Language
en-US, zh-CN, zh-TW, vi-VN, th-TH, id-ID, ko-KR, es-ES
login_id String 20 Yes Player's Login ID
** upon successful auth, it will redirect to lobby page
<html><head></head><body>
<form name="myform">
<input type="hidden" name="session_id" value="xxxxxxxx" />
<input type="hidden" name="lang" value="xxx" />
<input type="hidden" name="login_id" value="xxxxxxx" />
</form>
<script type="text/javascript">
document.myform.submit();
</script>
</body></html>
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
31 of 40
14. Set Bet Limit
https://xxxx.xxxxxx.xxx/set_bet_limit.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to
access to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners
to access to the APIs.
login_id String 20 Yes Player's Login ID
meron_wala_min_bet Integer Yes Meron/Wala min bet
meron_wala_max_bet Integer Yes Meron/Wala max bet
meron_wala_max_match_bet
Integer Yes Meron/Wala max match bet
bdd_min_bet Integer Yes BDD min bet
bdd_max_bet Integer Yes BDD max bet
bdd_max_match_bet Integer Yes BDD max match bet
ftd_min_bet Integer Yes FTD min bet
ftd_max_bet Integer Yes FTD max bet
ftd_max_match_bet Integer Yes FTD max match bet
API Return
<?xml version="1.0" ?>
<set_bet_limit>
<status_code>00</status_code>
<status_text>OK</status_text>
</set_bet_limit>
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
32 of 40
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
33 of 40
14a. Check Seamless
https://xxxx.xxxxxx.xxx/check_seamless.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
ref_id String 20 Yes Unique Trans ID in operator’s system
API Return
<?xml version="1.0" ?>
<check_seamless>
<status_code>00</status_code>
<status_text>OK</status_text>
<found>1</found>
<ticket_id>240009</ticket_id>
<amount>1000</amount>
<created_datetime>2018-05-22 23:58:00</created_datetime>
<login_id>bigm888</login_id>
</check_seamless>
** found = 0/1
Response Code
Code Text Description
00 OK Successfully executed
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
34 of 40
14b. Get Seamless (60 secs Interval Lock) (24 hours max) 获取
获取获取
获取交易
https://xxxx.xxxxxx.xxx/get_seamless.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by Digmaan for partners to access
to the APIs.
agent_code String 10 Yes Agent Code will be defined by Digmaan for partners to
access to the APIs.
start_datetime Datetime Yes Start time of the transactions. format: 2015-01-01 00:00
end_datetime Datetime Yes End time of the transactions. format: 2015-01-01 00:00
API Return
<?xml version="1.0" ?>
<get_seamless>
<status_code>00</status_code>
<status_text>OK</status_text>
<total_records>2000</total_records>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_seamless>
<data> Data Format
row delimited = |
= |
column delimited = ,
= ,
seamless_id,ref_id,login_id,currency,amount,ticket_id,created_datetime
交易编号,参考号, 登录帐号,货币,
,
注单号,
时间
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
35 of 40
Response Code
Code Text Description
00 OK Successfully executed
61.00 error : datetime range exceed 24 hours Time range exceed 24 hours
61.00a error : repeat access within allow interval - 60
secs
Repeat access within 60 secs
61.01 error : api key not found API Key not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Parameters Data Type Data
Length
Description
交易编号 seamless_id
Interger
参考号 ref_id
String 20
登录帐号 login_id
String 30
货币
currency
String 10
amount
Decimal 14,4
注单号 ticket_id
Interger
时间 created_datetime
Datetime
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
36 of 40
15. Get Schedule
https://xxx.xxxxxx.xxx/get_schedule.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by DIGMAAN for partners to
access to the APIs.
agent_code String 10 Yes Agent Code will be defined by DIGMAAN for partners to
access to the APIs.
start_date Datetime Yes
end_date Datetime Yes
<?xml version="1.0" ?>
<get_schedule>
<status_code>00</status_code>
<status_text>OK</status_text>
<data>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</data>
</get_schedule>
Data format (Multiple Records)
match_date|match_time|arena_code|arena_tag_cn|match_type~ match_date|match_time|
arena_code|arena_tag_cn|match_type~
match_date|match_time|arena_code|arena_tag_cn|match_type
Column delimited: |
Row delimited: ~
Response Code
Code Text Description
00 OK Successfully executed
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
37 of 40
In-order for operator's website to integrate seamless wallet with DIGMAAN, operator's site need to provide a APIs
(form POST) for DIGMAAN to check & debit player balance when placing bet. ***For Cockfight only
1a. Get Balance
'for better security, DIGMAAN recommended operator provide https
https://xxx.xxxxxx.xxx/get_balance.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by DIGMAAN for partners to
access to the APIs.
agent_code String 10 Yes Agent Code will be defined by DIGMAAN for partners to
access to the APIs.
login_id String 30 Yes Player's Login ID
API Return
<?xml version="1.0" ?>
<get_balance>
<status_code>00</status_code>
<status_text>OK</status_text>
<balance>10000</balance>
</get_balance>
Response Code
Code Text Description
00 OK Successfully executed
99 error : login id not found Login ID not found
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
38 of 40
1b. Bet
'for better security, DIGMAAN recommended operator provide https
https://xxx.xxxxxx.xxx/bet.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by DIGMAAN for partners to
access to the APIs.
agent_code String 10 Yes Agent Code will be defined by DIGMAAN for partners to
access to the APIs.
ticket_id Integer Yes Ticket ID
login_id String 30 Yes Player's Login ID
arena_code String 10 Yes
match_no String 10 Yes
match_date Date Yes yyyy-MM-dd
fight_no Integer Yes
fight_datetime Datetime Yes yyyy-MM-dd HH:mm:ss
bet_on String 10 Yes MERON / WALA / BDD / FTD
odds_given Decimal 5,2 Yes
stake Integer Yes
stake_money Decimal 14,4 Yes Amount to debit player's balance
created_datetime Datetime Yes
<?xml version="1.0" ?>
<bet>
<status_code>00</status_code>
<status_text>OK</status_text>
<ref_id>xxxxxxxx</ref_id> 'operator's trans id **max 20 char
<balance>10000</balance>
</bet>
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
39 of 40
Response Code
Code Text Description
00 OK Successfully executed
88 error : insufficient fund Insufficient fund to bet
99 error : player suspended Player account suspended
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error
Integration APIs Specification (API
v.2.7.1
Copyright © 2021. All Rights Reserved.
The content of this document is confidential and is the sole property of Digmaan.
Any reproduction or divulgence of the content of this document is prohibited.
40 of 40
1c. Cancel Bet
'for better security, DIGMAAN recommended operator provide https
https://xxx.xxxxxx.xxx/cancel_bet.aspx
Parameters Data Type Data Length Mandatory Description
api_key String 50 Yes API key will be defined by DIGMAAN for partners to
access to the APIs.
agent_code String 10 Yes Agent Code will be defined by DIGMAAN for partners to
access to the APIs.
ticket_id Integer Yes Ticket ID
login_id String 30 Yes Login ID
<?xml version="1.0" ?>
<cancel_bet>
<status_code>00</status_code>
<status_text>OK</status_text>
</cancel_bet>
Response Code
Code Text Description
00 OK Successfully executed
All Other Code error : xxxxxxxxxxxxxxxxxxxx General error