Erase Personal-Data
In Commerce, you can trigger the erasure of customer personal data in an automated way.
Before You Begin
- Ensure that you are signed into the store with appropriate permissions.
Only sellers with Seller Admins and IT roles have write access to the API. Support users have read access.
Procedure
Note the ID and type of the data item for which you want to initiate an erasure request.
Most get/update/create responses in the Commerce API contain mandatory fields
id
andtype
. You need to pass this information to the endpoint in the next step.It could be any data item that belongs to the user of interest (for example, a customer or address.)
noteCurrently, personal data management is only enabled for a limited set of endpoints. Please see the personal data for the list of endpoints that support personal data management.
Call the
erasure-requests
POST endpoint and specify theid
andtype
in the filter.See Create Personal Data Erasure Request for more information.
Note the erasure request
id
in the response and periodically poll theerasure-requests
GET endpoint.Finally, if the
status
field in the response isSUCCESS
, it means that all personal data is removed. Otherwise, you are advised to retry creating an erasure request, and if the problem persists, contact Support.