Skip to main content
POST
Create Customer

Create Customer

Creates a new customer record in the store. Requires the write_customers scope.

Request

Body Parameters

string
required
Customer email address (must be unique)
string
Customer’s first name
string
Customer’s last name
string
Customer’s phone number
boolean
default:"false"
Whether customer has opted in to marketing emails
string
Internal notes about the customer
array
Array of tags. Accepted by the request but not persisted — a customer record has no tags field.
array
Array of address objects. Only the first address is persisted, and only its flat fields (address1, city, province, country, zip, phone) are stored on the customer record — there is no separate addresses collection. Subsequent addresses are ignored.
A customer record stores a single combined name (built from first_name + last_name), one phone number, the marketing flag, a note, and one flat address. Tags are not stored, and only the first address is persisted.

Response

The response is a bare object keyed by customer containing the newly created customer object (the same shape returned by the read endpoints). There is no { status, data } envelope.
object
The created customer object

Example Response

Errors

Errors are returned as a standard { "errors": { "base": ["..."] } } body with the corresponding HTTP status code.