Skip to main content

Errors

The API uses standard HTTP status codes. Error bodies are JSON.

Error bodies

Most errors carry a detail message:

Response
{ "detail": "Authentication credentials were not provided." }

When request fields fail validation, the body lists the problems by field:

Response
{ "target_url": ["Enter a valid URL."], "event_types": ["At least one event type is required."] }

Status codes

CodeMeaning
200 201Success. 201 means something was created.
202Accepted and queued, for bulk events and webhook tests.
204Success with no body, for deletes.
400The request is invalid: a malformed GTIN, a missing field, an unknown choice, or a write without an Idempotency-Key.
401No valid access token: missing, invalid or expired.
403The token is valid but lacks the scope, partner type or environment the endpoint needs, or the record belongs to someone else.
404Not found, including records you can't see, so a record's existence is never revealed.
409A request with the same Idempotency-Key is still running, or the record already exists.
413Too many events in one bulk request.
422The Idempotency-Key was already used for a different request: another body or another endpoint. Use a new key.
429Rate limit exceeded. See Rate limits.
503From the health endpoint only: a service is down.

Each endpoint in the API reference lists the codes it can return.

Partner API v1. The API reference is generated from the API's own code.