I am having trouble moving a fulfillment order using https://shopify.dev/docs/api/admin-rest/2023-07/resources/fulfillmentorder#post-fulfillment-orders-fulfillment-order-id-move
The response I get is
{"errors":["Could not reassign inventory."]}
Note that there is stock on the new location id so I don’t think this is a stock issue.
What should I do?
this is the request id: x-request-id: 4bf1817d-47f3-4d0a-b988-e7fbb83992b8-1712248709
Request
POST /admin/api/2023-07/fulfillment_orders/6534840811633/move.json HTTP/1.1
Content-Type: application/json
Connection: close
User-Agent: RapidAPI/4.2.0 (Macintosh; OS X/14.4.1) GCDHTTPRequest
Content-Length: 67
{
"fulfillment_order": {
"new_location_id": 23761846326
}
}
Response
HTTP/1.1 422 Unprocessable Entity
{"errors":["Could not reassign inventory."]}
Hi dear,
if i am not wrong then you also have to insert order lines detail.
fulfillment_order_line_items
i hope this will solve your issue.
{“fulfillment_order”:{“new_location_id”:655441491,“fulfillment_order_line_items”:[{“id”:1058737714,“quantity”:1}]}}
Thanks
Adding line items creates the same error
Request:
POST /admin/api/2023-07/fulfillment_orders/6534840811633/move.json HTTP/1.1
Content-Type: application/json
Connection: close
User-Agent: RapidAPI/4.2.0 (Macintosh; OS X/14.4.1) GCDHTTPRequest
Content-Length: 145
{
"fulfillment_order": {
"new_location_id": 23761846326,
"fulfillment_order_line_items":[{"id":13675076485233,"quantity":1}]
}
}
Response: x-request-id: 858e4f7a-78e7-4ee3-a591-88cfa2b1ba1e-1712330511
HTTP/1.1 422 Unprocessable Entity
Date: Fri, 05 Apr 2024 15:21:51 GMT
{"errors":["Could not reassign inventory."]}
Did you confirmed that this item is assigned to new location. (item which is in order lines).
because according to documentation this can create an error.
you can use this endpoint just for confirmation
https://shopify.dev/docs/api/admin-rest/2024-01/resources/inventorylevel#post-inventory-levels-connect
and then try again.