Create customer
Create a new customer. Idempotent when externalId is provided.
Create a new customer. Idempotent when externalId is provided.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
length <= 100length <= 100length <= 200uuidemaillength <= 200"UTC""UTC" | "America/New_York" | "America/Chicago" | "America/Denver" | "America/Los_Angeles" | "America/Sao_Paulo" | "America/Mexico_City" | "America/Buenos_Aires" | "America/Santiago" | "America/Bogota" | "America/Lima" | "America/Asuncion" | "Europe/London" | "Europe/Paris" | "Europe/Berlin" | "Europe/Madrid" | "Asia/Tokyo" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Dubai" | "Australia/Sydney"{}trueapplication/json
application/json
curl -X POST "https://commet.co/api/customers" \ -H "Content-Type: application/json" \ -d '{ "billingEmail": "user@example.com" }'application/json
application/json
Your user ID — used to identify this customer in all SDK methods
Create a new customer. Idempotent when externalId is provided.
{
"success": true,
"data": {
"id": "string",
"organizationId": "string",
"externalId": "string",
"fullName": "string"
}
}{
"success": true,
"data": {
"id": "string",
"externalId": "string",
"fullName": "string",
"billingEmail": "string",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
{
"success": false,
"code": "string",
"message": "string",
"details": null
}{
"success": false,
"code": "string",
"message": "string",
"details": null
}