Use Shopify Flow to add a delivery Method

dorfke
Excursionist
34 1 3

Hi, 

I have a custom app running on my store, which is basicaly an integration with an external marketplace. This creates orders in my store, however the external marketplace cannot seem to add a delivery method to my orders. I was wondering if I can use Shopify Flow to add a standard Delivery Method (Heavy Goods Shipping) to all orders that are created through this integration? I already played around in Flow but cannot seem to find a field for Delivery Method? Anyone has experience with this? 

Replies 7 (7)

paul_n
Shopify Staff
1012 133 242

You might need to share a bit more info about which field you want to set like a screenshot of the Admin. Some of the delivery-related fields are not settable via API, so Flow cannot change them

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
dorfke
Excursionist
34 1 3

hey @paul_n thanks, the field is called "Delivery Method" in the order overview, see attached:

 

dorfke_0-1708609188951.png

 

 

paul_n
Shopify Staff
1012 133 242

Pretty sure there isn't an API that Flow can call to do this 

https://community.shopify.com/c/shopify-flow-app/create-a-flow-to-change-the-shipping-method/m-p/240...

 

I think the rough idea is that the requested DeliveryMethod is fixed after checkout. It doesn't mean you need to follow it necessarily. So you might need to use some other method to track your intention (tags/metafields or maybe shipping labels)

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
dorfke
Excursionist
34 1 3

hey Paul, so this means also the developers from the market place cannot add this when they create an order through the API? As orders are registered through an external marketplace, I was hoping that whenever the order was created in SHopify, they could then also add the delivery method. If not, there is no automated way to create shipping labels (as I do not know what kind of shipping is required).  

paul_n
Shopify Staff
1012 133 242

They can when they "create" an order but they can't change it after it's been created

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
dorfke
Excursionist
34 1 3

Thanks, any idea on how they need to do this?

paul_n
Shopify Staff
1012 133 242

Not really. I think you can either use https://shopify.dev/docs/api/admin-graphql/2024-01/mutations/draftOrderCreate or you can use a Functions API to alter the method during checkout.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.