AdminCustomerGroupsResource
admin/customer-groups.AdminCustomerGroupsResource
Methods
addCustomers
addCustomers(id
, payload
, customHeaders?
): ResponsePromise
<AdminCustomerGroupsRes
>
Add multiple customers to a customer group.
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomerGroupsRes
>
create
create(payload
, customHeaders?
): ResponsePromise
<AdminCustomerGroupsRes
>
Create a customer group.
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomerGroupsRes
>
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Deletes a customer group.
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
list
list(query?
, customHeaders?
): ResponsePromise
<AdminCustomerGroupsListRes
>
Lists customer groups.
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomerGroupsListRes
>
listCustomers
listCustomers(id
, query?
, customHeaders?
): ResponsePromise
<AdminCustomersListRes
>
List and count customers that belong to provided customer groups.
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomersListRes
>
removeCustomers
removeCustomers(id
, payload
, customHeaders?
): ResponsePromise
<AdminCustomerGroupsRes
>
Remove multiple customers from a customer group.
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomerGroupsRes
>
retrieve
retrieve(id
, query?
, customHeaders?
): ResponsePromise
<AdminCustomerGroupsRes
>
Retrieves a customer group.
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomerGroupsRes
>
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminCustomerGroupsRes
>
Updates a customer group
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomerGroupsRes
>