customer_groups
Create a customer group
Changed onCreate a customer group
post/customer_groups
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/customer_groups
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "VIP",
"code": "vip1",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The created customer group object
Changes
- breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
the
request property default valuecustomer_groupswas removed - info
added the new
customer_groupsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking