Hello
I have a question regarding the Order Commit process. I’m using the REST Order API to create orders, and when I post an order to Shopify, I want it to be committed to a specific location based on user preference.
Suppose I have three locations: A, B, and C. Location A is set as the default, and each location has sufficient inventory. However, I’ve noticed that every time an order is committed, it always gets assigned to the default location (A), regardless of the user’s selection.
I want the order to be committed to different locations depending on the user’s preference. Is it possible to achieve this? If so, how can I implement it?
Thank you.
1 Like
Hey @Diwakar_Dahal
, our REST API is a legacy API and we’re no longer adding new features to it/our support for it is minimal (there’s a bit more info here). For any new Orders- related integrations, the GraphQL Admin API should be used: GraphQL Admin API reference
Hopefully I’m understanding correctly though, you’re wanting to set a fulfillment/pickup location for order inventory based on the buyer’s preference? The best place to start for that would be using our GraphQL API and Shopify function’s to manage order routing: Apps in order routing
For merchants on the Plus plan, you could build a feature that manages locations using our Location Rule Function method: Order Routing Location Rule Function API
That said, it’s still not possible to have the fulfillment location set by the buyer directly, but you can build rules logic using the Function to streamline things.
If you wanted to manage pick up locations and have orders associate with the user’s selection, the best option would be to use our Storefront API: Support local pickup on storefronts
Hope this helps - let me know if I can assist further at all 