Batch create customers
Create up to 100 customers in a single request.
Create up to 100 customers in a single request.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= items <= 100application/json
application/json
curl -X POST "https://commet.co/api/customers/batch" \ -H "Content-Type: application/json" \ -d '{ "customers": [ { "billingEmail": "user@example.com" } ] }'Create up to 100 customers in a single request.
{
"success": true,
"data": {
"successful": [
{
"id": "string",
"externalId": "string",
"billingEmail": "string"
}
],
"failed": [
{
"index": 0,
"error": "string",
{
"success": false,
"code": "string",
"message": "string",
"details": null
}