Create a customer group
How to create a customer group via API
To create a new customer group, send a POST
request to the /api/customer_groups
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/customer_groups
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.code |
| Optional |
attributes.metadata |
| Optional |
attributes.name |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
Example
The following request creates a new customer group:
Last updated