mode=upcoming-slots
startDate
When using upcoming-slots, the startDate[gte]or startDate[lte] parameter must be included. The results returned will contain time-based information pertaining to one specific day (the startDate) and be ordered chronologically.
There are three behaviours to bear in mind when using startDate:
- When only
startDate[gte]is used, the API will return slots from that time until the end of the day, e.g.startDate[gte]=3000-01-01T09:00:00Zwill return slots between09:00:00-23:59:59on3000-01-01; - When only
startDate[lte]is used, the API will return slots from the start of the day until that time, e.g.startDate[lte]=3000-01-01T13:30:00Zwill return slots between00:00:00-13:29:59on3000-01-01; and - The
startDate[gte]andstartDate[lte], when used in combination, can only span one calendar day, i.e. it is not possible to include two different dates when using the Facilities API.
startDate Examples
ids
An upcoming-slots search will return two ids for each FacilityUse:
- The
FacilityUse id: this root URL, which looks like https://search.imin.co/facilities-api/v2/facility-uses/{identifier}, will form the basis of theFacilityUse ByIDsearch. - The
Slot id: this is a URL that can be found in theFacilityUseat theeventarray. EverySlot id, which looks like https://search.imin.co/facilities-api/v2/slots/{event[].id}, forms the basis of theSlot ByIDsearch.