API reference · Customers

Delete Customer Group

DELETEhttps://api.sandbox.cws.digital/customer/group

Description

Deletes a customer group from your store.

The customers who were in the group remain registered — what goes away is the group and the links to it.

Request body

Content-Typeapplication/jsonRequired
Edit the body with
FieldTypeRequiredDescriptionValue
externalIdstringYes

Group id in your system, the same one provided in the creation.

Business rules

A group used in a contract is not deleted

While the group is in the customerGroupList of any contract, the deletion is refused with 400, status: "ERROR" and action: "DELETE", and the group stays registered.

A group that is not in any contract is deleted normally.

Responses

  • 401

    Missing, malformed or expired token.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request DELETE \
  --url 'https://api.sandbox.cws.digital/customer/group' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "externalId": "GRP-ATC-SE"
}'

Response

Click Try it to see the real response here, or pick a documented example: