Skip to content

Create Customer Group

EndpointMethod
/api/admin/customers/groupsPOST

Request Body

FieldTypeRequiredDescription
codestringyesUnique. Validated by Webkul\Core\Rules\Code (regex ^[a-zA-Z]+[a-zA-Z0-9_]+$).
namestringyes

System groups

New groups are always created with is_user_defined=1. The API cannot create system groups.

Fires customer.customer_group.create.before/after. Permission: customers.groups.create.

Released under the MIT License.