Errors and limits
Status codes#
| Status | Meaning | What to do |
|---|---|---|
200 | Processed, or a duplicate of something already processed | Done |
202 | Saved; it will be processed in the background | Done. Do not resend |
400 | Bad query parameter (for example an invalid cursor) | Fix the request |
401 / 403 | Key or signature problem, or a missing scope (details) | Fix the configuration. Retrying will not help |
404 | No such record | |
422 | The payload is invalid; details lists every problem | Fix the data. Do not retry the same payload |
429 | Over the key's rate limit | Wait for Retry-After seconds, then retry |
5xx | Problem on the CRM side | Retry with backoff |
Error format#
{
"statusCode": 422,
"code": "VALIDATION_ERROR",
"message": "customer.phone: phone or email is required",
"details": [
"customer.phone: phone or email is required",
"items.0.qty: Number must be greater than 0"
],
"path": "/v1/integrations/orders"
}
Use code in your program and show message and details to people. Payloads that fail validation are also saved in the CRM's event log, so an admin can see exactly what was sent.
Rate limits#
Each key may make 120 requests per minute by default; an admin can set 10–6000 per key. Over the limit you get 429 with a Retry-After header in seconds. Public web forms allow 10 posts per minute per visitor and 600 per hour per form.
Retrying safely#
Every write endpoint can safely be called again with the same data:
- Orders and customers are recognised by platform +
externalId, plusupdatedAt(or, without it, the content itself). A repeat answers with the original result and"duplicate": true. - Leads are recognised by platform +
externalId.
Recommended retry policy for 429, 5xx and network errors: exponential backoff starting at 1 second, up to about 5 minutes between attempts, for up to 24 hours. Keep failed pushes in your own queue (an outbox) so they survive restarts. If you sign requests, sign each attempt again.
Request bodies are limited to 1 MB (10 MB for the /batch endpoints). An order may have up to 500 items, and a batch up to 500 records.
Sensitive data#
Do not send card numbers, passwords or tokens. Fields whose names look like password, secret, token, card, cvv or pin are removed before anything is stored. Raw payloads in the event log are cleared after 90 days.
Versioning#
The API is versioned in the path (/v1). Within v1, changes only ever add things:
- new optional request fields, new response fields, new endpoints and new webhook event types may appear at any time;
- existing fields are never renamed, removed or changed in meaning.
Ignore fields and event types you do not recognise. A breaking change would come as /v2, announced well in advance, with v1 kept running alongside it.