Create Customer

Create a new customer

post
/v0/customers
Header parameters
AuthorizationstringRequired

Token for authentication

Body
emailstring · emailRequired

The unique email address of the customer

first_namestringOptional

The first name of the customer (required for individual customers)

Example: John
last_namestringOptional

The last name of the customer (required for individual customers)

Example: Doe
company_namestringOptional

The name of the company (required for corporate customers)

Example: Acme Corporation
typestring · enumRequired

The type of customer

Possible values:
Responses
post
/v0/customers
POST /v0/customers HTTP/1.1
Host: api.alignlabs.dev
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 118

{
  "email": "[email protected]",
  "first_name": "John",
  "last_name": "Doe",
  "company_name": "Acme Corporation",
  "type": "individual"
}
201

Customer created successfully

{
  "customer_id": "123e4567-e89b-12d3-a456-426614174000",
  "email": "[email protected]",
  "company_name": "Acme Corporation",
  "type": "individual",
  "first_name": "John",
  "last_name": "Doe"
}

Last updated