Anonymize customer

Order API v1
PUT*base*/anonymize-customer/*customerId*
Authentication:API key

This endpoint will anonymize all personal data for a customer identifed by the customer id.

Warning

This is irrevocable. Personal data will be permanently deleted. This may include financial data. Invoices due to legal requirements will NOT be anonymized.

Parameters

customerId

int
required
The customerID from List customers.

Request example

1
PUT <base>/anonymize-customer/123 HTTP/1.1

Response

200 Content-type: application/json

status

string
required
ok if success, else no.

msg

object
required
The response if the anonymization was successful or an error if status is no.

Response example

1
2
3
4
{
  "status": "ok",
  "msg": "The personal data has been anonymized."
}

Error example

If the customer was not found:

1
2
3
4
{
  "status": "no",
  "msg": "The customer was not found."
}

If the customer was already anonymized:

1
2
3
4
{
  "status": "no",
  "msg": "The personal data was already anonymized."
}