We are using Shopify webhooks to trigger WhatsApp notifications, boosting store sales and revenue. We were using the shipping address and customer object from the webhook payload to fetch user details like phone, name and etc but recently we were not getting this data and our whole platform broke. After looking into this, we were receiving just the billing address and not the shipping and customer.
So, Is this a change at Shopify’s end or an issue?
Below is a checkout webhook payload -
{
"id": 27097803096147,
"token": "af4d4705f6d813f3ea291026218db826",
"cart_token": "575898a1e1c5fb22f447815da133fa21",
"email": "rtest@yopmail.com",
"gateway": "offsite_payment_method",
"buyer_accepts_marketing": false,
"buyer_accepts_sms_marketing": false,
"sms_marketing_phone": null,
"created_at": "2022-10-31T06:57:31+00:00",
"updated_at": "2022-10-31T12:28:22+05:30",
"landing_site": "/",
"note": null,
"note_attributes": [],
"referring_site": "",
"shipping_lines": [
{
"code": "Standard",
"price": "49.00",
"original_shop_price": "49.00",
"original_shop_markup": "0.00",
"source": "shopify",
"title": "Standard",
"presentment_title": "Standard",
"phone": null,
"tax_lines": [],
"custom_tax_lines": null,
"markup": "0.00",
"carrier_identifier": null,
"carrier_service_id": null,
"api_client_id": "580111",
"delivery_option_group": {
"token": "a981c7add5f7504fc7b99271df3f3917",
"type": "one_time_purchase"
},
"delivery_expectation_range": null,
"delivery_expectation_type": null,
"id": null,
"requested_fulfillment_service_id": null,
"delivery_category": null,
"validation_context": null,
"applied_discounts": []
}
],
"taxes_included": true,
"total_weight": 120,
"currency": "INR",
"completed_at": null,
"phone": null,
"customer_locale": "en-IN",
"line_items": [
{
"key": "39445773975635",
"fulfillment_service": "manual",
"gift_card": false,
"grams": 120,
"presentment_title": "Cold Pressed Castor Oil",
"presentment_variant_title": "100 ML",
"product_id": 4472717672531,
"quantity": 1,
"requires_shipping": true,
"sku": "Castor100",
"tax_lines": [
{
"position": 1,
"price": "11.86",
"rate": 0.05,
"title": "IGST",
"source": "Shopify",
"compare_at": null,
"zone": "province",
"channel_liable": false,
"identifier": null
}
],
"taxable": true,
"title": "Cold Pressed Castor Oil",
"variant_id": 39445773975635,
"variant_title": "100 ML",
"variant_price": "249.00",
"vendor": "Mystiq Living",
"unit_price_measurement": {
"measured_type": null,
"quantity_value": null,
"quantity_unit": null,
"reference_value": null,
"reference_unit": null
},
"compare_at_price": "249.00",
"line_price": "249.00",
"price": "249.00",
"applied_discounts": [],
"destination_location_id": null,
"user_id": null,
"rank": null,
"origin_location_id": null,
"properties": null
}
],
"name": "#27097803096147",
"abandoned_checkout_url": "https://www.mystiqliving.com/27657273427/checkouts/ac/575898a1e1c5fb22f447815da133fa21/recover?key=65a88c58cd9ebd315096c89ce097e0f3",
"discount_codes": [],
"tax_lines": [
{
"price": "11.86",
"rate": 0.05,
"title": "IGST"
}
],
"presentment_currency": "INR",
"total_line_items_price": "249.00",
"total_tax": "0.00",
"total_discounts": "0.00",
"subtotal_price": "249.00",
"total_price": "298.00",
"total_duties": "0.00",
"user_id": null,
"location_id": null,
"source_identifier": null,
"source_url": null,
"device_id": null,
"source": null,
"closed_at": null,
"source_name": null,
"billing_address": {
"first_name": "test",
"address1": "h",
"phone": "94526978676",
"city": "h",
"zip": "122001",
"province": "Haryana",
"country": "India",
"last_name": "test",
"address2": "h",
"company": "h",
"latitude": null,
"longitude": null,
"name": "test test",
"country_code": "IN",
"province_code": "HR"
}
}