Skip to content
platform

API reference · Customers · Customer Groups

Unlink Customer from a Group

Method
DELETE
Route
/customer/:document/priceType/:customerGroupId
Base URL
https://ws.autorei.net
Path parameters
:document :customerGroupId
Token
Requires Bearer token
Test in Postman

Opens this request in the public API documentation, the official source of the reference.

Description

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

Path Parameters

Parameter Type Required Description
document string Yes Customer CPF or CNPJ, without punctuation. See the rule below.
customerGroupId integer Yes Id of the customer group or price type linked to the customer — both live in the same table, and the group is a price type.

Business rules

The document goes without punctuation

Send only the digits: 70041364856, not 700.413.648-56. A punctuated CNPJ carries a slash, which splits the path into two segments — the request never reaches this endpoint.

Response · 200

Field Type Description
status string OK.

Errors

Code When
422 {"status":"UNPROCESSABLE_ENTITY","message":"Este tipo de preço não está vinculado ao cliente"} — the customer and the group exist, but there was no link between them.
404 {"status":"NOT_FOUND","message":"Cliente não encontrado!"} — document with no registration in your store.
404 {"status":"NOT_FOUND","message":"PriceType não encontrado!"} — the group does not exist or does not belong to your store.
401 Token missing, malformed or expired.

Example request

curl --request DELETE 'https://ws.autorei.net/customer/:document/priceType/:customerGroupId' \
  --header 'Authorization: Bearer {{access_token}}'

Example responses

{
  "status": "OK"
}

Used in

This endpoint does not appear in any published use case yet.

Generated from the public API collection, published on 2026-09-04: api-docs.cws.digital.