Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • kindenumrequired

    What the person asked for.

    • access
    • erasure
  • customer_idstring · or null

    TypeID with the cus prefix.

  • emailstring · or null
  • phonestring · or null
  • reasonstring · or null

    Why (the person's email, a call). At most 500 characters.

Returns

201 Made.

Errors

  • 409One is already open for this person.
  • 422validation_failedNo one to make it for.