Booking API
Get truck charging booking instructions
Returns the driver instructions of a truck charging booking, identified by the hash from the instructions link. No authentication is required.
Endpoint
GET - https://api.travisroadservices.com/api/v1/bookings/truckcharging/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 bodyResponse body
Response 200
Booking resource
Fields
| Field | Type | Description |
|---|---|---|
arrivalTime
|
string | Expected arrival time at the charging location. Format: HH:MM. |
departureDate
|
string | Expected departure date from the charging location. Format: YYYY-MM-DD. |
departureTime
|
string | Expected departure time from the charging location. Format: HH:MM. |
instructions
|
string | Driver instructions for the charging location, in the requested language. |
providerReservationNumber
|
string | Reservation number assigned by the charging provider. |
bayType
|
object | Bay type reserved for the truck charging session. |
id
|
string (uuid) | Unique identifier of the bay type. |
capacity
|
integer | Maximum charging capacity of the bay in kW. |
supply
|
string | Power supply type of the bay. |
connectorSide
|
string | Side of the vehicle the connector is on. |
size
|
string | Size category of the bay. |
access
|
string | Access type of the bay. |
bayNumber
|
string | Number of the bay assigned by the charging provider. |
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 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