Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Local Delivery flag or other On Order Object

Local Delivery flag or other On Order Object

Someone123
Shopify Partner
2 0 0

Hello,

I'm looking for a way to tell that an order is a Local Delivery Order. This is shipping method available in Shopify. When used the client may choose it in checkout. I want to filter all local delivery orders that I receive in orders/create webhook. When I look the payload I see no flag or other helpful to indicate that an order is a local delivery order. There is a shipping address and shipping line just like every other order. There is no special flag or other. Any ideas how to identify them?

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 239 534

Hey @Someone123 - this is a great question. There is a way to use the orders/create webhook to determine if an order is local delivery or not, but it is a little hidden in the shipping_lines array. If you look for the "Code" parameter within the shipping_lines array, if an order has been set to be delivered through Local Delivery, it should look like this:

 

Hope this helps! 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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