Skip to content

Gets states for all dates in the given interval

GET
/v1/WebBooking/DayStates
curl --request GET \
--url 'https://rms.dev.caspeco.net/api/booking/v1/WebBooking/DayStates?includeAvailableSeats=false&includeFirstAvailableMonth=false' \
--header 'system: example'
system
required
string

The system name / database to query

fromDate
string format: date-time
nullable

The starting date (inclusive) to check day state for.

toDate
string format: date-time
nullable

The ending date (inclusive) to check day state for.

unitId
Array<integer>
nullable

Get the times for these unit IDs only.

sectionId
Array<integer>
nullable

Get the times for these section IDs only.

includeAvailableSeats
boolean

Sets the property AvailableSeats, which contains a list of available group sizes to book sometime on this day.

includeFirstAvailableMonth
boolean

If true, will return also following months, up and including the first day with available times (not waitlist). Requires ‘includeAvailableSeats=true’

tag
string
nullable

Get the times for rules with this tag only

Media typeapplication/json
Array<object>
object
day
string format: date-time
unitId
integer format: int64
sectionId
integer format: int64
state
integer
Allowed values: 0 1 3
availableSeats
Array<integer>
nullable
bookedStatus
integer
Allowed values: 0 1 2 3
waitListSeats
Array<integer>
nullable
Example
[
{
"state": 0,
"bookedStatus": 0
}
]