Documentation · API v1

Getting started

Errors

When something goes wrong you get a 4xx or 5xx status and a body like this:

{ "error": { "code": "product_not_found", "message": "…" } }

Branch on error.code: codes don't change. The message is written for people and says how to fix the problem, so log it, but don't parse it.

Status codes

StatusCodesWhat it means
400invalid_parameter ambiguous_set_codeA parameter is missing, has a value we can't use, or isn't one the endpoint takes. Unknown parameters are rejected, so typos don't go unnoticed.
401missing_api_key invalid_api_key revoked_api_key expired_api_keyThere's a problem with the key. See Authentication.
403endpoint_not_allowed ip_not_allowedThe key can't call this endpoint, or not from this IP address.
404product_not_found set_not_found not_foundThe product, set or endpoint doesn't exist. Check the id, or search for it.
405method_not_allowedThe API is read-only: send GET.
429rate_limited quota_exceededToo many requests this minute, or the monthly quota is used up. Wait for Retry-After.
500internal_errorSomething broke on our side. Retry after a short wait.
Every response carries an X-Request-Id header starting req_. It's also in your request logs. Include it if you contact support.