Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleColor#4d67ff
titleStatus codes

External service can respond with 3 4 type of status codes. 200 for success, 500 service error, 404 transaction not found and 403 for debit transaction refusal. Only status of 200 will be accepted as OK by the Xapi Platform server.

  • status 500 will make the bet to be retried / canceled and rollback will be sent
  • status 403 will make the bet be refused

JSON keytype (max)descriptionmandatory
statusinteger(3) HTTP status codeY
Balancedouble(10,2)Players balance (after transaction)Y
msgstring(255)Error message N
transaction_idstring(8 - 64)Transaction idN


Code Block
titleExample
{"status":"200","balance":"300.00"}, {"status":"403","balance":"0.30","msg":"Insufficient funds"}, {"status":"500","msg":"internal error"}, {"status":"404","msg":"TRANSACTION_NOT_FOUND"}



Panel
titleColor#4d67ff
titleAdditional info

Jackpot bets

  • all debit requests that are contributing to jackpot pool wil have jackpot_contribution_in_amount > 0

Flowchart:



...