Hi,
I’m receiving the checkout create event on my webhook but I’m not receiving the customer object and phone number of the customer in the event. Is there something I need to change on my end in order to receive the complete webhook event?
Following is my POST request for webhook creation:
const shopify = new Shopify({
shopName: shop,
accessToken: token
})
shopify.webhook.create({
topic: ‘checkouts/create’,
address: ${config.domain}/api/shopify/checkout-create,
format: ‘json’
}).then((response) => {
})
This is the event that I’m receiving:
{“id”:19711076925623,“token”:“6889d24213640895723eaaca1510cffb”,“cart_token”:null,“email”:null,“gateway”:null,“buyer_accepts_marketing”:true,“created_at”:“2021-02-22T10:23:09+05:00”,“updated_at”:“2021-02-22T10:23:09+05:00”,“landing_site”:“/wallets/checkouts.json”,“note”:null,“note_attributes”:,“referring_site”:“[ShopAtKibo) Shirt”,“presentment_variant_title”:“”,“product_id”:6282103783607,“properties”:null,“quantity”:1,“requires_shipping”:true,“sku”:“12345678”,“tax_lines”:,“taxable”:true,“title”:“Men’s Shirt”,“variant_id”:38165208465591,“variant_title”:“”,“variant_price”:“1000.00”,“vendor”:“ShopAtKibo”,“user_id”:null,“unit_price_measurement”:{“measured_type”:null,“quantity_value”:null,“quantity_unit”:null,“reference_value”:null,“reference_unit”:null},“rank”:0,“compare_at_price”:null,“line_price”:“1000.00”,“price”:“1000.00”}],“name”:“#19711076925623”,“source”:null,“abandoned_checkout_url”:"https://shopatkibo.myshopify.com/54069166263/checkouts/6889d24213640895723eaaca1510cffb/recover?key=f2fa946865cecf826691a890d8b1cbe0",“discount_codes”:[],“tax_lines”:[],“source_name”:“580111”,“presentment_currency”:“PKR”,“total_discounts”:“0.00”,“total_line_items_price”:“1000.00”,“total_price”:“1000.00”,“total_tax”:“0.00”,“subtotal_price”:“1000.00”,“total_duties”:null}