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
- Start a new integration or recovery with
FullLoad=trueand retrieve every page. - For regular synchronization, omit
FullLoador set it tofalseand process all returned changes. - Start with
Offset=0and increaseOffsetbyLimitwhilemoreRecordsAvailableistrue. - Identify a target by the combination of
locationIdandskuId. - Apply a returned quantity of
0; it can represent a disabled stock target rather than a missing record.
Common pitfalls
- Treating an incremental response as a complete snapshot.
- Stopping after the first page while
moreRecordsAvailableistrue. - Ignoring a
targetQuantityof0and leaving an obsolete target active in the source system. - Assuming
startDateandendDateare always populated.
TECHNICAL INFORMATION
Authentication
Bearer token, information on page POST /Token
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. ThestockTargetsarray can be empty.400 Bad Request—OffsetorLimitis 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. |