Rarely Developer Platform
Merchant-scoped API docs, examples, and live testing.
Developer Docs

Errors

Error responses use a consistent envelope so integrations can distinguish between auth problems, missing permissions, validation failures, and unexpected runtime errors.

Envelope

Every error returns code, message, and request_id.

The integration API keeps errors stable and machine-readable. The error.code field is the primary branching key for your integration logic.

Error envelope
{
  "error": {
    "code": "forbidden",
    "message": "Missing required scope: inventory.write."
  },
  "request_id": "a653120e-7ab4-44c7-af78-e5f10d1862e2"
}
Common Errors

Handle auth and validation errors explicitly.

Most integrations should explicitly branch on unauthorized, forbidden, validation_error, and not_found. Internal errors are usually transient or operational and should include request_id in any support escalation.

unauthorized
Missing or invalid API key.
forbidden
The key authenticated but does not have the required scope.
validation_error
The request payload or parameters are malformed or invalid.
internal_error
Unexpected runtime or infrastructure issue.
Retries

Retry only when it is safe to do so.

GET requests are naturally safe to retry. For POST requests, send an Idempotency-Key and retry the exact same payload. If the same key is reused with a different payload, the API returns a validation conflict instead of applying ambiguous writes.

Search developer docs

Search guides, endpoints, scopes, and parameters.