Find available slots
GET/v2/partner/locations/:location_id/slots
Returns the slots for the number of days out configured in the Solv settings at the specified location. The response contains an array of objects representing the location and its slots. If a visit type ID is specified, available slots for that visit type will be returned. Otherwise, slots for the default visit type of the given location will be returned.
The v2 endpoint differs from v1 in that it uses the number of days worth of slots configured in Solv settings, rather than a fixed or user-specified number of days. It also includes more sophisticated filtering of slots, removing past slots and those with disabled reservations.
Token scope:{'scope': 'read:locations'}
Request​
Path Parameters
Required. The unique identifier of the location.
Query Parameters
Optional. Whether to return walk-in slot times in the response
Optional. Whether to buffer the slot times in the response for walk-in slots. This is a no-op if return_walkin_slots is false.
Optional. A Solv visit type ID. If specified, returns available slots for that visit type.
Responses​
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The unique identifier of the location
slots
object[]
required
A list of available appointment slots.
The date and time of the appointment in ISO8601 format.
[
{
"location_id": 0,
"slots": [
{
"appointment_date": "2024-07-29T15:51:28.071Z",
"availability": 0,
"busy": true,
"location_ids": [
"string"
]
}
]
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}