Retrieve and Delete Customer Data

📘

Buy with Prime API is now available for early access

Sign up for early access to the Buy with Prime API using the 'Sign Up' button below. The API may change as Amazon receives feedback and iterates on it.

Privacy regulations give individuals rights with respect to their personal data.

You can retrieve or delete a customer's personal data contained in your Buy with Prime account. The Buy with Prime API supports two types of privacy requests: data retrieval and data deletion.

Terminology

The following sections describe terminology related to privacy requests.

Right to know

The right to know is a customer’s right to retrieve their personal data.

To help fulfill this request, you can make a data retrieval request for customer personal data contained within your Buy with Prime account by using the startPersonalDataRetrievalTask mutation of the Buy with Prime Privacy interface.

Right to delete

The right to delete is a customer’s right to request deletion of their personal data.

To help fulfill this request, you can make a data deletion request for customer personal data contained within your Buy with Prime account by using the startPersonalDataDeletionTask mutation of the Buy with Prime Privacy interface.

Data retrieval request

A data retrieval request is a request that you make on behalf of the customer to retrieve the customer's personal data contained within your Buy with Prime account.

For an example of how to create a data retrieval request, see Create a data retrieval request. For a list of steps, see Steps to process a data retrieval request.

Data deletion request

A data deletion request is a request that you make on behalf of the customer to delete the customer's personal data contained within your Buy with Prime account. When you make a data deletion request, you can specify a holding period before the data is deleted. You can cancel the data deletion request during the holding period, if necessary.

If there are any open Buy with Prime orders for the customer, the data deletion request will fail.

For an example of how to create a data retrieval request, see Create a data deletion request. For a list of steps, see Steps to process a data deletion request.

API operations

You use the following mutations, queries, and events to retrieve and delete customer data.

Mutations

NameDescription
startPersonalDataDeletionTaskStarts a data deletion task.
startPersonalDataRetrievalTaskStarts a data retrieval task.
cancelPersonalDataDeletionTaskCancels a data deletion task.

Queries

NameDescription
personalDataDeletionTaskReturns a data deletion task.
personalDataRetrievalTaskReturns a data retrieval task.

Events

EventWhen Event is Published
PERSONAL_DATA_DELETION_TASK_COMPLETEDRepresents that a data deletion request completed.
PERSONAL_DATA_DELETION_TASK_FAILEDRepresents that a data deletion request failed. You can use the personalDataDeletionTask query to find details about the errors.
PERSONAL_DATA_RETRIEVAL_TASK_COMPLETEDRepresents that a data retrieval request completed. You can use the personalDataRetrievalTask query to get a link at which you can download the data.
PERSONAL_DATA_RETRIEVAL_TASK_FAILEDRepresents that a data retrieval request failed. You can use the personalDataRetrievalTask query to find details about the errors.

Related topics