One error doesn’t follow this shape yet: when a request with a body is missing
Content-Type: application/json, the API returns 400 with errors as a single object instead of an array.Status codes
If a request times out or the connection drops, you can’t tell whether it was processed. Retry it
with the same idempotency key so it can’t happen twice.
Conflicts
A409 means one of two things:
- A simultaneous update. Another request was changing the same records at the same time. The body
says
There was a simultaneous update happening. Please try again. Retry the request. - An idempotency key conflict. The body is empty. Either a request with the same
Idempotency-Keyis still being processed, or the key was already used for a different request. See Idempotency keys.
Partial success
POST /sync/businesses/:business_id/customers/batch processes every valid customer even when some
are invalid, and returns 200. In the response, the customers array is in the order you sent
them, with null for each customer that failed, and errors gives the reason for each failure with
its position in path:
external_id, but you only need
to resend the failed ones.
POST /sync/businesses/batch is all or nothing: if any business is invalid, the request fails and no
businesses are synced.
Limits
Direct sends are messages sent by these endpoints, rather than by a running campaign or trigger:
POST /email_templates/:id/sendandPOST /sms_templates/:id/sendPOST /campaigns/:id/test_sendandPOST /triggers/:id/test_send