--- title: "GET /Recommendations/locationVariants" slug: "get-recommendations-locationvariants" updated: 2026-09-18T14:01:43Z published: 2026-09-18T14:01:43Z canonical: "docs.wair.ai/get-recommendations-locationvariants" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.wair.ai/llms.txt > Use this file to discover all available pages before exploring further. # GET /Recommendations/locationVariants ### GENERAL INFORMATION ### Purpose Use this endpoint to retrieve the current SKU and location combinations known to WAIR, including their activation state and stock targets. **How the data is used** The response can be used to synchronize location-specific SKU settings with your source system. Each result identifies one SKU at one location and shows whether the combination and its replenishment are active. **Best practices** 1. Start with `Offset=0` and increase `Offset` by `Limit` while `moreRecordsAvailable` is `true`. 2. Use `OnlyActive=true` when your integration only needs active combinations. 3. Match `skuId` and `locationCode` to the identifiers used by your source system. 4. Complete all pages before replacing a previously synchronized dataset. **Common pitfalls** 1. Confusing `active` with `replenishmentActive`. They represent separate states. 2. Assuming `productCode` is a SKU identifier. Use `skuId` as the SKU identity. 3. Stopping after the first page while `moreRecordsAvailable` is `true`. ### TECHNICAL INFORMATION **Authentication** Bearer token, information on page [POST /Token](/v1/docs/tech-documentation-article) **Headers** | Name | Description | Example | | --- | --- | --- | | X-Tenant | Tenant code supplied by WAIR | `TENANT` | #### Query parameters | Name | Description | Example | | --- | --- | --- | | OnlyActive | Optional. Defaults to `false`. When `true`, only active location and SKU combinations are returned. | `true` | | Offset | Required zero-based number of combinations to skip. | `0` | | Limit | Required maximum number of combinations to return. | `100` | Example request: ``` ?OnlyActive=true&Offset=0&Limit=100 ``` #### Body example No request body required. ### RESPONSE **Status codes** - `200 OK` — The location and SKU combinations were retrieved successfully. The `locationSkus` array can be empty. - `400 Bad Request` — A query parameter is missing or cannot be parsed. - `401 Unauthorized` — The bearer token is missing, expired, or invalid. - `500 Internal Server Error` — An unexpected error occurred while processing the request. **Body example** ``` { "locationSkus": [ { "skuId": "STYLE-001-BLUE-M", "productCode": "STYLE-001-BLUE", "locationCode": "STORE-014", "replenishmentActive": true, "active": true, "minStockTarget": 1, "maxStockTarget": 5 } ], "offset": 0, "limit": 100, "moreRecordsAvailable": false } ``` #### Field information | Field | Description | | --- | --- | | locationSkus | Location-specific SKU records in this page. | | skuId | Unique identifier of the SKU. | | productCode | Product or style code associated with the SKU. | | locationCode | Business code of the location. | | replenishmentActive | Indicates whether replenishment is active for this combination. | | active | Indicates whether the location and SKU combination is active. | | minStockTarget | Current minimum stock target. | | maxStockTarget | Current maximum stock target. | | offset | `Offset` value used for the request. | | limit | `Limit` value used for the request. | | moreRecordsAvailable | Indicates whether another page is available. |