get Appointment Slots

GET {{baseUrl}}/appointment_slots?subdomain={{subdomain}}&start_date=<date>&days=<integer>&lids[]=<integer>&lids[]=<integer>&pids[]=<integer>&pids[]=<integer>&operatory_ids[]=<integer>&operatory_ids[]=<integer>&appointment_type_id=<integer>&slot_length=<integer>&slot_interval=<integer>

Get a list of open slots during which the specified provider is available

Request Params

KeyDatatypeRequiredDescription
subdomainstring(Required) Used to scope the request to the specified institution
start_datestring(Required) Date string you want results to start at, format YYYY-MM-DD
daysstring(Required) Number of days to include, counting the start date
lids[]string(Required) Array of Location Ids
lids[]string(Required) Array of Location Ids
pids[]string(Required) Array of Provider Ids
pids[]string(Required) Array of Provider Ids
operatory_ids[]stringSpecify this if booking is mapped to operatory in this location
operatory_ids[]stringSpecify this if booking is mapped to operatory in this location
appointment_type_idstringSpecify an appointment type to filter returned slots and set slot_length to appointment_type.minutes
slot_lengthstringManually specify slot length in minutes. Defaults to 15 minutes
slot_intervalstringManually specify the time in minutes between returned slot start times when a contiguous opening exists longer than the slot_length

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;code&quot;:&quot;\u003cboolean\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;error&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;data&quot;:[{&quot;lid&quot;:&quot;\u003cinteger\u003e&quot;,&quot;pid&quot;:&quot;\u003cinteger\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;slots&quot;:[{&quot;time&quot;:&quot;\u003cstring\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;provider_id&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;time&quot;:&quot;\u003cstring\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;provider_id&quot;:&quot;\u003cinteger\u003e&quot;}]},{&quot;lid&quot;:&quot;\u003cinteger\u003e&quot;,&quot;pid&quot;:&quot;\u003cinteger\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;slots&quot;:[{&quot;time&quot;:&quot;\u003cstring\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;provider_id&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;time&quot;:&quot;\u003cstring\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;provider_id&quot;:&quot;\u003cinteger\u003e&quot;}]}],&quot;count&quot;:&quot;\u003cinteger\u003e&quot;}