Errors
{ "error": { "code": "wrong_origin", "message": "Calls for this business must come from shop.example.com, not evil.example.com." } }
| HTTP | code | Meaning |
|---|---|---|
| 401 | invalid_key | The key is missing, wrong, expired or revoked. |
| 403 | invalid_business | No QwikiPay-Business header, or that business isn't yours. |
| 403 | business_id_mode_mismatch | A qp_biz_live_ ID sent with test keys, or the other way round. |
| 403 | business_not_ready | Confirm the business's domain first. |
| 403 | business_not_live | The business isn't approved for live payments yet. |
| 403 | wrong_origin | The call came from a page that isn't on the business's domain. |
| 403 | origin_required | Public keys only work from a web page. |
| 403 | secret_key_in_browser | A secret key was sent from a browser. Roll it. |
| 403 | secret_key_required / public_key_required | Wrong kind of key for this call. |
| 403 | ip_not_allowed | Your live key's IP allowlist doesn't include this server. |
| 404 | not_found | No such charge or payment for this business. |
| 409 | reference_used, idempotency_conflict | See Idempotency. |
| 409 | not_awaiting_authorization | The charge isn't waiting for a PIN or code. |
| 413 | too_large | The body is over 32 KB. |
| 422 | invalid_request, invalid_amount, invalid_currency, invalid_redirect_url, invalid_card, invalid_network | Fix the field the message names. |
| 429 | rate_limited, blocked | Slow down, or too many wrong keys from your address. |
| 502, 503 | processor_unavailable, payments_unavailable | Try again shortly. Nothing was charged twice. |
Every refused call is listed in Developers → Recent API calls with its reason.