Chiwa Pay

Error Codes

Understand Chiwa Pay API error responses and codes.

View as Markdown

When a request fails, the API returns an error object.

{
  "error": {
    "code": "invalid_api_key",
    "message": "secret key is invalid or revoked"
  }
}

Public API

HTTPCodeDescription
400invalid_jsonBody is not valid JSON.
400invalid_amountAmount is invalid.
400invalid_bulk_sizeBulk item count is invalid.
400unsupported_payment_methodPayment method is not supported.
400payment_create_failedTransaction could not be created.
400payment_cancel_failedTransaction could not be cancelled.
400payment_refund_failedTransaction could not be refunded.
401invalid_api_keySecret key is missing, invalid, or revoked.
403merchant_not_approvedMerchant is not active.
403api_key_ip_not_allowedRequest IP is not in the API key allowlist.
404not_foundResource was not found.
429rate_limitedRate limit exceeded.
500server_errorRequest could not be processed.

Rate Limit

The API applies rate limits to keep the service stable. If you receive 429, wait briefly before sending the next request.

Retry

ConditionRetry
TimeoutYes, use the same request.
500Yes, after a delay.
400, 401, 403, 404No. Fix the request or merchant status.
429Yes, after waiting for the next rate-limit window.

On this page