Create up to 100 customers in a single request.
Create up to 100 customers in a single request.
ApiKeyAuth In: header
Unique key used to safely retry this write for 24 hours without applying it twice.
1 <= length <= 200application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/customers/batch" \ -H "Content-Type: application/json" \ -d '{ "customers": [ { "email": "user@example.com" } ] }'{ "successful": [ { "id": "string", "externalId": "string", "email": "string" } ], "failed": [ { "index": -9007199254740991, "error": "string", "data": { "id": "string", "externalId": "string", "email": "string", "fullName": "string", "taxDocument": "string", "timezone": "string", "metadata": { "property1": null, "property2": null }, "address": { "line1": "string", "line2": "string", "city": "string", "state": "string", "postalCode": "string", "country": "string", "region": "string" } } } ], "object": "customer_batch", "livemode": true}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}1 <= items <= 100