Errors
Error response format: see Error handling. Branch on code, never on message.
Errors marked retriable can be retried with the same request and the same idempotency key after a delay; all others require the request to be corrected first.
Authentication
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 401 | invalid_api_key | Key missing, invalid or revoked | No |
| 401 | session_expired | kvs_ token expired | No |
| 401 | session_token_required | Endpoint requires a kvs_ browser session token (e.g. WebSocket) | No |
| 401 | sandbox_expired | Sandbox is past its 14-day lifetime | No |
| 403 | scope_forbidden | Credential not allowed for this endpoint or target terminal | No |
| 403 | live_key_required | Operation requires a live key (e.g. publishing to physical terminals) | No |
| 409 | terminal_livemode_mismatch | Key and terminal are in different modes (test / live) | No |
Requests
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | amount_invalid | Amount is not a positive integer of cents | No |
| 400 | currency_unsupported | Currency not supported; only usd | No |
| 400 | config_invalid | Value out of range (e.g. capture above the authorized amount) | No |
| 400 | invalid_api_version | Malformed Kuvex-Version | No |
| 400 | unsupported_api_version | Kuvex-Version is not a supported version | No |
| 409 | idempotency_conflict | Idempotency key already used with a different body | No |
| 409 | idempotency_in_progress | First request with this idempotency key is still processing | Yes |
| 413 | payload_too_large | Request body exceeds the size limit | No |
| 429 | rate_limited | Rate limit exceeded; wait Retry-After seconds | Yes |
Terminals
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 404 | terminal_not_found | Terminal does not exist or belongs to another account | No |
| 409 | terminal_offline | Terminal is offline | Yes |
| 409 | terminal_busy | Terminal is processing another transaction | Yes |
| 409 | terminal_not_ready | Terminal online, payment module not ready; no payment created | Yes |
| 409 | sales_blocked | Card sales suspended by Kuvex risk control; cash and refunds unaffected | No |
| 410 | claim_code_retired | Claim codes retired; terminals are assigned by serial number | No |
| 400 | run_profile_invalid | Invalid profile | No |
| 403 | run_profile_managed_by_kuvex | Run mode of live terminals is configured by Kuvex | No |
Payments
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | tip_flow_invalid | Invalid tip_flow, or an attempt to enable tipping the terminal has disabled | No |
| 400 | tip_presets_invalid | Invalid tip_presets_pct, or combined with tip_cents / tip_flow=off | No |
| 400 | refund_exceeds | Exceeds the refundable balance; detail.remaining_cents holds the balance | No |
| 409 | not_refundable | Status does not allow a refund | No |
| 409 | not_voidable | Status does not allow a void | No |
| 409 | already_settled | Settled or refunded; cannot be voided, refund instead | No |
| 409 | cancel_not_safe | Terminal has the payment and may be reading a card; nothing changed, wait for the outcome | No |
| 409 | host_cancel_not_safe | Same as cancel_not_safe, returned to store hosts | No |
| 409 | not_capturable | Payment is not requires_capture | No |
| 409 | auth_expired | Authorization expired | No |
| 409 | not_adjustable | Tip can be adjusted only on succeeded and requires_capture | No |
| 409 | partial_needs_manual | Tip of a partially approved payment cannot be adjusted via the API; contact Kuvex support | No |
| 409 | capture_in_progress | Capture in progress | No |
| 409 | void_in_progress | Void in progress | No |
| 409 | tip_adjust_in_progress | Tip adjustment in progress | No |
| 409 | money_operation_in_progress | Another money operation on the payment is in progress or unresolved; wait for its result event | No |
| 409 | collection_under_review | A payment in the same collection has an unknown outcome | No |
| 409 | already_bound | Payment already bound to a different external reference | No |
| 409 | payment_query_not_needed | Payment is already final | No |
| 404 | receipt_not_found | The terminal has not printed this receipt | No |
| 409 | reprint_request_conflict | request_id already used for another receipt or copy | No |
| 404 | signature_not_found | No cardholder signature | No |
Settlements
Coming soon
The settlement endpoints on this page are not available in production yet: calls return 404. This note is removed when they ship.
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 409 | settlement_blocked | Transactions in progress or offline transactions not uploaded | Yes |
| 409 | settlement_in_progress | Previous settlement of the terminal has no result yet | Yes |
Customer display
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | display_cart_invalid | Missing or invalid cart field; detail.field and detail.reason identify it | No |
| 409 | display_revision_conflict | revision is not current + 1; detail.revision is the current revision | No |
| 400 | customer_display_invalid | Invalid renderer, or isv_web without app_id | No |
| 409 | customer_display_app_not_published | Application not published to the terminal | No |
| 409 | customer_display_app_role | Application role is not customer_display | No |
| 409 | customer_display_app_disabled | Application disabled for customer displays by Kuvex | No |
| 409 | customer_display_runtime_too_old | Terminal Runtime older than 294; kuvex_hosted not supported | No |
| 400 | idle_screen_invalid | Invalid idle screen field or logo; detail.field identifies it | No |
Store hosts
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | host_name_invalid | Name must be 1–80 printable characters | No |
| 400 | host_public_key_invalid | Not a Base64 Ed25519 public key | No |
| 401 | host_signature_invalid | Bad signature, clock skew over 60 seconds, reused nonce, or unknown host | No |
| 401 | host_revoked | Host has no active pairing | No |
| 403 | host_not_paired | Pairing not yet confirmed | No |
| 404 | host_not_found | Host does not exist | No |
| 404 | pairing_not_found | No pairing record between the host and the terminal | No |
| 409 | host_key_conflict | Public key registered in another account or the other mode | No |
| 409 | host_pairing_not_enabled | Terminal is not in companion mode | No |
Applications
Application endpoints repeat the code in message, report the field in error.field, and omit retriable.
| HTTP | Code | Description |
|---|---|---|
| 400 | application_url_invalid | URL must be HTTPS on a public host name, without user info or fragment |
| 400 | application_role_invalid | Invalid role |
| 400 | application_chrome_invalid | Invalid chrome value |
| 400 | application_manifest_invalid | Other field missing or invalid |
| 400 | application_request_id_required | Publish without request_id |
| 400 | application_environment_required | Publish without environment |
| 400 | application_environment_mismatch | environment does not match the terminal type |
| 400 | application_targets_required | Publish without terminal_ids |
| 400 | application_targets_invalid | Invalid terminal_ids |
| 404 | application_not_found | Application does not exist |
| 409 | application_revision_conflict | Draft revision changed |
| 409 | application_request_conflict | request_id used with different content |
Webhooks
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | webhook_url_blocked | URL is localhost, a private or non-public address | No |
| 403 | webhook_account_key_required | Test keys of real accounts cannot manage webhooks; use the Dashboard | No |