How to add stock entry if warehouse not on product


I have just added a new warehouse to the system and need to ‘fill’ it with inventory.

Using the stock entry endpoint I get a 404 error because the new warehouse id is not on the product under that sellable id. This endpoint works for the same sellable id and existing warehouse.

I’m guessing it’s some kind of getting things in the correct order, but I can’t work it out from the documentation. Is it updating the product with new warehouse fields under the sellable Id?


Well, if I had just taken the advice of ‘check your attributes’ I might not have made this post…

…still, we all ‘know’ our calls are always right.

Update Stock Entry works just fine if you construct the endpoint with the correct warehouse id.