Open a data request
Opens a GDPR request for a copy of the customer’s personal data (access)
or its erasure (erasure). Nothing happens until the request is confirmed
from the link emailed to the account’s address: the response is the request
awaiting confirmation, and the link opens redirect_url with the
confirmation token appended. The work then happens in the background.
An erasure request requires the account password. A request of the same kind that is still in flight is returned instead of starting a second one, and a request still awaiting confirmation sends the email again.
Authorizations
Publishable API key for store access
JWT token for authenticated customers
Body
Defaults to access.
access, erasure Required for erasure.
The storefront page the confirmation link opens, with the token appended. Ignored unless it matches one of the store's allowed origins.
"https://myshop.com/account/data-requests/confirm"
Response
request accepted
access, erasure The values listed are the built-in ones; extensions may add more.
awaiting_confirmation, pending, processing, completed, failed, lapsed 
