Vehicle API - V2

List vehicle depots.

Returns a list of all vehicle depots, including name, invoice entity, and assigned vehicles count.


Open Swagger Specification

Endpoint

    GET - https://api.travisroadservices.com/v2/vehicle_depots
    Copy
  

Query params

Parameter Type Description
search string Searches vehicle depots by depot name or invoice entity.
name string Filters vehicle depots by name.
ids[] string Filters vehicle depots by UUID. Multiple values can be passed to broaden the filter.
order[name] string Sorts results by vehicle depot name. Possible values: asc, desc.
order[invoiceEntity] string Sorts results by invoice entity name. Possible values: asc, desc.
order[assignedVehicles] string Sorts results by the number of assigned vehicles. Possible values: asc, desc.
page string The collection page number
itemsPerPage string The number of items per page

Request body

No request body

Response body

Response 200

VehicleDepotResource collection

Fields

Field Type Description
id object Unique identifier of the vehicle depot.
name string Name of the vehicle depot.
invoiceEntity object Invoice entity to which costs for this depot are billed.
id int Id of the invoice entity
name string Name of the invoice entity
assignedVehiclesCount int Total number of vehicles assigned to this depot.

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