Assign orders to nearest locations instead priority order location

We want to ship the individual order line items from the nearest location (warehouse) based on the customer shipping address.

On the PDP page, we are showing the nearest delivery location estimates to the user with our custom app APIs.

Because we want to ship the line items from those locations only, not from the shopify location priority logic. We can also give you preferred location IDs/Name in the order for individual line item properties. Please let us know if you can help us ship line items from the suggested location in the line item property. If yes, please let us know how you are going to achieve this requirement.

Hi @neeraj_dang ,

Simply have a fulfillment service app assign the order to the desired inventory location. I would image your custom app includes the warehouse location as a line item property? If that’s the case the logic is straight forward and the API calls are documented here: https://shopify.dev/api/admin-rest/2022-10/resources/fulfillmentorder#post-fulfillment-orders-fulfillment-order-id-move

Happy to consult with you on this requirement. Please PM me or email here: hello@achieveapplabs.com

Best regards,

Sam - Owner / Lead Developer

Achieve Applabs

Hi @neeraj_dang ,

This can be done with a custom Fulfillment App.

When the order is received, simply make this API call to move the Fulfillment Order to the desired inventory location:

https://shopify.dev/api/admin-rest/2023-01/resources/fulfillmentorder#post-fulfillment-orders-fulfillment-order-id-move

I can definitely set this all up for you.

Best,

Sam - Owner/Lead Developer

Achieve Applabs

Hi Sam,

Thanks for the reply. We figured out this solution already but the problem is that this API allow to change location only for fulfilled orders.

Can we change the order location when those are unfulfilled?

Hi Neeraj,

Do you still need a solution, or have you found one? If not, we have a custom app that could solve the issue. Hit us up for a demo.

Hi Decimal

Sure, we can connect for the demo. Please let me know when we can connect.

@Decimal -

@neeraj_dang Sent you a Dm with a link.