API reference · Customers

Activate or Deactivate Customer

PUThttps://api.sandbox.cws.digital/customer/updateStatus/{document}/{active}

Description

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

Parameters

Path parameters

FieldTypeRequiredDescriptionValue
documentstringYes

Customer's CPF or CNPJ.

activestringYes

true activates, false deactivates. Only these two values.

Responses

  • 400

    active other than true or false.

  • 401

    Missing, malformed or expired token.

  • 404

    Document not registered in your store.

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 PUT \
  --url 'https://api.sandbox.cws.digital/customer/updateStatus/46693537308/false' \
  --header 'Authorization: Bearer <access_token>'

Response

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