POST
/
v1
/
delivery-window
Create a single delivery window
curl --request POST \
  --url https://api.sandbox.usenash.com/v1/delivery-window \
  --header 'Content-Type: application/json' \
  --data '{
  "startTime": "2024-01-01T10:00:00Z",
  "startTimeLocal": "2024-01-01T10:00:00",
  "endTime": "2024-01-01T12:00:00Z",
  "endTimeLocal": "2024-01-01T12:00:00",
  "cutoffTime": "2024-01-01T10:00:00Z",
  "cutoffTimeLocal": "2024-01-01T10:00:00",
  "timezoneId": "America/New_York",
  "name": "Monday Delivery Window",
  "rrule": "RRULE:FREQ=WEEKLY;BYDAY=MO",
  "exceptionDates": [
    "2024-01-01",
    "2024-01-02"
  ],
  "allowedTags": [
    "service:rapid",
    "service:express",
    "franchise_location"
  ],
  "leadTimeMinutes": 60,
  "priceCents": 1000,
  "minimumOrderValueCents": 1000,
  "maximumCapacity": 1000,
  "storeLocationId": "stl_01234567890123456789",
  "zoneId": "zone_01234567890123456789",
  "zoneExternalId": "ext_01234567890123456789",
  "windowMetadata": {
    "key": "value"
  },
  "isActive": true,
  "isDeleted": false
}'
{
  "id": "dw_01234567890123456789",
  "name": "Monday Delivery Window",
  "startTime": "2024-01-01T10:00:00Z",
  "startTimeLocal": "2024-01-01T10:00:00",
  "endTime": "2024-01-01T12:00:00Z",
  "endTimeLocal": "2024-01-01T12:00:00",
  "timezoneId": "America/New_York",
  "cutoffTime": "2024-01-01T10:00:00Z",
  "cutoffTimeLocal": "2024-01-01T10:00:00",
  "rrule": "RRULE:FREQ=WEEKLY;BYDAY=MO",
  "exceptionDates": [
    "2024-01-01",
    "2024-01-02"
  ],
  "allowedTags": [
    "service:rapid",
    "service:express",
    "franchise_location"
  ],
  "leadTimeMinutes": 60,
  "priceCents": 1000,
  "minimumOrderValueCents": 1000,
  "maximumCapacity": 1000,
  "storeLocationId": "stl_01234567890123456789",
  "zoneId": "zone_01234567890123456789",
  "zoneExternalId": "ext_01234567890123456789",
  "windowMetadata": {
    "key": "value"
  },
  "isActive": true,
  "isDeleted": false
}

Body

application/json

Expected payload for creating a delivery window.

Response

200
application/json

OK

Response for a delivery window.