When does the customer/redact webhook only send an email address?

caius
Visitor
2 0 1

the following page: https://help.shopify.com/en/api/guides/gdpr-resources#customer-redact
states under 'customer/redact' that "In some cases, a customer record contains only the customer's email address."

When does it only send the email? we currently don't store anything but the customer's id, so if it only comes in with an email we wouldn't be able to identify the customer. Is this an issue and should we then also store the email as a result?

Replies 3 (3)

Not applicable

Hi Caius,

 

I think you got the wording mixed. You the app developer will sometimes only send the merchant the customer email. When a request from customer/redact webhooks comes in the customer ID is there you look up using that ID and email your merchant the data you have for that customer. 

 

Regards,

Sam

caius
Visitor
2 0 1

It really seems to imply you might receive something like

{
  "shop_id": 954889,
  "shop_domain": "snowdevil.myshopify.com",
  "customer": {
    "email": "john@email.com"
  },
  "orders_to_redact": [299938, 280263, 220458]
}

from the webhook payload. We thought it was really odd that the webhooks might do this if the customer id is available, but I've seen much weirder things.
Thanks for clearing that up :).

Not applicable

Hi Caius,

 

Yes to be honest it isn't fair to say you got the wording mixed up. The content could always be improved honestly.