# account.privacy_request

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 for `account.privacy_request`:**

- **id** (required) `string`: No description
- **profiles**: `WebhookProfiles` - See schema definition
- **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** (required) `string`: No description - one of: account.privacy_request
- **account** (required) `object`: 
  - **accountId** (required) `string`: No description
  - **profileId** (required) `string`: No description
  - **platform** (required) `string`: No description
  - **username** (required) `string`: No description
  - **displayName** `string,null`: No description
- **privacyRequest** (required) `object`: 
  - **type** (required) `string`: 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. - one of: customer_data_request, customer_redact, shop_redact
  - **shopDomain** (required) `string`: No description (example: "sample-brand.myshopify.com")
  - **shopId** (required) `string,null`: No description
  - **customer** (required) `object,null`: Who the request is about. Null for shop_redact.
  - **orderIds** (required) `array[string]`: The Shopify order ids the request covers. Empty for shop_redact.
  - **dataRequestId** (required) `string,null`: Shopify's id for a customer_data_request.
- **timestamp** (required) `string` (date-time): No description