Inventory uploaded via the "Products" Admin API not working

We have been trying to use the “Product” Admin API ( /admin/api/2023-10/products/632910392.json ) to upload inventory.

This used to work but we have noticed that the process is no longer updating inventory. The API call works and returns a valid response but the inventory values are not updated.

Can anyone suggest why this might be?

{

“product”: {
“id”: 2452916338745,
“variants”: [
{
“id”: 19747877683257,
“inventory_item_id”: 24218617577529,
“inventory_quantity”: 25453
}
]
}
}

Hi PharmaCareIT,

You’ll need to use the InventoryLevel resource to set inventory levels. There’s an example of what this looks like in our developer docs.

Hope this helps,