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?

0 Likes
_JB
Shopify Staff
Shopify Staff
750 86 163

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 | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes