Skip to content

Create Customer

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

Overview

See the Customers menu overview for the full feature flow.

All admin endpoints require an admin Bearer token — see Authentication.

Endpoint

EndpointMethod
/api/admin/customersPOST

Request Body

FieldTypeRequiredDescription
first_namestringyes
last_namestringyes
emailstringyesUnique.
phonestringno
genderenumnoMale, Female, Other
date_of_birthdateno
customer_group_idintegeryes
channel_idintegerno
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.

Permission

customers.customers.create

Released under the MIT License.