Skip to main content
All errors share a uniform shape, consistent across the entire API.

Response shape

A details field appears additionally for validation errors (the list of invalid fields).

Status codes

Success responses

Successful responses have the shape { success: true, data, message? }. Some endpoints add contextual fields — for example, order creation returns redirectUrl, and a free order returns free: true.
Always check the success field rather than the HTTP code alone — the shape is consistent across the entire API.

Validation

The API rejects requests with invalid data before they are processed. Fields outside the schema are stripped, and types are converted automatically (e.g. numbers from the query string).