2xx means success;
4xx means the request was rejected; 5xx means a server error.
Error shape
message is always present. errors is included on validation failures and maps each
rejected field to its messages.
Status codes
| Code | Meaning |
|---|---|
200 / 201 | Success. |
400 / 422 | Validation error — see errors. |
401 | Missing, invalid or expired API key. |
403 | Not allowed to perform the action. |
404 | Resource not found. |
428 | Idempotency key required or invalid. |
429 | Rate limited — see Rate limits. |
501 | Endpoint not yet available (manual capture, reconciliation report). |
5xx | Server error — safe to retry. |
Payment failures are not request errors
A4xx/5xx means the request failed. A payment declined by a gateway is not an
HTTP error: the request succeeds, and the failure is reported on the attempt’s failure
object (code + a human-readable message). See Payment status.
With the PHP SDK
Errors map to typed exceptions (all implementOrchestrateException): authentication,
permission, not-found, invalid-request (with errors), idempotency, rate-limit,
not-implemented, server and connection errors. See
SDK error handling.