Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Set Inventory Level API - inventory_item_id Required parameter is missing or invalid

Set Inventory Level API - inventory_item_id Required parameter is missing or invalid

NLBrown96
Visitor
3 0 0

I'm trying to set my inventory levels from my ERP;  I'm testing the API call using postman, and getting an error.  My POST takes the form https://x.myshopify.com/admin/api/2024-04/inventory_levels/set.json, with my validation in the header (successful - I can do GETs), and the body is:

{
"location_id": 3083239454,
"inventory_item_id": 47452410052859,
"available": 23
}

The response is:  

{
    "errors": {
        "inventory_item_id""Required parameter missing or invalid"
    }
}
 
If I do a get on my product, the invnetory_item_id provided for the variant I want to set inventory level is indeed what I'm providing in my POST, so I don't understand the error.

 

Replies 0 (0)