Create Customer
Header parameters
Api-KeystringRequired
Your secret API key, available in the developer dashboard. Include this header on every request to authenticate your application.
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
customer_idstring · uuidRequired
The unique identifier for the customer
emailstring · emailRequired
The email address associated with the customer
company_namestringOptionalExample:
The name of the company of the business customer
Acme Corporationtypestring · enumRequiredPossible values:
The type of customer
first_namestringOptionalExample:
The first name of the individual customer
Johnlast_namestringOptionalExample:
The last name of the individual customer
Doepost/v0/customers
POST /v0/customers HTTP/1.1
Host: api.alignlabs.dev
Api-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"email": "name@gmail.com",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Corporation",
"type": "individual"
}201
Customer created successfully
{
"customer_id": "123e4567-e89b-12d3-a456-426614174000",
"email": "name@gmail.com",
"company_name": "Acme Corporation",
"type": "individual",
"first_name": "John",
"last_name": "Doe"
}Last updated
