Re: Use Shopify Flow to add a delivery Method

Use Shopify Flow to add a delivery Method

dorfke
Excursionist
35 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 9 (9)

paul_n
Shopify Staff
1666 183 380

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
35 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
1666 183 380

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
35 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
1666 183 380

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
35 1 3

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

paul_n
Shopify Staff
1666 183 380

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.

kmann373
Visitor
1 0 1

Did you ever solve this?  I'm dealing with the same issue with the Faire Wholesale app not setting a delivery method.

senivas
Shopify Partner
2 0 1

We have the exact same issue but with a different marketplace. The orders are imported but with no shipping method and my staff needs to then manually choose a shipping method in the shipping provider's app.