Reference

Errors and limits

The response format, status codes and rate limit.

Response format

Every response is JSON with a status of success or error and a message. Successful responses put their result in data; errors put field errors in errors. Send Accept: application/json so errors also come back as JSON.

Validation error
{
  "status": "error",
  "message": "The customer name field is required.",
  "errors": {
    "customer_name": ["The customer name field is required."]
  }
}

Status codes

CodeMeaning
200Success. Also returned for an order whose external_id was already received.
201The order or contact was created.
401The key is missing, unknown or revoked.
404A product_id or variant_id does not exist in this workspace.
422A field failed validation - see errors.
423The workspace is suspended.
429Too many requests - see Rate limit.

Rate limit

Up to 120 requests a minute. Past that, requests get 429 until the minute is over, so space out bulk imports.

Questions about building an integration? Open a ticket from the Support Center or contact us.