
REVISION PROCESS
2021/03/22
PointInout add Request Parameter (betId, payout)
2019/07/08
Adjustment Parameters on EnableorDisablemem (user, type, status)
2019/02/22
add Request(gameno, code) on PointInout and TimeoutBetReturn
2019/01/08
Api Function GetUnsettleReport
2019/01/07
add Request(gameno1, gameno2) on GetDateTimeReport
2018/12/25
Api Function SendMemberReport
2018/12/24
Api Function LogoutGame
add request(returnurl) on LoginGame
add request(datatype) on GetDateTimeReport
2018/12/17
add request(betdetail) on PointInout
2018/11/06
add request(type) on PointInout
2018/11/05
Api Function EditLimit
2018/10/08
add response(gamestatus) on GetDealidStatus
2018/10/05
api-Function GetDealidStatus
2018/10/01
Api Function-Get Member Report stop using。
2018/09/18
1.Get Date Time Report add Request beforeCash。
2.Api Function-Get Member Report Expected to stop using in October。
2018/08/21
1.add syslang for all request
2.add request(timetype) on GetMemberReport&GetDateMemberReport
3.add response(commission、reset、settime) on GetMemberReport&GetDateMemberReport
2018/04/09
GetMemberReport、 GetDateTimeReport、GetTipReport Corresponding c++ keywords (reserved words) Event number Original code event added round ,sub-event number Original Code eventChild added subround。
2018/03/08
Api-Function Added language LoginGame 。
2017/12/28
api-function EnableorDisablemem 。
Connection Requirements and Processes
The technician will send the test integration(url)
、(vendorId)
、(signature)
,to you. Your channel vendor must provide the url of your company's operator code and api, which should be successfully integrated.
Your company should run the process testing below in the test environment, which is divided into two parts:
Your company's access part:
Testing RegistrationGame OpeningMember Reports。
Our intervention part in this establishment environment of your company:
Balance WithdrawingGame Point Addition (Deduction)Failure RollbackSendMemberReport
System Architecture
Being a channel website, your company will request information of member registration, game opening, and member reports from our APIs, and then your company must enter the parameters corresponding to
cmd(API function)
、
API(vendor Id)
、vendor code(signature)
, and its API functions for transmission. Our API will respond to your company's request, and return the corresponding values.
After entering the game, under the Api manual, we will request the information we need according to your company's (operation api)/Gateway.php, for example: Balance obtaining, bet point deduction, timeout cancellation bet and rollback, bonus point addition and so on.
(vendorId)
and(signature)
please ask our information personnel.Link API Testing (Hello)
Purpose
At first, use the test page to test whether the url
Finally composed by the channel is connected
http://api.a45.me/api/wallet/Gateway.php?cmd=Hello&vendorId=your vendor&signature=your signature
FORMAT
Method | Post |
Request | Array |
Response | Json |
Request
Field | Type | Description |
---|---|---|
cmd | String | Hello |
vendorId | String | Agents(Aid) |
signature | String | Agent identifier |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
result | String | Return:HELLO |
Api Function -MemberRegister
Purpose
Add the offline account for this vendor(vendorId)
user is a unique value in our system, it is recommended to add suffixes when registering (ex: wm_abc123).
maxwin, maxlose, limitType as part of risk control. Set the member's maximum win or lose amount.Please make good use of it
Request
Field | Type | Description |
---|---|---|
cmd | String | MemberRegister |
vendorId | String | Agents (AID) |
signature | String | Agent identifier |
user | String | account Minimum value: 5 characters Maximum value: 30 characters |
password | String | password Minimum value: 6 characters Maximum value: 64 characters |
username | String | name maximum: 30 characters |
profile | Integer | Profile (unnecessary) |
maxwin | Integer | Max Win (unnecessary) (This is a part of risk control, please make good use of it) |
maxlose | Integer | Max Lose (unnecessary) (This is a part of risk control, please make good use of it) |
mark | String | remarks Maximum value: 20 (optional) |
rakeback | Integer | Note Member rakeback set Zero 0:false ,1 :true (unnecessary) |
limitType | String | ex:2,5,9,14,48,107,111,131 (unnecessary) (This is a part of risk control, please make good use of it) http://wmapi.a45.me/Limit.html |
chip | String | chip split by comma,min:5 max:10 (unnecessary) without params,default setting: 10,20,50,100,500,1000,5000,10000,20000,50000 available chips: 1, 5, 10, 20, 50, 100, 500, 1000, 5000, 10000, 20000, 50000, 100000, 200000, 1000000, 5000000, 10000000, 20000000, 50000000, 10000000, 20000000, 50000000, 100000000 |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
result | String | The addition is complete |
Error Code
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | The addition succeeded |
104 | Operation failed | The new membership information is incorrect, as this account has been used! |
10404 | Parameter error | The account length is too long |
10405 | Parameter error | The account length is too short |
10406 | Parameter error | The password length is too short |
10407 | Parameter error | The password length is too long |
10409 | Parameter error | The name length is too long |
10413 | Parameter errors | Agnet winloss is lower than limit setting and temporarily suspended |
10502 | Parameter error | The account name must not be empty |
10508 | Parameter error | The password must not be empty |
10509 | Parameter error | The name must not be empty |
10419 | Parameter errors | Error chip format (split by comma symbol) |
10420 | Parameter errors | Error chip length (between 5-10) |
10421 | Parameter errors | Error chip type |
10422 | Parameter errors | Account only accepts English, numbers, underscores and @ |
10520 | Parameter errors | The superior broker only stops using or stops betting |
Api function-ChangePasswordChangePassword
Purpose
To allow members of the agent Change Password
Request
Field | Type | Description |
---|---|---|
cmd | String | ChangePassword |
vendorId | String | Agent(aid) |
signature | String | Agent identifier |
user | String | account |
newpassword | String | password |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | Error code (0 : indicates success, the others for the failure) |
errorMessage | String | Error message |
result | String | Array |
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation successfully | The member’s operation was successful |
10501 | Operation failure | No such account, please check it |
10502 | Parameter errors | The account name must not be blank |
10503 | Operation failure | The password must not be blank |
10511 | Operation failure | New password can't be old password |
Api Function – LoginGame
Purpose
Get the member's sid and URL, so that the game is redirected to the lobby via this link.
Request
Field | Type | Description |
---|---|---|
cmd | String | LoginGame |
vendorId | String | The vendor (aid) |
signature | String | The vendor identifier |
user | String | The account |
password | String | The password |
lang | integer | The language
0 or null value: Simplified Chinese 1 English 2 Thai 3 Vietnamese 4 Japanese 5 Korean 6 Indian 7 Malaysian 8 Indonesian 9 for Traditional 10 Spanish |
mode | string |
skip through lobby to enter Baccarat
skip through lobby to enter Dragon and Tiger skip through lobby to enter Roulette skip through lobby to enter sic bo skip through lobby to enter niuniu skip through lobby to enter fantan skip through lobby to enter sedie (unnecessary) |
voice | string |
cn Mandarin
tw Cantonese en English th Thai vi Vietnamese ja Japanese ko Korean hi hindi in Indonesian ms Malay es Spanish (unnecessary) |
returnurl | string | return url when player logout (unnecessary) |
isTest | Integer | 1:Test play (unnecessary) |
size | Integer | 1:Embed iframe (unnecessary) |
slot | Integer | Play video games, 1:Open directly, Do not bring in:Original mode(unnecessary) |
slotCode | Integer | slot=1 ,Video game type(unnecessary) video games list |
slotGameId | String | slot=1 ,Video game code(unnecessary) video games list |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
result | String | Returns the login game URL |
Api function-LogoutGameLogoutGame
Purpose
Log out members to the game.
RequestRequest
Field | Type | Description |
---|---|---|
cmd | String | LogoutGame |
vendorId | String | Agent(aid) |
signature | String | Agent identifier |
user | String | account (unnecessary, logout all member if input null) |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | Error code (0 : indicates success, the others for the failure) |
errorMessage | String | Error message |
Api Function -CallBalance
Purpose
We request your company for the current balance of this member.
Please check before doing this step:
- please used Function MemberRegister Register a member
- Please confirm that your company has given us a domain to send api.
- If your company has a lock ip, is there a white list setting? If not, please contact customer service
- Please note! If your registered member has coin in your database.
- After this function is written, it can be called LoginGameGet the game link and enter the game lobby. If the parameters are correct, you will see your amount and name in the upper left corner after entering the lobby.
- If the game has been loading can't into the hall, it means that we cannot receive the return parameters. Please contact customer service.
Request
Field | Type | Description |
---|---|---|
cmd | String | CallBalance |
signature | String | The vendor identifier |
user | String | The game account applied here by your company |
requestDate | String | Our request time date("Y-m-d H:i:s”) date("Y-m-d H:i:s") |
Request content format example(The request content-type is application/x-www-form-urlencoded):
json_encode:
{"cmd":"CallBalance","signature":"The vendor identifier","user":"The game account applied here by your company","requestDate":"date("Y-m-d H:i:s")"}
json_decode:
object {4}cmd:CallBalancesignatue:The vendor identifieruser:The game account applied here by your companyrequestDate:date("Y-m-d H:i:s")
Response
Field | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | ||||||||||||
errorMessage | String | The error message | ||||||||||||
result | object |
|
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | Get the current balance of this member |
Api Function - PointInout
Purpose
After the players of your company log into the game, their points are added or deducted due to bet or payout.
Please note : Do not close the connection while trading.
Process
- After members enter the game to obtain points, they can enter a game room to play
- Members will request after placing a bet Deduction requirements Deduction requirements can be divided into two kinds: success and failure
- If a member wins this game,According to the game odds (bet points + prize money)Call api plus points,If a member does not win the game in this game, he will not be allowed to move. Points are deducted from the bet.
- When this game is a match, refund the points according to the rules of the game (request api to add points)
- When the member bets when the api return time has exceeded the betting time of this round, and we have deducted points, it will call TimeoutBetReturn
- When this game is over(round), we will officially write the report(GetDateTimeReport),The transaction number(dealid)Separately written in betwalletid and resultwalletid
Our Putin Parameters Request
Field | Type | Description |
---|---|---|
cmd | String | PointInout |
signature | String | The vendor identifier |
user | String | The account |
money | String | Add (deduct) this member's points |
requestDate | String | The time for us to send the added or deducted points |
dealid | String | The transaction number |
gtype | String | This game type 101:Baccarat, 102:Dragon and Tiger, 103:Roulette, 104:sic bo, 105:niuniu, 107:fantan, 108:sedie |
type | String | gtype_period_round_typeex:101_112139999_88_2 0:Slot Finish 1:Point increase 2:Point decrease 3:Point increase by game reset 4:Point decrease by game reset 5:Re-payout cancel:cancel |
betdetail | String | Bet content: amount http://wmapi.a45.me/betdetail.html |
gameno | String | gtype_period_roundex:101_112139999_88 cancel:cancelex:101_112139999_88_cancel |
code | String | type0:Slot Finish 1:Point increase 2:Point decrease 3:Point increase by game reset 4:Point decrease by game reset 5:Re-payout |
category | String | 1:bet order 2:tip order |
betId | integer | betId(sent by game reset) |
payout | decimal | payout(sent by game reset) |
Your Company's Response
Field | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | |||||||||||||||
errorMessage | String | The error message | |||||||||||||||
result | String |
|
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's transaction succeeded |
10805 | Operation failed | The transfer of account failed, as the account balance is insufficient |
Api Function - TimeoutBetReturn
Purpose
In case that added and deducted points are not responded due to the network or various reasons or the bet has exceeded the settlement time, we want your company to roll back the amount.
The bet rollback is considered to cancel the original order, and the rollback of payout or game reset is considered as retrying the original order.
Test process
1. When PointInOut by bet is successful(code=2) ---> If you receive rollback , agree to roll back (cancel the order , increase your customer balance).
2. When PointInOut by bet is failed(code=2) ---> If you receive rollback , refuse to roll back.
3. When PointInOut by payout is successful(code=1) ---> If you receive rollback , refuse to roll back.
4. When PointInOut by payout is failed(code=1) ---> If you receive rollback , agree to rollback (retry the order , increase your customer balance).
5. Has been rollback--->If you receive rollback again, refuse to rollback.
Request
Field | Type | Description |
---|---|---|
cmd | String | TimeoutBetReturn |
signature | String | The vendor identifier |
user | String | The game account applied here by your company |
requestDate | String | Our request time date("Y-m-d H:i:s”) date("Y-m-d H:i:s") |
dealid | String | Our transaction number in the progress of point addition and deduction, which rolls back due to the failure |
gtype | String | This game type 101:Baccarat, 102:Dragon and Tiger, 103:Roulette, 104:sic bo, 105:niuniu, 107:fantan, 108:sedie |
money | String | The rolled-back amount, positive number means Payout rolled-back, negative number means Bet rolled-back |
type | String | gtype_period_round_typeex:101_112139999_88_2 1:Point increase 2:Point decrease cancel:cancel |
betdetail | String | Bet content: amount http://wmapi.a45.me/betdetail.html |
gameno | String | gtype_period_roundex:101_112139999_88 cancel:cancelex:101_112139999_88_cancel |
code | String | type 1:Point increase 2:Point decrease |
category | String | 1:bet order 2:tip order |
Your Company's Response
Field | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | |||||||||||||||
errorMessage | String | The error message | |||||||||||||||
result | Array |
|
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | Get the current balance of this member |
API Function - SendMemberReport
Purpose
Send winlose report when game has been settled.
P.S Only send up to 25 documents at a time.
P.S SendMemberReport are auxiliary functions, be sure to use with the GetDateTimeReport, confirm the completeness of the report.
Request
Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cmd | String | SendMemberReport | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signature | String | The vendor identifier | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requestDate | String | Our request time date("Y-m-d H:i:s”) date("Y-m-d H:i:s") |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
totalorder | int | Total transactions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
result | Array |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page | int | Number of pages25 data as one page |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's operation succeeded |
API Function - GetDateTimeReport
Purpose
Please be sure to gain our GetDateTimeReport.
Query the game records within the membership time under this player or vendor.
In this function, it can not be more than one day from the start time to the end time of the search.
The search time of this function is accurate to second. For example: 20170809130101 (2017-08-09 13:01:01)
Report query interval is 30 seconds,no data was found report query interval is 10 seconds.
Please note : The report data is retained for 60 days.
Request
Field | Type | Description |
---|---|---|
cmd | String | GetDateTimeReport |
vendorId | String | The vendor (aid) |
signature | String | The vendor identifier |
user | String | The account (unnecessary) |
startTime | String | Example: 20170809120500 (08/09/2017 13:05:00) |
endTime | String | Example: 20170809130600 (08/09/2017 13:06:00) |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
timetype | Integer | 0:bettime, 1:updatetime |
datatype | Integer | 0:winlose report, 1:tip report, 2:all |
gameno1 | Integer | Event (unnecessary) |
gameno2 | Integer | eventChild (unnecessary) |
If the report is to search from the start time until now, then the End Time can not be set a value, only the Start Time needs to be set.
Response
Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
errorMessage | String | The error message | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
result | Array |
|
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's operation succeeded |
107 | Operation succeeded | The operation succeeded but no data was found |
101 | Operation failed | The member authentication is incorrect |
102 | Parameter error | The time format is incorrect |
API Function - GetTipReport
Purpose
Query the tip records within the time of this player.
Report query interval is 30 seconds,no data was found report query interval is 10 seconds.
Please note : The report data is retained for 60 days.
Request
Field | Type | Description |
---|---|---|
cmd | String | GetTipReport |
vendorId | String | The vendor (aid) |
signature | String | The vendor identifier |
user | String | The account The account! Optional |
startTime | String | Example: 20170809 (Wednesday, August 9, 2017) |
endTime | String | Example: 20170809 (Wednesday, August 9, 2017) |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | ||||||||||||||||||||||||||||||||||||||||||
errorMessage | String | The error message | ||||||||||||||||||||||||||||||||||||||||||
result | Array |
|
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's operation succeeded |
107 | Operation succeeded | The operation succeeded but no data was found |
101 | Operation failed | The member authentication is incorrect |
102 | Parameter error | The time format is incorrect |
API Function - EnableorDisablemem
Purpose
use api function to enable/disable agent or member login or bet.
Request
Field | Type | Description |
---|---|---|
cmd | String | EnableorDisablemem |
vendorId | String | The vendor (aid) |
signature | String | The vendor identifier |
user | String | The account please input account , use "," to separate if more account(can't login) |
type | String | login/bet login or bet |
status | String | status to login or bet Y:enable, N:disable |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
result | String | reponse account info of enable/disable status,ex:member xxxxx has been disable bet. |
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's operation succeeded |
10305 | Operation failed | Agent login or bet was disabled |
10501 | Operation failed | No such account was found, please check |
10705 | Operation failed | Parameter error or not input |
api Function-EditLimit
Purpose
Edit player Limit。
maxwin, maxlose, limitType as part of risk control. Set the member's maximum win or lose amount.Please make good use of it
Request
Field | Type | Description |
---|---|---|
cmd | String | EditLimit |
vendorId | String | Agents (AID) |
signature | String | Agent identifier< |
user | String | account |
maxwin | Integer | Max Win (unnecessary) (This is a part of risk control, please make good use of it) |
reset | Integer | 1:Time reset (unnecessary) |
maxlose | Integer | Max Lose (unnecessary) (This is a part of risk control, please make good use of it) |
limitType | String | ex:2,5,9,14,48,107,111,131 (unnecessary) (This is a part of risk control, please make good use of it) http://wmapi.a45.me/Limit.html |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
result | String | Array |
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation successfully | The member’s operation was successful |
106 | Parameter error | New data error |
900 | Parameter error | No such function was found |
10501 | Operation failure | No such account, please check it |
10502 | Parameter errors | The account name must not be blank |
api function - Common wallet searchGetDealidStatus
Purpose
use dealid or user to search common wallet
Request
Field | Type | Description |
---|---|---|
cmd | String | GetDealidStatus |
vendorId | String | The vendor (aid) |
signature | String | The vendor identifier |
user | String | use account to search Please input account, if you use account to search , you have to input startTime and endTime(account or dealid choose one) |
dealid | Integer | use dealid to search Please input dealid (account or dealid choose one) |
startTime | String | Example: 20170809 11:59:59 (Wednesday, August 9, 2017 11:59:59) |
endTime | String | Example: 20170809 11:59:59 (Wednesday, August 9, 2017 11:59:59) |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | |||||||||||||||||||||||||||||||||
errorMessage | String | The error message | |||||||||||||||||||||||||||||||||
result | array |
|
errorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's operation succeeded |
1 | Operation Failed | Operation Failed |
107 | Operation Failed | The operation succeeded but no data was found |
102 | Operation Failed | The time format is incorrect |
api Function-EditLimit
Purpose
Edit player Limit。
Request
Field | Type | Description |
---|---|---|
cmd | String | EditLimit |
vendorId | String | Agents (AID) |
signature | String | Agent identifier< |
user | String | account |
limitType | String | ex:2,5,9,14,48,107,111,131 http://wmapi.a45.me/Limit.html |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description |
---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) |
errorMessage | String | The error message |
result | String | Array |
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation successfully | The member’s operation was successful |
10501 | Operation failure | No such account, please check it |
10502 | Parameter errors | The account name must not be blank |
106 | Parameter error | New data error |
900 | Parameter error | No such function was found |
API Function - GetUnsettleReport
Purpose
search unsettled orders.
Report query interval is 30 seconds,no data was found report query interval is 10 seconds.
Please note : The report data is retained for 60 days.
Request
Field | Type | Description |
---|---|---|
cmd | String | GetUnsettleReport |
vendorId | String | Agents (AID) |
signature | String | Agent identifier< |
Time | interger | For example: 20190108 (8th, January , 2019) |
timestamp | Integer | Unix Timestamp ex: 1603436917 |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | ||||||||||||||||||||||||||||||||||||||||||
errorMessage | String | The error message | ||||||||||||||||||||||||||||||||||||||||||
result | Array |
|
errorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation successfully | Operation was successful |
107 | Operation succeeded | The operation succeeded but no data was found |
102 | Parameter error | The time format is incorrect |
10411 | Operation failure | Please try again in 30 seconds. |
api Function - Get Report Detail GetReportDetail
Purpose
GetReportDetail
Request
Field | Type | Description |
---|---|---|
cmd | String | GetReportDetail |
vendorId | String | Agents (AID) |
signature | String | Agent identifier |
user | String | account |
betId | interger | bet id |
url | String | Data format: Y/N, Y: Display as a link, N: Same as GetDateTimeReport format (default: Y) (unnecessary) |
limit | String | url limit, Y/N (default:Y) (unnecessary) |
limitTime | interger | url limit time when limit=Y (default:300 sec.) (unnecessary) |
syslang | Integer | 0:Chinese, 1:English (unnecessary) |
Response
Field | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
errorCode | Integer | The error code (0: Successful; other values: Failed) | ||||||
errorMessage | String | The error message | ||||||
result | Array |
|
errorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation successfully | Operation was successful |
10910 | Operation failure | BetId can not null |
10911 | Operation failure | Can not find bet data |
10912 | Error parameters | Error parameters format |
Other Error Codes
ErrorCode
ErrorCode | ErrorType | Description |
---|---|---|
0 | Operation succeeded | This member's operation succeeded |
103 | Parameter error | The vendor ID and identification format are incorrect |
900 | Parameter error | No such function was found |
911 | Operation failure | Server is busy |
10201 | Parameter error | this function can only be searched for a day |
10202 | Parameter errors | Timestamp is abnormal, more than 30 seconds. |
10301 | Parameter error | The vendor ID is empty, please check (vendorld) |
10302 | Parameter error | No Agent ID Record |
10303 | Parameter error | This vendor ID exists, but the vendor code (signature) is incorrect |
10304 | Parameter error | The vendor code (signature) is empty/td> |
10410 | Operation failure | Member transactions on the pen was unsuccessful, please contact customer service staff to unlock |
10411 | Operation failure | Please try again in 30 seconds. |
10418 | Operation failure | Please try again in 10 seconds. |
10501 | Parameter error | No such account was found, please check |
10502 | Parameter error | The account name must not be empty |
10505 | Parameter error | This account has been disabled |
10507 | Parameter error | This account was not offline by this vendor, so you can not use this function |
10512 | Parameter error | Account password format is incorrect |
10601 | Parameter error | Limits are not open, please check |