To implement the CMA, the API response to the getBalance, withdrawal, and deposit API request has to return split values.
API
|
INFORMATION
|
getBalance
|
- BonusBalance (decimal) – This parameter is optional, the default value is an empty string.
- RealBalance (decimal) – This parameter is optional, the default value is an empty string.
- BalanceOrder (0 = cash first, 1 = bonus first). This parameter is optional, by default the value is 0).
{ "Code": 0, "Message": "", "Balance": { "Amount": 282.07, "Currency": "EUR", "BonusBalance": 200.00, "RealBalance": 82.07, "BalanceOrder": 0 } }
|
Withdraw
|
- BonusBalance (decimal) – This parameter is optional, the default value is an empty string.
- RealBalance (decimal) – This parameter is optional, the default value is an empty string.
- BalanceOrder (0 = cash first, 1 = bonus first) – This parameter is optional, the default value is 0.
- customerMessage (string) – This parameter is optional. This parameter also accepts HTML coding. This is used to inform players that they are now using RealBalance instead of BonusBalance.
{ "Code": 0, "Message": "", "Transaction": { "Balance": 282.07, "Currency": "EUR", "ID": 10460335547 "BonusBalance": 200.00, "RealBalance": 82.07, "BalanceOrder": 0, "CustomerMessage": "You are now playing with real money, More info: T&C." } }
|
Deposit
|
- BonusBalance (decimal) – This parameter is optional, the default value is an empty string.
- RealBalance (decimal) – This parameter is optional, the default value is an empty string.
- BalanceOrder (0 = cash first, 1 = bonus first.) – This parameter is optional, the default value is 0.
{ "Code": 0, "Message": "", "Transaction": { "Balance": 282.07, "Currency": "EUR", "ID": 10460335547 "BonusBalance": 200.00, "RealBalance": 82.07, "BalanceOrder": 0 } }
|
NOTE: The value of the parameter “Amount” in responses must equal “BonusBalance + RealBalance”. The wallet service must always send all parameters together, otherwise, a missing parameter (BonusBalance, RealBalance, or BalanceOrder) will be considered as an error.
Comments
0 comments
Article is closed for comments.