Booking API
Get tank cleaning booking instructions
Returns the driver instructions of a tank cleaning booking, identified by the hash from the instructions link. No authentication is required.
Endpoint
GET - https://api.travisroadservices.com/api/v1/bookings/tankcleaning/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 product 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 |
|---|---|---|
isEcdRequested
|
boolean | Indicates whether a European Cleaning Document (ECD) was requested for the booking. |
cargoType
|
string | Type of cargo the tank carried. Possible values: food, feed, chemical, other. |
currentLoad
|
array | Products of the last load the tank carried. |
previousLoad
|
array | Products of the load before the last one. Only filled when an ECD was requested, null otherwise. |
penultimateLoad
|
array | Products of the load two before the last one. Only filled when an ECD was requested, null otherwise. |
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. |
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