Get availability from a static start time for all cars in a dealership by 30-minute interval for every interval between start and end, inclusive
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
Fields
id
integer
required
The id of the dealershipreservation_start_at
date-time
required
The timestamp for the start of reservation, which availability is calculated fromstart_at
date-time
required
The timestamp for the start of the availability rangeend_at
date-time
required
The timestamp for the end of the availability rangeexclude_contract_id
number
If provided, the contract associated with the ID will be excluded from availability calculations. This is used for "modify" contract calculationsapi-version
integer
required
Target API version
Responses
200 Success
- array of objects
- object
- start_at
date-time
required
The beginning of the interval - end_at
date-time
required
The beginning of the interval - available
boolean
required
True if there is availability for this interval, false otherwise - active_vehicle_count
integer
required
The count of active vehicles for the dealership - required_vehicle_count
integer
required
The count of minimum vehicles required to service all bookings within a time range
- start_at
- object
Error Responses
401 Unauthorized403 Forbidden404 Not found422 Unprocessable Content
Example Request
curl --request GET \
--url https://api.dealerware.com/admin/dealerships/id/availability/intervals/continuous \
--header 'accept: application/json'
Example Response
[
{
"start_at": "2020-06-15T20:12:26Z",
"end_at": "2020-06-15T20:12:26Z",
"available": true,
"active_vehicle_count": 30,
"required_vehicle_count": 10
}
]