Delivery Windows

Update multiple delivery windows

Update multiple existing delivery windows in a single request. Only provided fields are updated for each window.

patch/v1/delivery-windows

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,
      "id": "dw_01234567890123456789"
    }
  ]
}

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.