Availability ALPHA

Description #

How to use Bookable Events with Availability queries.

URL format #

api.cronofy.com/v1/availability

Example Request #

POST /v1/availability HTTP/1.1
Host: api.cronofy.com
Authorization: Bearer {API_KEY}
Content-Type: application/json; charset=utf-8

{
  "bookable_events": [
    {
      "bookable_event_id": "83hi8qhfiaif"
    },
    {
      "bookable_event_id": "jeafugi83gf"
    }
  ]
}

Example Response #

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "available_bookable_events": [
    {
      "bookable_event_id": "83hi8qhfiaif",
      "start": "2019-08-21T09:00:00Z",
      "end": "2019-08-21T10:00:00Z",
      "registration": {
        "capacity": 5,
        "registered_count": 3
      }
    },
    {
      "bookable_event_id": "jeafugi83gf",
      "start": "2019-08-22T11:00:00Z",
      "end": "2019-08-22T12:00:00Z",
      "registration": {
        "capacity": 5,
        "registered_count": 1
      }
    }
  ]
}
Search