Skip to content
platform

API reference · Customers · Customer Management

Activate or Deactivate Customer

Method
PUT
Route
/customer/updateStatus/:document/:active
Base URL
https://ws.autorei.net
Path parameters
:document :active
Token
Requires Bearer token
Test in Postman

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

Description

Activates or deactivates a customer of your store. An inactive customer cannot access the store or complete a purchase.

Path Parameters

Parameter Type Required Description
document string Yes Customer CPF or CNPJ.
active string Yes true activates, false deactivates. Only these two values.

Response · 202

202 Accepted.

Field Type Description
status string ACCEPTED.
message string Status do cliente atualizado com sucesso.

Errors

Code When
400 active outside true/false. The body comes back with only {"status":"BAD_REQUEST"}, with no message.
404 Document with no registration in your store.
401 Token missing, malformed or expired.

Example request

curl --request PUT 'https://ws.autorei.net/customer/updateStatus/:document/:active' \
  --header 'Authorization: Bearer {{access_token}}'

Example responses

202Success — customer deactivated

{
  "status": "ACCEPTED",
  "message": "Status do cliente atualizado com sucesso."
}

Used in

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