FROM CACHE - en_header

Could not reassign inventory error message

Aaron_Rubin2
Shopify Partner
11 0 1

I am posting 

{"fulfillment": {"line_items": [{"id": "3773141188708", "quantity": 1}], "notify_customer": true, "tracking_number": "REDACTED", "tracking_company": "Shippo Usps", "location_id": "28771450980", "tracking_url": "https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=REDACTED"}}

to

https://nature-reflections.myshopify.com/admin/api/2019-04/orders/1697325908068/fulfillments.json

and getting a response of

<Response [422]>
{"errors":{"base":["Could not reassign inventory."]}}

But the stock is in location_id 28771450980 according to https://nature-reflections.myshopify.com/admin//api/2019-04/inventory_levels.json?inventory_item_ids...

What am I doing wrong?

Replies 4 (4)
Josh
Shopify Staff
Shopify Staff
1134 84 226

Hey @Aaron_Rubin2 , 

 

It looks like that order may have inventory committed from the location with ID 22315303012. Is this the only order this is happening on, or were there others? You should be able to fulfill it using the different location ID. 

Josh | 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 the Shopify Help Center or the Shopify Blog

ShopMaster_ERP
Shopify Partner
270 7 45

Hi Josh,

We have the same error for a dozen orders, and we have checked the item location IDs but no luck. Could you help me to check the actual location ID of the order 1908150009901?

❤️ ShopMaster.com - FREE dropshipping solutions
✔️ Import products | Pirce and Inventory Monitor | Auto-order | Auto Fulfillment
Official dropshipping partner of AliExpress, Banggood, CJDropshipping, and Chianbrands
Josh
Shopify Staff
Shopify Staff
1134 84 226

Hey @ShopMaster_ERP , 

 

I think what may have happened here is that the product used to be located elsewhere, but since then the item was relocated and the previous location removed. 

 

With our coming Fulfillment Order API this will be something easier to avoid, but in the meantime I can see the product in the example you gave had been fulfilled with location_id 36182458413. Would you be able to see if that location ID works? 

Josh | 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 the Shopify Help Center or the Shopify Blog

ShopMaster_ERP
Shopify Partner
270 7 45
Our client found a solution by delete and re-add the variations again.
Thanks for your help and looking forward the new fulfillment API.
❤️ ShopMaster.com - FREE dropshipping solutions
✔️ Import products | Pirce and Inventory Monitor | Auto-order | Auto Fulfillment
Official dropshipping partner of AliExpress, Banggood, CJDropshipping, and Chianbrands