WinShopAPI docs
ReferenceProduct

Get the variant matrix of several products

Returns, for each product in `productIds`, the grid of its colour/size/length/dimension variants with the quantity available in each cell. Requires `Permissions.Product.View`.

GET
/api/products/variants-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

productIds?array<>

Response Body

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