Skip to main content
The Yabetoo API uses conventional HTTP response codes to indicate the success or failure of an API request.

HTTP Status Codes

Payment Error Codes

When a payment fails, the API returns specific error codes to help you understand what went wrong:

Example Error Response

IP Address Not Allowed

A live secret key restricted to an IP allowlist refuses any call coming from another address:
The response gives neither the key’s list nor the address seen. Call from an allowed address, or add yours in the dashboard (the change applies within 5 minutes).

Disbursement Refused

POST /v1/disbursements can answer 403 with code: "E_RISK_BLOCKED" and failure_code: "risk_blocked": the disbursement is refused before anything is written (nothing is created, no funds are reserved). Do not replay the request; contact support. See Create a disbursement.

Disbursement Failure Codes

A failed disbursement carries a failureCode. Three of them come from disbursement verification. The field is named failure_code in the 403 error and failureCode on the disbursement object.

Best Practices

  1. Always handle errors gracefully - Never expose raw error messages to end users
  2. Log errors for debugging - Store error details for troubleshooting
  3. Implement retry logic - For rate limits and temporary failures
  4. Validate before sending - Check parameters client-side to reduce errors
If you encounter persistent errors, contact support@yabetoopay.com with the error details.