Create Customer
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/customers | POST |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | yes | |
last_name | string | yes | |
email | string | yes | Unique. |
phone | string | no | |
gender | enum | no | Male, Female, Other |
date_of_birth | date | no | |
customer_group_id | integer | yes | |
channel_id | integer | no | |
status | integer | no | 0 or 1 (default 1). |
subscribed_to_news_letter | boolean | no | |
send_password | boolean | no | Default true. When false, explicit password is required. |
password | string | conditional | Required when send_password=false; min 6 chars. |
Events
Fires customer.registration.before/after + customer.create.before/after.
Permission
customers.customers.create

