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:
Handling Errors
Body abbreviated. See the Redirect guide for the full required payload.
Retry guidance: retry
409, 503, and 500 with exponential backoff. Do not blindly retry 400, 401, 403, 404, or 410; 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