Vehicle API

/v1/vehicles - POST

The following values specify a vehicle within the travis system. ## Request body | Field | Description | | ------- | --------| | licensePlate | Communicated to service partners to identify vehicles for a specific booking. | | fleetNumber | Allow for filtering or display options of your entire fleet. | | vehicleType | Determines the type of vehicle. eg. truck, semi-trailer, Bulk rigid truck. This field is used for validation and guidance and can be retrieved via /v1/vehicle_types. | | isDefaultVehicle | Used for single driver users to determine their preferred vehicle for booking. | | vehicleDepot | Ensures that costs booked on this vehicle are invoiced to a specific vehicle depot and invoice entity. |


Open Swagger Specification

Endpoint

    POST - https://api.travisroadservices.com/v1/vehicles
    Copy
  

Request body

Response body

Response 201

Response 400

No response body

Response 422


{
    "type": "https://tools.ietf.org/html/rfc2616#section-10",
    "title": "An error occurred",
    "detail": "vehicleType: This value should not be blank.",
    "violations": [
        {
            "propertyPath": "vehicleType",
            "message": "This value should not be blank.",
            "code": "c1051bb4-d103-4f74-8988-acbcafc7fdc3"
        }
    ]
}