Locations API - V2

Get parking availability.

Returns parking availability for up to 100 locations within a specified time window. Use this to check available spots and pricing before creating a booking.


Open Swagger Specification

Endpoint

    GET - https://api.travisroadservices.com/v2/locations/availability/parking
    Copy
  

Query params

Parameter Type Description
locationIds[] string Location IDs to check parking availability for. Maximum 100 locations. Multiple values can be passed to broaden the filter.
from string Start date and time of the availability window. Format: YYYY-MM-DDTHH:MM:SS+HH:II. Must be later than now. Minutes must be 00, 15, 30, or 45. Seconds must be 00.
to string End date and time of the availability window. Format: YYYY-MM-DDTHH:MM:SS+HH:II. Must be later than "from", no more than 89 days in the future. Minutes must be 00, 15, 30, or 45. Seconds must be 00.

Request body

No request body

Response body

Response 200

LocationParkingAvailabilityResource collection

Fields

Field Type Description
locationId integer Unique identifier of the location.
isAvailable boolean Indicates whether the location has parking availability in the requested window.
spots object Parking availability spot information for the location.
total integer Total number of parking spots at the location.
available integer Number of parking spots currently available at the location.
price object Price information for the location. Will be null for long-term parkings.
amount number Price amount in the specified currency.
currency string ISO 4217 currency code.

Example

Response 401

No response body - No bearer token set verify if your token is added as bearer token

Response 403

No response body - You don't have access to this API resource