Unable to move fulfillment order

24sevencommerce
New Member
3 0 0

am trying to move a fulfillment order to a new location using the following endpoint:

 admin/api/2020-10/fulfillment_orders/3048294678686/move.json

Body :   

{

        "fulfillment_order": {

                "new_location_id": 56287264926

       }

}

but it is giving me error:

StatusCode: 422, ReasonPhrase: 'Unprocessable Entity', {"errors":["Cannot change location."]}

Why am I getting this error?

Reply 1 (1)
_JB
Shopify Staff
Shopify Staff
836 100 219

Hey @24sevencommerce,

Make sure the products on that FulfillmentOrder are stocked at the location you're attempting to move to. Keep in mind that if you're using a FulfillmentService, those products can only belong to the fulfillmentService location and can't be moved.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog