Get Facility Availability
Use this API to find open appointment slots for a given Facility.
Body
- Type: stringFormat: date-timeendrequired
As an ISO 8601 date-time string.
- Type: stringFormat: uuidfacility
_id requiredThe unique id of the
Facility - Type: array of objectorder
_info requiredProperties: 1An object representing the contents of the truck.
- Type: stringFormat: date-timestartrequired
As an ISO 8601 date-time string.
- Type: stringtyperequired
Either
Inboundfor deliveries orOutboundfor pickups. - Type: array of stringload
_type _names Names of load types the appointment would carry, matched case-insensitively against the load types configured on the
Facility. The returned slots follow those load types' schedules, durations and capacity. A name that matches no load type for the facility andtypefails the request.
Responses
- application/json
Request Example for post/conduit.v1.get_facility_availability
curl https://api.getconduit.ai/conduit.v1.get_facility_availability \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"facility_id": "2aae24c7-438d-473f-aba8-7793b7efdec3",
"start": "2023-01-01T00:00:00-08:00",
"end": "2023-01-10T00:00:00-08:00",
"type": "Inbound",
"order_info": [
{
"reference_id": ""
}
],
"load_type_names": [
"Dry Van"
]
}'
[
{
"status": "Open",
"scheduled_start_time": "2023-05-10T10:00:00-07:00",
"scheduled_end_time": "2023-05-10T12:00:00-07:00",
"type": "Inbound"
}
]
