Returns player balance after credit transaction. Credit is called after every debit, even if credit amount is 0. This signifies that a game round is complete.
Credit requests are called after the debit request, as a response/win. Includes amount to a credit to player. |
|
Request: <REMOTE URL>/?action=credit&callerId=test&callerPassword=12dar67890123&remote_id=1&amount=0.3&game_id=3&transaction _id=27&round_id=123&session_id=12345678901 2345678901324567980abcd &key=49f749364b129d9f91d2bef7dd044a93af0fb676 Response: {"status":"200","balance":"300.00"}
|
External service can respond with 3 type of status codes. 200 for success, 500 service error and 403 for credit transaction refusal (Credits should not be Refused!). Only status of 200 will be accepted as OK by the Xapi Platform server.
Example: {"status":"200","balance":"300.00"}, {"status":"403","balance":"0.30","msg":"Insufficient funds"}, {"status":"500","msg":"internal error"} |
With round_id win can be connected to the corresponding bet. Please be aware there can be some cases of wins without bet before them. For example, in some cases some kind of ingame award, or bonus game or ingame freespins. It depends from provider to provider. Please do not decline those wins. Jackpot wins
Flowchart: |