WinShopAPI docs
ReferenceProduct

Get the variant matrix for expedition

Returns the variant grid a warehouse can actually despatch: the catalogue's variants joined with what is on stock, so cells that exist in the catalogue but hold nothing are still reported. `warehouseId` is required. Requires `Permissions.Product.View`.

GET
/api/products/expedition-availability-matrix

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?integer
Formatint32
productIds?array<>

Response Body

application/json
  1. response
[index: integer]?
curl -X GET 'https://<your-instance>/api/products/expedition-availability-matrix' \  -H 'Authorization: Bearer <access-token>'
[  {    "colorId": 0,    "dimensionId": 0,    "lengthId": 0,    "productId": 0,    "quantityBlocked": 0,    "quantityInStock": 0,    "sizeId": 0,    "stockItemId": 0,    "warehouseId": 0  }]