GENERAL INFORMATION
Purpose
Use this endpoint to create or update delivery and replenishment settings for locations.
How the data is used
The settings control location-specific shipment limits, storage and outbound capacity, lead time, weeks of coverage, transfer-creation weekdays, and optional style-subgroup restrictions per weekday.
The request is accepted for asynchronous import processing.
Best practices
- Identify a location with either
locationIdorlocationCode. PreferlocationIdwhen both are available. - Omit optional numeric fields when their existing portal value must remain unchanged. Sending
0explicitly updates the value to zero. - Use each location only once per request.
- Use each weekday only once in
styleSubGroupsByDay. - Send only valid positive style-subgroup identifiers.
Common pitfalls
- Sending
0for every optional numeric field. This overwrites existing values with zero. - Repeating the same location using different letter casing.
- Repeating a weekday or style-subgroup identifier.
- Sending an unknown style-subgroup identifier. This can fail during asynchronous import processing.
- Sending an empty
locationDeliverySettingsarray. No import is queued for an empty array.
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 |
|---|---|---|
| fullLoad | Optional. Defaults to false. Marks the request as a full-load import. Use this only when agreed as part of your integration design. |
false |
Body example
{
"locationDeliverySettings": [
{
"locationId": "STORE-014",
"minShipmentReceivingInUnits": 12,
"maxShipmentReceivingInUnits": 120,
"maxStorageCapacityInUnits": 2500,
"maxOutboundCapacityInUnits": 180,
"minCostValue": 100,
"leadTime": 2,
"weeksOfCoverage": 4,
"transferCreationOnMonday": true,
"transferCreationOnTuesday": false,
"transferCreationOnWednesday": true,
"transferCreationOnThursday": false,
"transferCreationOnFriday": true,
"transferCreationOnSaturday": false,
"transferCreationOnSunday": false,
"styleSubGroupsByDay": [
{
"dayOfWeek": "Monday",
"styleSubGroupIds": [
101,
102
]
},
{
"dayOfWeek": "Wednesday",
"styleSubGroupIds": []
}
]
}
]
}
Field information
| Field | Context | Mandatory | Type / accepted value |
|---|---|---|---|
| locationDeliverySettings | Location settings to process. | Yes | array |
| locationId | Identifier of the location. Use this field or locationCode. |
Conditional | string, maximum 80 characters |
| locationCode | Business code of the location. Use this field or locationId. |
Conditional | string, maximum 60 characters |
| minShipmentReceivingInUnits | Minimum receiving quantity for a shipment. Omit to preserve the current value. | No | integer |
| maxShipmentReceivingInUnits | Maximum receiving quantity for a shipment. Omit to preserve the current value. | No | integer |
| maxStorageCapacityInUnits | Maximum storage capacity of the location. Omit to preserve the current value. | No | integer |
| maxOutboundCapacityInUnits | Maximum outbound capacity of the location. Omit to preserve the current value. | No | integer |
| minCostValue | Minimum cost value used for delivery decisions. Omit to preserve the current value. | No | integer |
| leadTime | Location lead time. Omit to preserve the current value. | No | integer |
| weeksOfCoverage | Number of weeks of coverage. Omit to preserve the current value. | No | integer |
| transferCreationOnMonday | Whether transfers may be created on Monday. | No | boolean |
| transferCreationOnTuesday | Whether transfers may be created on Tuesday. | No | boolean |
| transferCreationOnWednesday | Whether transfers may be created on Wednesday. | No | boolean |
| transferCreationOnThursday | Whether transfers may be created on Thursday. | No | boolean |
| transferCreationOnFriday | Whether transfers may be created on Friday. | No | boolean |
| transferCreationOnSaturday | Whether transfers may be created on Saturday. | No | boolean |
| transferCreationOnSunday | Whether transfers may be created on Sunday. | No | boolean |
| styleSubGroupsByDay | Optional style-subgroup restrictions per weekday. Maximum seven entries. | No | array |
| styleSubGroupsByDay > dayOfWeek | Weekday to configure. Each weekday can occur only once. | Yes | weekday name, for example Monday |
| styleSubGroupsByDay > styleSubGroupIds | Positive style-subgroup identifiers allowed on this weekday. An empty array means no subgroup restriction for that day. | Yes | array of unique positive integers |
RESPONSE
Status codes
200 OK— The request was accepted for asynchronous import processing.400 Bad Request— The request body violates one or more validation rules.401 Unauthorized— The bearer token is missing, expired, or invalid.500 Internal Server Error— An unexpected error occurred while accepting or processing the request.
Body example
No response body.