Versions Compared

Key

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

...

Panel
titleColor#4d67ff
titleStatus codes

External service can respond with 4 type of status codes. 200 for success, 500 service error 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"}


...