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.name |
| Required |
attributes.code |
| Optional |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
Example
The following request creates a new customer group:
Last updated