Skip to main content
Every Bitliva Merchant API response uses the same envelope, and every error carries a stable code. Match on code in your integration and never on message, because message text can change.

Response envelope

Error codes

Retry safely with references

Creating a customer, buying or selling crypto, and selling a gift card all take a reference that you choose. Reusing a reference makes these calls safe to retry:
  • Sending the same reference again returns the original result instead of doing the action twice.
  • Sending a reference that was already used for a different request returns reference_conflict. Use a new reference for a new action.
  • If you get customer_pending, wait a moment and retry with the same reference.
After a 429, wait for the Retry-After period. After a 502 or 503, retry the same request with the same reference.