Problems

Every error response of the API is a problem details object (RFC 9457).

A program tells problems apart by their type. Each type is the address of the problem's page on this site.

ProblemHTTP statusDescription
Invalid request400A parameter or the body is missing or malformed, or a value breaks a rule.
Unauthenticated401The request carries no access token, or a malformed one, or its token is unknown, expired, revoked, or belongs to another shop.
Insufficient scope403The scope of the access token does not allow this operation: a read token sent a request that writes.
Not found404The host serves no API, no operation has this path, or the entity does not exist.
Method not allowed405The path does not take this method. The Allow header lists the methods it takes.
Already exists409Another entity already has this value in a field that must be unique.
Entity in use409The entity cannot be deleted: other entities depend on it.
Concurrent modification409The entity changed while the request was running. Read it again, then retry.
Content too large413The request body is larger than 64 KiB, the most the API accepts.
Rate limited429The shop has used up its request budget for the current window. Retry after the number of seconds in the Retry-After header.
Internal error500The server failed. Quote the request_id when you contact support.
Service unavailable503A service the API depends on did not respond. Retry later.