Most of our content is Publicly accessible. However some content is Private and you will be asked to create an account the first time you try to access this content.
Private content is only available to our existing customers.

POST /LocationDeliverySettings

Prev Next

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

  1. Identify a location with either locationId or locationCode. Prefer locationId when both are available.
  2. Omit optional numeric fields when their existing portal value must remain unchanged. Sending 0 explicitly updates the value to zero.
  3. Use each location only once per request.
  4. Use each weekday only once in styleSubGroupsByDay.
  5. Send only valid positive style-subgroup identifiers.

Common pitfalls

  1. Sending 0 for every optional numeric field. This overwrites existing values with zero.
  2. Repeating the same location using different letter casing.
  3. Repeating a weekday or style-subgroup identifier.
  4. Sending an unknown style-subgroup identifier. This can fail during asynchronous import processing.
  5. Sending an empty locationDeliverySettings array. 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.