Checking available times

To book a reservation, you need an available time for a customer's desired party size and date. To get back a list of available times, make the following request.

curl --request GET \
  --url https://sandbox.seatninja.com/v2/reservations/restaurantId/availabletimes/date/partySize \
  --header 'accept: application/json' \
  --header 'x-api-key: YOUR_API_KEY'
{
	"data": {
		"availableTimes": [{
				"diningTableSectionId": 0,
				"times": [
					"2017-10-15T08:00:00.0000000Z",
					"2017-10-15T08:15:00.0000000Z",
					"2017-10-15T08:30:00.0000000Z",
					"2017-10-15T08:45:00.0000000Z",
					"2017-10-15T09:00:00.0000000Z",
					"2017-10-15T09:15:00.0000000Z"
				],
				"localTimes": [
					"2017-10-15T01:00:00.0000000Z",
					"2017-10-15T01:15:00.0000000Z",
					"2017-10-15T01:30:00.0000000Z",
					"2017-10-15T01:45:00.0000000Z",
					"2017-10-15T02:00:00.0000000Z",
					"2017-10-15T02:15:00.0000000Z"
				]
			},
			{
				"diningTableSectionId": 3846,
				"times": [
					"2017-10-15T08:00:00.0000000Z",
					"2017-10-15T08:15:00.0000000Z",
					"2017-10-15T08:30:00.0000000Z",
					"2017-10-15T08:45:00.0000000Z",
					"2017-10-15T09:00:00.0000000Z",
					"2017-10-15T09:15:00.0000000Z",
					"2017-10-15T09:30:00.0000000Z",
					"2017-10-15T09:45:00.0000000Z",
					"2017-10-15T10:00:00.0000000Z",
					"2017-10-15T10:15:00.0000000Z",
					"2017-10-15T10:30:00.0000000Z"
				],
				"localTimes": [
					"2017-10-15T01:00:00.0000000Z",
					"2017-10-15T01:15:00.0000000Z",
					"2017-10-15T01:30:00.0000000Z",
					"2017-10-15T01:45:00.0000000Z",
					"2017-10-15T02:00:00.0000000Z",
					"2017-10-15T02:15:00.0000000Z",
					"2017-10-15T02:30:00.0000000Z",
					"2017-10-15T02:45:00.0000000Z",
					"2017-10-15T03:00:00.0000000Z",
					"2017-10-15T03:15:00.0000000Z",
					"2017-10-15T03:30:00.0000000Z"
				]
			},
			{
				"diningTableSectionId": 3943,
				"times": [],
				"localTimes": []
			}
		]
	},
	"error": null
}

This will return a list of section IDs and respected available times for that party (see Sections for more info on sections). All sections configured for the restaurant are returned regardless of availability. If no times are available for a given section, that list will be empty.

See available times API