Delivery Windows

Upsert multiple delivery windows

Create or update multiple delivery windows in a single request. Existing windows are matched by ID for updates; new windows are created.

post/v1/delivery-windows/upsert

Request

  • Base URL
    https://api.sandbox.usenash.com
  • Auth
    none declared

Request body

Example request

{
  "deliveryWindows": [
    {
      "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
    }
  ]
}

Response

OK

Example response

{
  "deliveryWindows": [
    {
      "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
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.