--- title: "GET /Recommendations/stockTargets" slug: "get-recommendations-stocktargets" updated: 2026-09-23T09:23:36Z published: 2026-09-23T09:23:36Z canonical: "docs.wair.ai/get-recommendations-stocktargets" --- > ## 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/stockTargets ### GENERAL INFORMATION ### Purpose Use this endpoint to retrieve stock target recommendations generated by WAIR. Each recommendation defines a target quantity for one SKU at one location and includes the forecast date and effective replenishment period. **How the data is used** Use the response to synchronize recommended stock targets with your source system. By default, the endpoint returns the qualifying changes that need synchronization. Use `FullLoad=true` when you need a complete qualifying snapshot. Disabled stock targets are returned with `targetQuantity` set to `0`. Effective start and end dates can be absent when no date restriction applies. **Best practices** 1. Start a new integration or recovery with `FullLoad=true` and retrieve every page. 2. For regular synchronization, omit `FullLoad` or set it to `false` and process all returned changes. 3. Start with `Offset=0` and increase `Offset` by `Limit` while `moreRecordsAvailable` is `true`. 4. Identify a target by the combination of `locationId` and `skuId`. 5. Apply a returned quantity of `0`; it can represent a disabled stock target rather than a missing record. **Common pitfalls** 1. Treating an incremental response as a complete snapshot. 2. Stopping after the first page while `moreRecordsAvailable` is `true`. 3. Ignoring a `targetQuantity` of `0` and leaving an obsolete target active in the source system. 4. Assuming `startDate` and `endDate` are always populated. ### TECHNICAL INFORMATION **Authentication** Bearer token, information on page [POST /Token](/v1/docs/tech-documentation-article) **Headers** | Name | Description | Example | | --- | --- | --- | | X-Tenant | Environment code supplied by WAIR | `ENVIRONMENT` | #### Query parameters | Name | Description | Example | | --- | --- | --- | | Offset | Required number of stock target records to skip. | `0` | | Limit | Required maximum number of stock target records to return. | `100` | | FullLoad | Optional. Defaults to `false`. When `true`, returns a complete qualifying stock target snapshot instead of only the qualifying changes. | `true` | Example request for a full load: ``` ?Offset=0&Limit=100&FullLoad=true ``` #### Body example No request body required. ### RESPONSE **Status codes** - `200 OK` — The stock target recommendations were retrieved successfully. The `stockTargets` array can be empty. - `400 Bad Request` — `Offset` or `Limit` is missing, or a query parameter 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** ``` {  "stockTargets": [    {      "locationId": "STORE-014",      "skuId": "STYLE-1001-BLUE-M",      "targetQuantity": 3,      "forecastDate": "2026-09-21T00:00:00Z",      "startDate": "2026-09-01T00:00:00Z",      "endDate": "2026-12-31T00:00:00Z"    },    {      "locationId": "STORE-014",      "skuId": "STYLE-1001-BLUE-L",      "targetQuantity": 0,      "forecastDate": "2026-09-21T00:00:00Z",      "startDate": null,      "endDate": null    }  ],  "offset": 0,  "limit": 100,  "moreRecordsAvailable": false } ``` #### Field information | Field | Description | | --- | --- | | stockTargets | Stock target recommendations in this page. | | locationId | Unique identifier of the location. | | skuId | Unique identifier of the SKU. | | targetQuantity | Recommended stock quantity. A disabled target is returned as `0`. | | forecastDate | Forecast date used for the recommendation. | | startDate | Effective replenishment start date. A manual activation date takes precedence over the imported date. Can be `null`. | | endDate | Effective replenishment end date. A manual activation date takes precedence over the imported date. Can be `null`. | | offset | `Offset` value used for the request. | | limit | `Limit` value used for the request. | | moreRecordsAvailable | Indicates whether another page is available. |