How can I manage location priority for orders from external apps in Shopify?

Hello,

I don’t understand the priority of rentals in Shopify. I have an application that creates a rental to manage a warehouse, in order to retrieve and process orders, upload stocks etc…
Some customers use applications to create their orders (Codisto, Recharge for example) but the orders created by these applications without specifying a location (no way to retrieve the location priorities via API anyway for these applications) end up in the default location of Shopify and do not respect the location priorities configured on Shopify.

Another thing, to get around this problem, I’ve tried to find a solution to automate location changes for each order and force them but I have to go through the “fulfillment_orders/{{fulfillmentOrder.id}}/move.json” API except that an order placed without a location doesn’t have a fulfillment_orders. Here’s the return from the API:
{
“fulfillment_orders”:
}

How can I retrieve orders created by external apps on my location so that I can process them as recommended by Shopify via the fullfilment order cycle.

Orders created on the back and front ends are assigned to the location according to the location priority

Thank you in advance for your help

If there are no fulfillment_orders set on the order, can’t you just fulifll it like this and select the location?

https://community.shopify.com/post/1067611

No because my application need the fulfilment order process to ship the order from a third party logistics warehouse.