I’m trying to make a change to a customer when they are removed as a company contact. I’m listening for the company_contacts/delete webhook. Per the docs (which this form will not let me link) this includes the customer ID although I suspect this is an error in the docs since the actual data I receive has only the CompanyContact ID and generally delete webhooks have minimal info.
How can I tell which customer, or even which company this was part of? By the time I get the webhook the CompanyContact has already been deleted so I can’t get the data that way.
Example of the webhook payload I’m receiving:
{
"customer_admin_graphql_api_id": null,
"title": null,
"locale": null,
"created_at": null,
"updated_at": null,
"admin_graphql_api_id": "gid://shopify/CompanyContact/1111",
"company": null
}