How can I send additional information along with order data to my Shopify order webhook?

How can I send additional information along with order data to my Shopify order webhook?

user072319
Shopify Partner
128 0 17

I have a Shopify live app and have already created order/create webhook. How can I send additional information along with order data to my Shopify order webhook?

 

For example, I have a script included in our app client's order confirmation page, I want to send some custom data from order confirmation page along with the Shopify order webhook data. How can I do this?

 

Thanks in advance

Reply 1 (1)

Liam
Shopify Staff
2873 312 821

Hi User072319,

 

Webhooks are a one-way communication mechanism from Shopify to your app. Shopify webhooks only include information that Shopify has about the order, and you cannot include additional information from other sources.

 

Have you explored using metafields to add additional information to an order? The information stored in the metafield will then be included when the order is sent to your webhook.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog