docs
  1. SCAYLE Resource Center
  2. Developer Guides
  3. Customer
  4. Anonymize customer

Anonymize customer

General

SCAYLE allows you to anonymize a customer by its reference key or ID, which is important when your system must comply with the active data protection laws.

Admin API

This method can be used to anonymize an existing customer with its dependencies (e.g., addresses) in accordance with the active data protection laws. The customer's orders remain intact.

Anonymize customer

adminApi.apis.Customers.anonymizeCustomer({shopKey: shopKey, countryCode: countryCode, customerIdentifier: customerIdentifier});

Anonymize by ID

Anonymize a customer by id:

adminApi.apis.Customers.anonymizeCustomer({shopKey: 'ms', countryCode: 'DE', customerIdentifier: 1});

Anonymize by Reference Key

Anonymize a customer by reference key.

adminApi.apis.Customers.anonymizeCustomer({shopKey: 'ms', countryCode: 'DE', customerIdentifier: "key=my-key"});

Anonymize customer addresses

SCAYLE allows you to anonymize a customer address, which is important when your system must comply with the active data protection laws. When referring to the address, you need to use its reference key of ID. The address has already been anonymized if the respective customer has been anonymized previously.

This method can be used to anonymize an existing customer address in accordance with data protection laws. The address will not be removed from existing confirmed orders.

When you call this endpoint to anonymize an address,
the customer's addresses detected as duplicates will get anonymized as well.

Method Signature

adminApi.apis.Customers.anonymizeAddressByIdentifier({shopKey: shopKey, countryCode: countryCode, addressIdentifier: addressIdentifier});

Anonymize by ID

Anonymize a customer address by id:

adminApi.apis.Customers.anonymizeCustomerAddress({shopKey: 'ms', countryCode: 'DE', addressIdentifier: 123});

Anonymize by Reference Key

Anonymize a customer address by reference key:

adminApi.apis.Customers.anonymizeCustomerAddress({shopKey: "ms", countryCode: "DE", addressIdentifier: "key=my-key-123"});