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
- Start with
Offset=0and increaseOffsetbyLimitwhilemoreRecordsAvailableistrue. - Use
OnlyActive=truewhen your integration only needs active combinations. - Match
skuIdandlocationCodeto the identifiers used by your source system. - Complete all pages before replacing a previously synchronized dataset.
Common pitfalls
- Confusing
activewithreplenishmentActive. They represent separate states. - Assuming
productCodeis a SKU identifier. UseskuIdas the SKU identity. - Stopping after the first page while
moreRecordsAvailableistrue.
TECHNICAL INFORMATION
Authentication
Bearer token, information on page POST /Token
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. ThelocationSkusarray 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. |