code for programmatic handling, and message for logging.
Error Envelope
Every error response hassuccess: false and an error object:
HTTP Status Codes
Validation Errors (400)
A400 indicates the request body or parameters failed validation. The error.metadata.errors array pinpoints each offending field, so you can surface precise feedback.
Cross-Tenant Access Returns 404
If you request a resource that exists but belongs to another merchant, Quidkey returns404, not 403.
Authentication & Permission Errors
Error Codes
Branch on these stableerror.code values:
Payment Limits
Quidkey limits live AUD payments over PayTo: per payment and per day for your business, once Quidkey has set limits for it, and per day for each payer across every merchant. A limit is named, never its figure.- Per payment: creating a payment request from a payer in Australia, or changing its amount, past what your business may take in one payment is refused with
400PAYMENT_LIMIT_EXCEEDEDanderror.metadata.limitper_transaction. Nothing is created or changed. - Per day: judged when the payer authorises the PayTo agreement, since only then is it known what else counts. A payment that would take your business, or the payer, past a daily limit fails: you receive
quidkey.payment_request.failed, and the payment’s reason gives the code,PAYMENT_LIMIT_EXCEEDEDfor your limit orPAYER_PAYMENT_LIMIT_EXCEEDEDfor the payer’s, and the limit, e.g.PAYMENT_LIMIT_EXCEEDED: Payment is over the merchant's daily payment limit. The payer is told at checkout that the payment is over a payment limit. Nothing is said of the payer’s other payments.
Handling Errors
Body abbreviated. See Create a Payment Request for the full required payload.
Retry guidance: retry
409 IDEMPOTENCY_IN_PROGRESS, 503, and 500 with exponential backoff, waiting at least as long as a Retry-After header asks; keep retrying 409 IDEMPOTENCY_IN_PROGRESS for at least 5 minutes. Do not blindly retry 400, 401, 403, 404, 410, 422, or any other 409; fix the request or credentials first.Next Steps
Idempotency
Safe retries for create requests
Authentication
Resolve 401 errors with token refresh
Amounts & Currencies
Avoid the most common validation error
API Reference
Response format and conventions