Create data request
POST
/ admin/ v1/ stores/ {store_id}/ data-requests- customers:write
- Idempotency-Key supported
Makes a request on a person's behalf: a copy is made at once and is downloadable here; an erasure runs after ten days, and waits while they have an open order, return or subscription.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
kindenumrequiredWhat the person asked for.
- access
- erasure
customer_idstring · or nullTypeID with the
cusprefix.emailstring · or nullphonestring · or nullreasonstring · or nullWhy (the person's email, a call). At most 500 characters.
Returns
201 Made.
Errors
- 409One is already open for this person.
- 422
validation_failedNo one to make it for.