WinShopAPI docs
ReferenceStock items

Create stock items

Creates the stock items for every combination of `warehouseId` and `productId` that does not have one yet, and returns the rows it created (201, `Location` header set). Returns 200 with no body when every combination already existed. Requires `Permissions.StockItems.View`.

POST
/api/stock-items

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Query Parameters

warehouseId?array<>
productId?array<>

Response Body

response?unknownapplication/octet-stream
curl -X POST 'https://<your-instance>/api/stock-items' \  -H 'Authorization: Bearer <access-token>'
null