Customer Delete Webhook documentation is wrong?

javadevmtl
Tourist
6 1 0

Hi looking at the page here: https://shopify.dev/docs/admin-api/rest/reference/events/webhook?api%5Bversion%5D=2021-01 regardless of the Api version, the Customer/Delete Webhook response is wrong.

It is documented to return the full customer details but in reality it only seems to return the id and some GraphQl links.

Documented response:

{
"id": 706405506930370084,
"email": "bob@biller.com",
"accepts_marketing": true,
"created_at": null,
"updated_at": null,
"first_name": "Bob",
"last_name": "Biller",
"orders_count": 0,
"state": "disabled",
"total_spent": "0.00",
"last_order_id": null,
"note": "This customer loves ice cream",
"verified_email": true,
"multipass_identifier": null,
"tax_exempt": false,
"phone": null,
"tags": "",
"last_order_name": null,
"currency": "USD",
"addresses": [
],
"accepts_marketing_updated_at": null,
"marketing_opt_in_level": null,
"admin_graphql_api_id": "gid:\/\/shopify\/Customer\/706405506930370084"
}


Actual response:
{
"id" : xxxxxxxxxxxxx,
"accepts_marketing_updated_at" : null,
"marketing_opt_in_level" : null,
"admin_graphql_api_id" : "gid://shopify/Customer/xxxxxxxxxxxxx"
}

0 Likes