Skip to main content
POST
/
vendor
/
customer-groups
/
{id}
/
customers
Link customers to customer group
curl --request POST \
  --url https://api.example.com/vendor/customer-groups/{id}/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "add": [
    "<string>"
  ],
  "remove": [
    "<string>"
  ]
}
'
{
  "customer_group": {
    "id": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the Customer group.

Body

application/json

Create customer group details

add
string[]

Customer ids to add.

remove
string[]

Customer ids to remove.

Response

200 - application/json

Ok

customer_group
VendorCustomerGroup · object

Customer group details.