API reference · Customers

Unlink Customer from a Group

DELETEhttps://api.sandbox.cws.digital/customer/{document}/priceType/{customerGroupId}

Description

Undoes the link between a customer and a price type. The customer stops receiving the price table of that type.

Parameters

Path parameters

FieldTypeRequiredDescriptionValue
documentstringYes

Customer's CPF or CNPJ, without punctuation. See the rule below.

customerGroupIdintegerYes

Id of the customer group or of the price type linked to the customer.

Business rules

The document goes without punctuation

Send only the digits: 46693537308, not 466.935.373-08.

A punctuated CNPJ carries a slash, which splits the path into two segments — the request does not reach this endpoint.

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/57578030000105/priceType/4470901' \
  --header 'Authorization: Bearer <access_token>'

Response

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