Skip to main content

Errors and recovery

The v2 API returns OAuth error bodies for OAuth flows and structured error envelopes for v2 resource requests.

Error shapes

OAuth endpoints return error and error_description.
Response

Common status codes

Recovery playbooks

Confirm that the developer application has the write scope for that resource. Then confirm the token request included that scope if you are using bearer tokens.
Check that the request includes name and at least one entry in variations. Verify field names use snake_case and enum values match the API reference.
The ID may belong to another tenant, may be archived outside the active view, or may not exist. Re-list the resource with the relevant filters before retrying.
A product variation archive can conflict with current product state. Re-read the product and archive records in the order required by your workflow.

Error handling example

Log the HTTP status, endpoint, and safe error body fields. Do not log client secrets, bearer tokens, or full authorization headers.