View appointment slots
GET {{baseUrl}}/appointment_slots?subdomain={{subdomain}}&start_date=2024-04-16&days=5&lids[]=109441&pids[]=223773180&appointment_type_id=220895
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
subdomain | string | (Required) Used to scope the request to the specified institution | |
start_date | string | (Required) Date string you want results to start at, format YYYY-MM-DD | |
days | number | (Required) Number of days to include, counting the start date | |
lids[] | number | (Required) Array of Location Ids | |
lids[] | null | (Required) Array of Location Ids | |
pids[] | number | (Required) Array of Provider Ids | |
pids[] | string | (Required) Array of Provider Ids | |
operatory_ids[] | string | Specify this if booking is mapped to operatory in this location | |
operatory_ids[] | string | Specify this if booking is mapped to operatory in this location | |
appointment_type_id | number | Specify an appointment type to filter returned slots and set slot_length to appointment_type.minutes | |
slot_length | string | Manually specify slot length in minutes. Defaults to 15 minutes | |
slot_interval | string | Manually specify the time in minutes between returned slot start times when a contiguous opening exists longer than the slot_length |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"code":"\u003cboolean\u003e","description":"\u003cstring\u003e","error":["\u003cstring\u003e","\u003cstring\u003e"],"data":[{"lid":"\u003cinteger\u003e","pid":"\u003cinteger\u003e","operatory_id":"\u003cinteger\u003e","slots":[{"time":"\u003cstring\u003e","operatory_id":"\u003cinteger\u003e","provider_id":"\u003cinteger\u003e"},{"time":"\u003cstring\u003e","operatory_id":"\u003cinteger\u003e","provider_id":"\u003cinteger\u003e"}],"next_available_date":"\u003cdate\u003e"},{"lid":"\u003cinteger\u003e","pid":"\u003cinteger\u003e","operatory_id":"\u003cinteger\u003e","slots":[{"time":"\u003cstring\u003e","operatory_id":"\u003cinteger\u003e","provider_id":"\u003cinteger\u003e"},{"time":"\u003cstring\u003e","operatory_id":"\u003cinteger\u003e","provider_id":"\u003cinteger\u003e"}],"next_available_date":"\u003cdate\u003e"}],"count":"\u003cinteger\u003e"}