Skip to content

Create Customer

Creates a customer and returns the full customer record (group nested under group).

See the Customers menu overview for the full feature flow.

Endpoint

EndpointMethod
/api/admin/customersPOST

Request Body

FieldTypeRequiredDescription
first_namestringyes
last_namestringyes
emailstringyesUnique within the customer's channel.
phonestringno
genderenumnoMale, Female, Other
date_of_birthdateno
customer_group_idintegeryes
channel_idintegernoChannel the customer belongs to. Defaults to the current channel.
statusintegerno0 or 1 (default 1).
subscribed_to_news_letterbooleanno
send_passwordbooleannoDefault true — a random password is generated and the credentials are emailed to the customer. When false, explicit password is required.
passwordstringconditionalRequired when send_password=false; min 6 chars.

Email uniqueness is per channel

An email has to be unique within a channel, not across the whole store — the same address may hold a separate account on each channel a store runs. channel_id decides which channel the customer belongs to, and defaults to the current one when omitted.

Permission

customers.customers.create

Released under the MIT License.