API reference · Customers
Link Customer to a Group
https://api.sandbox.cws.digital/customer/{document}/priceType/{customerGroupId}Description
Links a price type to the customer. It is what makes the customer start receiving the price table of that type.
Parameters
Path parameters
| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| document | string | Yes | Customer's CPF or CNPJ, without punctuation. See the rule below. | |
| customerGroupId | integer | Yes | Id of the customer group or of the price type. It is the |
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.
Linking again responds 200
If the customer was already linked to that price type, the response is 200 with the message that the link already exists. The final state is the same.
Responses
- 401
Missing, malformed or expired token.