Error Reference
Every Wyrr API error includes a machine-readable code field and a human-readable message. Use the code to handle errors programmatically.
Error Response Format
{
"error": {
"code": "card_declined",
"message": "The card was declined by the issuing bank.",
"param": "payment_method",
"doc_url": "https://docs.wyrr.com/errors#card_declined"
}
}Authentication
Errors related to API authentication and authorization.
| Status | Code | Meaning |
|---|---|---|
| 401 | auth_invalid_key | The API key provided is invalid or has been revoked. |
| 401 | auth_expired_token | The access token has expired. |
| 403 | auth_insufficient_scope | Your token does not have the required scope for this operation. |
| 403 | auth_ip_restricted | Request originated from an IP address not in your allowlist. |
Validation
Errors when request parameters fail validation.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request body is malformed or missing required fields. |
| 400 | invalid_currency | The currency code is not supported. |
| 400 | invalid_amount | The amount is out of the allowed range. |
| 422 | unprocessable_entity | The request is well-formed but semantically invalid. |
Payment Processing
Errors during payment collection and payout processing.
| Status | Code | Meaning |
|---|---|---|
| 402 | card_declined | The card was declined by the issuing bank. |
| 402 | insufficient_funds | The payment source does not have enough funds. |
| 402 | payout_insufficient_balance | Your Wyrr account balance is insufficient for this payout. |
| 402 | payment_method_unsupported | The payment method is not available for this currency or region. |
| 409 | idempotency_conflict | A request with this idempotency key was already processed with different parameters. |
| 402 | fraud_suspected | The transaction was blocked by Wyrr's fraud detection system. |
Rate Limiting
Errors when you exceed API rate limits.
| Status | Code | Meaning |
|---|---|---|
| 429 | rate_limit_exceeded | Too many requests in a short period. |
| 429 | concurrent_limit_exceeded | Too many concurrent requests. |
Resource Errors
Errors when accessing or modifying resources.
| Status | Code | Meaning |
|---|---|---|
| 404 | resource_not_found | The requested resource does not exist. |
| 409 | resource_conflict | The resource is in a conflicting state for this operation. |
Server Errors
Internal server errors and service availability issues.
| Status | Code | Meaning |
|---|---|---|
| 500 | internal_error | An unexpected error occurred on Wyrr's servers. |
| 502 | bad_gateway | A downstream service is unavailable. |
| 503 | service_unavailable | The API is temporarily unavailable. |