v1

latestOpenAPI 3.0.02026-07-1498671635.3 KB
Restaurants
publicly-accessible

Get service times

Gets the service times (the weekly times at which a restaurant is in service for delivery or collection) for a restaurant

get/restaurants/{tenant}/{restaurantId}/servicetimes

Path parameters

tenantstring required

Two letter code of restaurant's tenant

restaurantIdstring required

The restaurant identifier

Response

The restaurant's service times

Example response

{
  "desiredServiceTimes": {
    "friday": {
      "collection": [
        {
          "end": "14:00:00",
          "start": "12:00:00"
        },
        {
          "end": "23:00:00",
          "start": "17:00:00"
        }
      ],
      "delivery": [
        {
          "end": "13:30:00",
          "start": "12:00:00"
        },
        {
          "end": "00:00:00",
          "start": "18:00:00"
        }
      ]
    },
    "monday": {
      "collection": [
        {
          "end": "14:00:00",
          "start": "12:00:00"
        },
        {
          "end": "23:00:00",
          "start": "17:00:00"
        }
      ],
      "delivery": [
        {
          "end": "13:30:00",
          "start": "12:00:00"
        },
        {
          "end": "00:00:00",
          "start": "18:00:00"
        }
      ]
    },
    "saturday": {
      "collection": [
        {
          "end": "23:00:00",
          "start": "12:00:00"
        }
      ],
      "delivery": [
        {
          "end": "00:00:00",
          "start": "12:00:00"
        }
      ]
    },
    "sunday": {
      "collection": [
        {
          "end": "23:00:00",
          "start": "12:00:00"
        }
      ],
      "delivery": [
        {
          "end": "00:00:00",
          "start": "12:00:00"
        }
      ]
    },
    "thursday": {
      "collection": [
        {
          "end": "14:00:00",
          "start": "12:00:00"
        },
        {
          "end": "23:00:00",
          "start": "17:00:00"
        }
      ],
      "delivery": [
        {
          "end": "13:30:00",
          "start": "12:00:00"
        },
        {
          "end": "00:00:00",
          "start": "18:00:00"
        }
      ]
    },
    "tuesday": {
      "collection": [
        {
          "end": "14:00:00",
          "start": "12:00:00"
        },
        {
          "end": "23:00:00",
          "start": "17:00:00"
        }
      ],
      "delivery": [
        {
          "end": "13:30:00",
          "start": "12:00:00"
        },
        {
          "end": "00:00:00",
          "start": "18:00:00"
        }
      ]
    },
    "wednesday": {
      "collection": [
        {
          "end": "14:00:00",
          "start": "12:00:00"
        },
        {
          "end": "23:00:00",
          "start": "17:00:00"
        }
      ],
      "delivery": [
        {
          "end": "13:30:00",
          "start": "12:00:00"
        },
        {
          "end": "00:00:00",
          "start": "18:00:00"
        }
      ]
    }
  }
}