Local Delivery flag or other On Order Object

Shopify Partner
2 0 0


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)

Shopify Staff
1363 227 475

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