What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

POST Moves a fulfillment order not working

POST Moves a fulfillment order not working

OdedMixtiles
Visitor
1 0 0

Hey,

I'm trying to use POST Moves a fulfillment order to a new location - see
https://shopify.dev/docs/api/admin-rest/2023-07/resources/fulfillmentorder#post-fulfillment-orders-f...

I use a simple CURL at this stage just for a proof of concept. My main goal is to change the location for a specific line_item in a "fulfillment order".


See my request:

 

 

 

curl -d '{"api_version": "2023-07", "fulfillment_order":{"new_location_id":68422664385,"fulfillment_order_line_items":[{"id": 12626802409665,"quantity":3}]}}' \
-X POST "https://YYYYYY-dev.myshopify.com/admin/api/2023-07/fulfillment_orders/6131491111105/move.json" \
-H "Authorization: XXXXXXXXXX" \
-H "Content-Type: application/json"

 

 

 

The API seems to be VERY unstable, for example, I got many many errors of type "None of the items are stocked at the new location." when I started playing with it, even though in the Web console I can 100% confirm that the items were indeed available at the "new location".

Finally, I did get it to work SOMETIMES, but there are more error responses than success, even though the syntax and params haven't change (except for locationId of course)


I managed to switch a line_item location from A to B, but when trying again to switch from B to A it failed with "Cannot change location" error - even though the location change did work from the Web console.

See reference for this error in Shopify Dev Community https://community.shopify.com/c/shopify-discussions/unable-to-move-fulfillmentorder/m-p/2086050#M362...

Replies 0 (0)