Create Customer
Header parameters
AuthorizationstringRequired
Token for authentication
Body
emailstring · emailRequired
The unique email address of the customer
first_namestringOptionalExample:
The first name of the customer (required for individual customers)
Johnlast_namestringOptionalExample:
The last name of the customer (required for individual customers)
Doecompany_namestringOptionalExample:
The name of the company (required for corporate customers)
Acme Corporationtypestring · enumRequiredPossible values:
The type of customer
Responses
201
Customer created successfully
application/json
post
/v0/customersPOST /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