Booking API
Get repair booking instructions
Returns the driver instructions of a repair booking, identified by the hash from the instructions link. No authentication is required.
Endpoint
GET - https://api.travisroadservices.com/api/v1/bookings/repair/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 repair type names as a two-letter language code. Defaults to English when omitted or unknown. |
Request body
No request bodyResponse body
Response 200
Booking resource
Fields
| Field | Type | Description |
|---|---|---|
arrivalTime
|
string | Arrival time of the repair appointment. Format: HH:MM. |
departureDate
|
string | End date of the repair appointment. Format: YYYY-MM-DD. Null until the workshop has planned the appointment. |
departureTime
|
string | End time of the repair appointment. Format: HH:MM. Null until the workshop has planned the appointment. |
repairTypes
|
array | Repairs the booking was requested for, with their specifications. |
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. |
openingHours
|
array | Opening hours of the location on the arrival date. Only returned for truck wash and repair. |
Example
Response 401
No response body - No bearer token set verify if your token is added as bearer tokenResponse 403
No response body - You don't have access to this API resourceResponse 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