REFERENCE / ERRORS
Errors.
Every error is an application/problem+json document. Its type links to the page for its code, detail explains this specific failure, and request_id identifies the request if you contact Simple.
HTTP/1.1 409 Conflict
Content-Type: application/problem+json
X-Request-Id: 9f2c…
{
"type": "https://developer.simplecommerce.io/errors/conflict",
"title": "Conflict",
"status": 409,
"detail": "Order is already cancelled",
"instance": "/api/v1/public/orders/…/cancel",
"code": "CONFLICT",
"request_id": "9f2c…"
}Validation errors also include errors, an object mapping each failing field to its message. Server errors (5xx) never include internal details.
400
INVALID_REQUESTThe request was malformed or a field failed validation. Nothing was changed.401
UNAUTHORIZEDThe request had no valid API key.403
FORBIDDENThe key is valid but not allowed to do this.404
NOT_FOUNDThe resource does not exist or is not visible to this key.409
CONFLICTThe request is valid but conflicts with the resource's current state.422
UNPROCESSABLE_ENTITYThe request is well formed but breaks a business rule.429
RATE_LIMITEDThe key made too many requests in the current minute.503
SERVICE_UNAVAILABLEThe operation is switched off or temporarily unavailable in this environment.500
INTERNAL_ERRORSomething failed on Simple's side. Details are not exposed.Retrying safely
Retry 429, 503 and 5xx with exponential backoff, honouring Retry-After when present. Do not retry 400, 401, 403, 404, 409 or 422 unchanged; fix the cause first. Writes are safe to retry with the same Idempotency-Key: Simple returns the original result instead of acting twice.