The Vehicle object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
{
"id": "vehicle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"license_plate": "license_plate_example",
"make": "make_example",
"model": "model_example",
"last_odometer": 0,
"acquisition_date": "2024-01-15",
"location": "location_example",
"chassis_no": "chassis_no_example",
"vehicle_value": 0,
"employee": "employee_example",
"insurance_company": "Example Corp",
"policy_no": "policy_no_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"fuel_type": "fuel_type_example",
"uom": "uom_example",
"carbon_check_date": "2024-01-15",
"color": "color_example",
"wheels": 0,
"doors": 0,
"company": "Example Corp"
} /api/setup/vehicle/{id} Retrieve a vehicle
Retrieves the details of an existing vehicle. Supply the unique vehicle ID that was returned from a previous request.
Path parameters
The identifier of the vehicle to retrieve.
Returns
Returns the vehicle object if a valid identifier was provided.
curl https://api.overplane.dev/api/setup/vehicle/vehicle_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "vehicle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"license_plate": "license_plate_example",
"make": "make_example",
"model": "model_example",
"last_odometer": 0,
"acquisition_date": "2024-01-15",
"location": "location_example",
"chassis_no": "chassis_no_example",
"vehicle_value": 0,
"employee": "employee_example",
"insurance_company": "Example Corp",
"policy_no": "policy_no_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"fuel_type": "fuel_type_example",
"uom": "uom_example",
"carbon_check_date": "2024-01-15",
"color": "color_example",
"wheels": 0,
"doors": 0,
"company": "Example Corp"
} /api/setup/vehicle List all vehicles
Returns a list of vehicles. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of vehicle objects.
curl https://api.overplane.dev/api/setup/vehicle \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "vehicle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"license_plate": "license_plate_example",
"make": "make_example",
"model": "model_example",
"last_odometer": 0,
"acquisition_date": "2024-01-15",
"location": "location_example",
"chassis_no": "chassis_no_example",
"vehicle_value": 0,
"employee": "employee_example",
"insurance_company": "Example Corp",
"policy_no": "policy_no_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"fuel_type": "fuel_type_example",
"uom": "uom_example",
"carbon_check_date": "2024-01-15",
"color": "color_example",
"wheels": 0,
"doors": 0,
"company": "Example Corp"
}
],
"has_more": false,
"total": 1
} /api/setup/vehicle Create a vehicle
Creates a new vehicle object.
Body parameters
Returns
Returns the newly created vehicle object if the call succeeded.
curl https://api.overplane.dev/api/setup/vehicle \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"license_plate":"license_plate_example","make":"make_example","model":"model_example","last_odometer":0,"fuel_type":"fuel_type_example","uom":"uom_example"}' {
"id": "vehicle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"license_plate": "license_plate_example",
"make": "make_example",
"model": "model_example",
"last_odometer": 0,
"acquisition_date": "2024-01-15",
"location": "location_example",
"chassis_no": "chassis_no_example",
"vehicle_value": 0,
"employee": "employee_example",
"insurance_company": "Example Corp",
"policy_no": "policy_no_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"fuel_type": "fuel_type_example",
"uom": "uom_example",
"carbon_check_date": "2024-01-15",
"color": "color_example",
"wheels": 0,
"doors": 0,
"company": "Example Corp"
} /api/setup/vehicle/{id} Update a vehicle
Updates the specified vehicle by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the vehicle to update.
Body parameters
Returns
Returns the updated vehicle object.
curl https://api.overplane.dev/api/setup/vehicle/vehicle_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"license_plate":"license_plate_example","make":"make_example"}' {
"id": "vehicle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"license_plate": "license_plate_example",
"make": "make_example",
"model": "model_example",
"last_odometer": 0,
"acquisition_date": "2024-01-15",
"location": "location_example",
"chassis_no": "chassis_no_example",
"vehicle_value": 0,
"employee": "employee_example",
"insurance_company": "Example Corp",
"policy_no": "policy_no_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"fuel_type": "fuel_type_example",
"uom": "uom_example",
"carbon_check_date": "2024-01-15",
"color": "color_example",
"wheels": 0,
"doors": 0,
"company": "Example Corp"
} /api/setup/vehicle/{id} Delete a vehicle
Permanently deletes a vehicle. This cannot be undone.
Path parameters
The identifier of the vehicle to delete.
Returns
Returns a confirmation that the vehicle has been deleted.
curl https://api.overplane.dev/api/setup/vehicle/vehicle_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "vehicle_abc123",
"deleted": true
}