Re: Can the "barcode" field be included in the orders/create webhook payload?

Can the "barcode" field be included in the orders/create webhook payload?

NazSaveCo
Shopify Partner
10 0 1

Hi,

 

I'm trying to figure out if the barcode field can be included in the orders/create webhook ? I've seen an example image of this in Shopify Docs but when I tested this myself using the webhook notification admin tool, the payload did not include the barcode field.

 

A quick response would be much appreciated.

 

Thanks

Naz

Reply 1 (1)

awwdam
Shopify Staff
249 42 37

Hey @NazSaveCo,

I took a closer look into our Webhook docs (and the orders/x payload example)  as well as the Order API docs. However, didn't find any reference of the `barcode` field on the parent, Order object or payload. 

If you are able to share the specific barcode are you referring too, I would happy to help point you towards a specific object or potentially pass on insights around other webhooks subscriptions.

That said, because webhooks send a pre-formed payload (data fields can't be added or removed) - I often suggest using the notification as a trigger. Once you receive the available data, you can use this to build any subsequent API requests to other objects, depending on what the app's logic requires. 

Let me know here if you have any additional context, else I hope those insights give you a few ideas! - Cheers

awwdam | API Support @ 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