---
title: "Store privacy request"
method: POST
path: "account.privacy_request"
tags: ["Webhook Events"]
---

# Store privacy request

`POST account.privacy_request` (webhook)

A Shopify merchant asked to export or erase customer data, or the shop's data after uninstalling the app. Shopify sends these to the installed app, which is Zernio's, so we pass them on to you.

### What to do

`privacyRequest.type` says which request it is. Export or erase your own copy of the data. Zernio handles its own copy.

### Who receives it

A customer request goes to every account connected to the shop when it arrives. `shop_redact` arrives 48 hours after the uninstall, when the account is already disconnected, and goes to the accounts that were connected to the shop.

## Payload

- WebhookPayloadAccountPrivacyRequest: Webhook payload for account.privacy_request: a Shopify merchant asked to export or erase a customer's data, or the shop's data 48 hours after an uninstall.
  - `id` string, required
  - `profiles` object[]: The profiles this event belongs to, each with the externalId you set on it (null when none is set). Use it to route the event to your tenant without storing Zernio profile ids. Present on every event tied to a profile, absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once.
    - `id` string, required
    - `externalId` string, nullable, required
  - `test` boolean: Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
  - `event` 'account.privacy_request', required
  - `account` object, required
    - `accountId` string, required
    - `profileId` string, required
    - `platform` string, required
    - `username` string, required
    - `displayName` string, nullable
  - `privacyRequest` object, required
    - `type` 'customer_data_request' | 'customer_redact' | 'shop_redact', required: customer_data_request: the merchant asked for the data you hold about `customer`. Send it to the merchant. customer_redact: erase the data you hold about `customer` and the orders in `orderIds`. shop_redact: erase the data you hold about the whole shop. Sent 48 hours after the merchant uninstalled the app.
    - `shopDomain` string, required
    - `shopId` string, nullable, required
    - `customer` object, nullable, required: Who the request is about. Null for shop_redact.
      - `id` string, nullable
      - `email` string, nullable
      - `phone` string, nullable
    - `orderIds` string[], required: The Shopify order ids the request covers. Empty for shop_redact.
    - `dataRequestId` string, nullable, required: Shopify's id for a customer_data_request.
  - `timestamp` string, date-time, required

## Acknowledgement `200`

Webhook received successfully

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/980f5c976703?raw)
