2xx range indicate success, 4xx indicates a problem with the request, and 5xx indicates a server-side problem.
Status codes
Validation errors
Requests that fail validation return400 Bad Request with a structured body. Each entry in errors identifies the failing field with a JSON pointer:
Validation codes
code names the validation constraint that failed. Common values:
This list is not exhaustive — new codes may appear as validation rules evolve, so treat
code as informational and rely on source.pointer plus detail when surfacing errors to users.
Retries
Idempotent requests (GET, and PUT /orders/{id}/cancellation) are safe to retry. Re-cancelling an already-cancelled order is a no-op that returns 200 with the current representation. For POST requests, verify the outcome before retrying to avoid creating duplicates.