One-time payments
Error codes
Protocol: JSON v3 · XML 2.9OpenAPI
JSON v3 and XML 2.9 error codes from OpenAPI.
JSON v3 returns an HTTP status and error.code; XML 2.9 always responds with HTTP 200 and puts ResultCode in the body. Below are the codes from the specification.
| Code | HTTP | Meaning |
|---|---|---|
AUTH_INVALID_SIGNATURE | 401 | Invalid signature or missing auth header |
AUTH_INVALID_TIMESTAMP | 401 | Missing/expired X-Timestamp |
AUTH_INVALID_PROJECT | 403 | Project inactive or IP not whitelisted |
BAD_REQUEST | 400 | Invalid request parameters |
INVALID_MSISDN | 422 | Invalid MSISDN format |
INVALID_CLIENT_IP | 422 | Invalid or missing client_ip |
INVALID_PRICE | 422 | Invalid price |
INVALID_BILLING_DETAILS | 422 | Invalid billing details |
INVALID_AUTHORIZE_INFO | 422 | Invalid PIN / authorization data |
AUTHORIZE_INFO_DENIED | 422 | Authorization data not allowed for this operation |
CUSTOMER_NOT_SUPPORTED | 422 | Customer/operator not supported |
CUSTOMER_BLACKLISTED | 422 | MSISDN is in the black list |
FRAUD_SUSPECTED | 422 | Request rejected for fraud reasons |
INVOICE_NOT_AUTHORIZED | 422 | Wrong PIN |
What to do
401/AUTH_*— check the login, time and signature.403/AUTH_INVALID_PROJECT— project inactive or IP not whitelisted.409 CONTRACT_ALREADY_EXISTS— reuse the existing binding.422— validate request fields; details are inerror.details.5xx— retry with the samemerchant_order_id; the operation is idempotent by order id.