code and a message, and its HTTP status matches the code.
400 error means the request was refused and nothing changed. You can fix the request and send it again.
HTTP statuses
Codes
Other codes may appear. Treat any non-zero
code as an error and show its message.
Handling 9999
A 9999 means something failed on our side, and the operation may or may not have happened. Before retrying a money operation:
card/withdraw: the error’sdata.withdrawalIdidentifies the withdrawal. Check it withcard/withdraw/status.- Other operations: check the card with
card/detail, or the balance withcard/balance.
Idempotency-Key, retrying with the same key returns the same 9999. Use a new key once you know the state.