Trying to update inventory qty 0 to disabled location returns 404 without extra information

Highlighted
New Member
7 0 0

admin/inventory_levels/set.json?location_id=33475657770&inventory_item_id=32478314922026&available=1
If location ID 33475657770 is disabled a 404 returns with the following output

{
    "errors": [
        "Location is deactivated"
    ]
}
However when making the same call with available=0 the response output is empty, it would be helpful if the response contained the same full error so we can inform our users they are trying to update qty to a deactivated location.

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

Hey @As-LW,

 

I'm unable to replicate. Can you please provide a request ID?

 

POST /admin/api/2019-10/inventory_levels/set.json

{
  "location_id": <a deactivated location id>,
  "inventory_item_id": <an item id>,
  "available": 100
}

-> Location is deactivated
POST /admin/api/2019-10/inventory_levels/set.json { "location_id": <a deactivated location id>, "inventory_item_id": <an item id>, "available": 0 }

-> Location is deactivated

 

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes