You are viewing a non-production environment — the API surface may differ from production.
Booking API

Time Slots

Available time slots for orders and bookings

GET
/api/v1/locations/{locationId}/time-slots/{date}

Authorization

ApiKeyAuth
X-API-Key<token>

API key authentication. Format: karma_live_* or karma_dev_*

In: header

Path Parameters

locationId*string

Location ID

date*string

Date in YYYY-MM-DD format

Match^\d{4}-\d{2}-\d{2}$

Query Parameters

menuLayoutIds?string

Comma-separated menu layout ids (root layouts and nested groups) the cart was ordered from. Only slots inside the schedules of all of them are returned; ids that are not layout ids are ignored.

Lengthlength <= 8000

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/locations/string/time-slots/string"
{  "status": "success",  "data": {    "timeSlots": [      {        "startsAt": "2019-08-24T14:15:22Z",        "endsAt": "2019-08-24T14:15:22Z",        "capacities": {          "orders": {            "capacity": 0,            "count": 0          },          "items": {            "capacity": 0,            "count": 0          }        }      }    ]  },  "meta": {    "requestId": "string",    "timestamp": "2019-08-24T14:15:22Z",    "executionTimeMs": 0  }}