Vehicles

Retrieve all vehicles

get

Retrieve vehicles for a company

Authorizations
Query parameters
per_pageintegerOptional

limit of records per page

Example: 10
pageintegerOptional

page number

Example: 2
typestringOptional

This parameter is used to filter by vehicle type.(Light-Duty Passenger Car, Light-Duty Passenger Truck,Electric Passenger Car,Heavy-Duty Truck (Semi),Specialty,Forklift,Trailer,Airplane,Recreational Vehicle,Excavator,Non-EPA Recognized Passenger Vehicle,Other)

Example: Light-Duty Passenger Car
modelstringOptional

This field is used to filter by vehicle model. (LIKE)

Example: Hay
sort_bystringOptional

This parameter is used to sort the records by a specific field (model,year,quantity,created_at,name_branch)

Example: year
sort_dirstringOptional

Order type(asc or desc)

Example: asc
Responses
200

Successful operation

application/json
get
/vehicles

Store a vehicle

post

Store a vehicle for a company

Authorizations
Body

create vehicles request body data

typeanyRequired

type of the Vehicle

Example: Heavy-Duty Truck (Semi)
modelanyRequired

model of the Vehicle

Example: Mr. Rolando Hayes DDS
makeanyRequired

make of the Vehicle

Example: est
quantitystringRequired

quantity of the Vehicle

Example: 2019
yearintegerOptional

year of the Vehicle

Example: 6509
Responses
200

Successful operation

application/json
post
/vehicles

Get vehicle

get

obtain information about a vehicle

Authorizations
Path parameters
idstringRequired

Id of the vehicle

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
get
/vehicles/{id}

Put vehicle

put

updated vehicle

Authorizations
Path parameters
idstringRequired

Id of the vehicle

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Body

updated vehicles request body data

typeanyRequired

type of the Vehicle

Example: Heavy-Duty Truck (Semi)
modelanyRequired

model of the Vehicle

Example: Mr. Rolando Hayes DDS
makeanyRequired

make of the Vehicle

Example: est
quantitystringRequired

quantity of the Vehicle

Example: 2019
yearintegerOptional

year of the Vehicle

Example: 6509
Responses
200

Successful operation

application/json
put
/vehicles/{id}

Delete vehicle

delete

remove vehicle

Authorizations
Path parameters
idstringRequired

Id of the vehicle

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
delete
/vehicles/{id}