API reference · Customers

Remove All Customer Addresses

DELETEhttps://api.sandbox.cws.digital/deleteAllCustomerAddress/{document}

Description

Removes all the addresses of a customer of your store at once.

Parameters

Path parameters

FieldTypeRequiredDescriptionValue
documentstringYes

Customer's CPF or CNPJ.

Business rules

The removal cannot be undone

There is no endpoint to restore removed addresses. The customer stays without an address until a new one is registered.

Responses

  • 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 DELETE \
  --url 'https://api.sandbox.cws.digital/deleteAllCustomerAddress/46693537308' \
  --header 'Authorization: Bearer <access_token>'

Response

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