Skip to main content
Skip to main content

createCustomerGroup - Customer Module Reference

This documentation provides a reference to the createCustomerGroup method. This belongs to the Customer Module.

createCustomerGroup(data, sharedContext?): Promise<CustomerGroupDTO[]>

This method creates customer groups.

Example

const customerGroup =
await customerModuleService.createCustomerGroup([
{
name: "VIP",
},
])

Parameters

The customer groups to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<CustomerGroupDTO[]>Required
The created customer groups.

createCustomerGroup(data, sharedContext?): Promise<CustomerGroupDTO>

This method creates a customer group.

Example

const customerGroup =
await customerModuleService.createCustomerGroup({
name: "VIP",
})

Parameters

The customer group to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<CustomerGroupDTO>Required
The created customer group.
Was this section helpful?