GENERAL INFORMATION
Purpose
This endpoint is used for retrieving the current replenishment activation state for each style and location combination that has stock targets.
How the data is used
Use the response to synchronize whether replenishment is active for a style at a location. The response also identifies whether the style-level or location-level state changed most recently and provides the recorded user or process and reason when available.
Each result represents the latest state for one styleId and locationId. This endpoint does not return a history of activation events. A style-level change can appear for multiple locations because every qualifying style and location combination is returned separately.
Best practices
- Start an integration with
FullLoad=trueand retrieve every page. This establishes the current activation state for all qualifying style and location combinations. - After the initial load, use
FromChangedDateTimefor incremental synchronization. Use an ISO 8601 UTC value and complete every page before advancing the watermark for the next synchronization. - Store or update each result using the combination of
styleIdandlocationIdas its identity. - Continue increasing
OffsetbyLimitwhilemoreRecordsAvailableistrue. - Use
ReplenishmentActive,StyleId, orLocationIdwhen you intentionally need a filtered recovery or targeted synchronization. Leave these filters empty for a complete delta synchronization. - Use
changedLevel,changedBy, andreasonto understand the latest recorded state, not to reconstruct a sequence of historical changes.
Common pitfalls
- Assuming
replenishmentActiveis the same as either individual activation flag. It istrueonly when bothstyleIsActiveandstyleLocationIsActivearetrue. - Expecting every style and location combination to be returned. A combination is included only when it has at least one stock target; the
skusarray contains the SKUs with stock targets for that combination. - Treating multiple pages as one globally chronological result. Pagination selects style and location combinations in identifier order, while the records within each page are sorted by
changedDateTime. - Advancing the delta watermark before all pages have been processed successfully. This can cause an incomplete synchronization.
- Supplying
FromChangedDateTimetogether withFullLoad=trueand expecting the date filter to apply. Full load retrieves all qualifying combinations and does not apply the changed-date filter. - Treating this endpoint as an audit trail. It returns the latest activation snapshot and does not contain previous states.
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 |
|---|---|---|
| FromChangedDateTime | Required unless FullLoad=true. Includes style and location state modified at or after this date and time. Use an ISO 8601 UTC value. |
2026-07-08T00:00:00Z |
| ReplenishmentActive | Optional filter for the effective replenishment state. true returns combinations where both the style and style-location state are active. |
false |
| StyleId | Optional exact filter for one style. | STYLE-001 |
| LocationId | Optional exact filter for one location. | LOC-014 |
| FullLoad | Optional. Defaults to false. When true, returns all qualifying combinations and does not apply FromChangedDateTime. |
false |
| Offset | Required zero-based number of style and location combinations to skip. Must be 0 or greater. |
0 |
| Limit | Required maximum number of combinations to return. Must be greater than 0. |
100 |
Example delta request:
?FromChangedDateTime=2026-07-08T00:00:00Z&Offset=0&Limit=100
Pagination behavior
Pagination is applied to style and location combinations ordered by styleId and locationId. Within each page, the response is ordered by changedDateTime, followed by styleId and locationId.
Continue increasing Offset by Limit while moreRecordsAvailable is true. Because each page is sorted separately, the complete result across multiple pages is not guaranteed to be in chronological order. Complete all pages before advancing the watermark for your next delta synchronization.
Body example
No request body required.
Field information
| Fieldname | Context | Mandatory | Type / accepted value |
|---|---|---|---|
| FromChangedDateTime | Includes combinations whose style-level or location-level state was modified at or after this date and time. | Yes, unless FullLoad=true |
ISO 8601 UTC date and time |
| ReplenishmentActive | Filters by the effective replenishment state. | No | boolean |
| StyleId | Filters by one exact style identifier. | No | string |
| LocationId | Filters by one exact location identifier. | No | string |
| FullLoad | Retrieves all qualifying combinations without applying FromChangedDateTime. Defaults to false. |
No | boolean |
| Offset | Number of style and location combinations to skip. | Yes | integer, 0 or greater |
| Limit | Maximum number of combinations to return. | Yes | integer, greater than 0 |
RESPONSE
Status codes
200 OK— The activation states were retrieved successfully. TheactivationChangesarray can be empty.400 Bad Request— A required paging parameter is missing or invalid, orFromChangedDateTimeis missing whileFullLoadisfalse.401 Unauthorized— The bearer token is missing, expired, or invalid.500 Internal Server Error— An unexpected error occurred while processing the request.
Body example
{
"activationChanges": [
{
"styleId": "STYLE-001",
"locationId": "LOC-014",
"skus": [
{
"skuId": "STYLE-001-S"
},
{
"skuId": "STYLE-001-M"
}
],
"replenishmentActive": false,
"styleIsActive": true,
"styleLocationIsActive": false,
"changedDateTime": "2026-07-08T04:31:12Z",
"changedLevel": "Location",
"changedBy": "activation-rule",
"reason": "No sales",
"startDate": "2026-02-15T00:00:00",
"endDate": "2026-07-08T00:00:00"
}
],
"offset": 0,
"limit": 100,
"moreRecordsAvailable": false
}
Field information
| Field | Description |
|---|---|
| activationChanges | Current activation snapshots for the returned style and location combinations. |
| styleId | Unique identifier of the style. |
| locationId | Unique identifier of the location. |
| skus | SKUs that have a stock target for this style and location combination. |
| skuId | Unique identifier of a SKU. |
| replenishmentActive | Effective activation state. This is true only when both styleIsActive and styleLocationIsActive are true. |
| styleIsActive | Style-level replenishment activation state. |
| styleLocationIsActive | Replenishment activation state for the style at this location. |
| changedDateTime | Date and time of the latest change to the style-level or location-level state. |
| changedLevel | Level of the latest change: Style or Location. |
| changedBy | User or process recorded for the latest change. Can be null. |
| reason | Reason recorded for the latest change. Can be null. |
| startDate | Effective replenishment start date for the style and location. Can be null. |
| endDate | Effective replenishment end date for the style and location. Can be null. |
| offset | Offset value used for the request. |
| limit | Limit value used for the request. |
| moreRecordsAvailable | Indicates whether another page of combinations is available. |