How can I automate custom shipping rates with Shopify Flow?

Solved

How can I automate custom shipping rates with Shopify Flow?

AngUK
New Member
7 0 0

I hope someone with a bit more in depth knowledge of flow would be able to answer this, I appreciate any assistance offered.

 

We have a custom shipping rule set up for 'Large / Bulky items', this rule charges the customer more and restricts shipping to countries where we cannot send these items. However manually adding products to the custom shipping method is a pain and has resulted in some being missed.

 

Is there any way to get Shopify flow to add products to our 'Large / Bulky items' custom shipping rate based on either of the following scenarios?

 

By Tag
If a product has at least one of the tags defined, add product to the custom shipping rate.

 

OR

By Collection
If product is from one of the collections defined, add product to the custom shipping rate.

 

I have tried looking through Flow but haven't been able to find anything obvious, i'h hoping perhaps there is something I have missed?

 

Any assistance would be much appreciated.
Thank you in advance.

 

Accepted Solution (1)

paul_n
Shopify Staff
1361 152 319

This is an accepted solution.

I think this is possible via Send HTTP Request by calling this mutation: https://shopify.dev/docs/api/admin-graphql/2023-07/objects/DeliveryProfile#mutation-deliveryprofileu...

 

This looks pretty complicated to set up, though. I'd recommend testing with an API app like Postman first.

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.

View solution in original post

Replies 4 (4)

paul_n
Shopify Staff
1361 152 319

This is an accepted solution.

I think this is possible via Send HTTP Request by calling this mutation: https://shopify.dev/docs/api/admin-graphql/2023-07/objects/DeliveryProfile#mutation-deliveryprofileu...

 

This looks pretty complicated to set up, though. I'd recommend testing with an API app like Postman first.

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.
AngUK
New Member
7 0 0

Hello,

 

Thank you for your response, however I will admit that I am not completely certain I understand the response.

 

Would I be calling the suggested request via Shopify Flow, or are you suggesting we would need to create a purpose build app to acheive this?

 

Apologies for my lack of understanding.

paul_n
Shopify Staff
1361 152 319

The API seems to support updating the "Delivery Profile" which is how the variants are attached to a shipping rate. However, there isn't a dedicated action for this, so you have to call the API directly using "Send HTTP Request". You could also use an app if using Send HTTP Request is more than you can handle.

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.
AngUK
New Member
7 0 0

Hello again,

 

Thank you for your explanation, I will look into the matter further and see how we get on. Thank you again for your help, much appreciated.