Booking API

Get parking booking instructions

Returns the driver instructions of a parking booking, identified by the hash from the instructions link. No authentication is required.


Open Swagger Specification

Endpoint

    GET - https://api.travisroadservices.com/api/v1/bookings/parking/instructions/{hash}
    Copy
  

Path params

Parameter Type Description
hash string Hash identifier of the booking, taken from the instructions link.

Query params

Parameter Type Description
language string Language of the instructions as a two-letter language code.

Request body

No request body

Response body

Response 200

Booking resource

Fields

Field Type Description
arrivalTime string Expected arrival time at the parking location. Format: HH:MM.
departureDate string Expected departure date from the parking location. Format: YYYY-MM-DD.
departureTime string Expected departure time from the parking location. Format: HH:MM.
instructions string Driver instructions for the parking location, in the requested language.
providerReservationNumber string Reservation number assigned by the parking provider.
parkingProvider string Identifier of the parking provider operating the location.
isGracePeriod boolean Indicates whether the booking is in its grace period: up to 4 hours after the departure time.
accessTypes array Ways the driver can enter and exit the parking location, primary access type first. Null when the access information could not be resolved.
id integer Unique identifier of the booking.
qrUrl string URL to the QR code for the booking.
service string Service type of the booking. Possible values: truckwash, parking, tankcleaning, repair, truckcharging.
status string Current status of the booking. Possible values: requested, planned, active, completed, expired, cancelled, declined.
travisCode string The Travis code uniquely identifying the booking.
vehicle1 object Truck vehicle of the booking. Null when the booking was made without a known vehicle.
id integer Unique identifier of the vehicle.
licensePlate string License plate of the vehicle.
fleetNumber string Fleet number the customer assigned to the vehicle.
vehicleTypeId integer Identifier of the vehicle type.
vehicle1LicensePlate string License plate of the truck as entered on the booking.
vehicle2 object Trailer vehicle of the booking. Null when the booking has no known trailer.
id integer Unique identifier of the vehicle.
licensePlate string License plate of the vehicle.
fleetNumber string Fleet number the customer assigned to the vehicle.
vehicleTypeId integer Identifier of the vehicle type.
vehicle2LicensePlate string License plate of the trailer as entered on the booking.
vehicleCategory string Vehicle category of the booking.
arrivalDate string Expected arrival date for the booking. Format: YYYY-MM-DD.
location object Address, coordinates and contact details of the booked location.
id integer Unique identifier of the location.
name string Name of the location.
address string Street name of the location.
houseNumber string House number of the location.
zipCode string Postal code of the location.
city string City of the location.
latitude number Latitude of the location in decimal degrees.
longitude number Longitude of the location in decimal degrees.
phoneNumber string Emergency phone number of the location. Only returned for parking and truck charging.

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

Response 404

Not found

Fields

Field Type Description
title string A short, human-readable summary of the problem.
detail string A human-readable explanation specific to this occurrence of the problem.
status integer The HTTP status code applicable to this problem.
instance string A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
type string A URI reference that identifies the problem type

Example