Fleetio
App · 34 actions
Manage fleet vehicles, issues, work orders, fuel and meter readings, and inspections.
Actions
| Action | What it does |
|---|---|
| Add comment | Add a comment to a vehicle, issue, work order, service entry, fuel entry, contact or vendor. |
| Close issue | Close an issue without resolving it, with a note saying why. |
| Create contact | Add a person, such as a driver or technician. |
| Create fuel entry | Record a fill-up for a vehicle, with its odometer reading. |
| Create issue | Report a problem with a vehicle. |
| Create meter entry | Record an odometer or hour meter reading for a vehicle. |
| Create vehicle | Add a vehicle to the fleet. |
| Create work order | Open a work order for maintenance on a vehicle. |
| Delete contact | Delete a contact for good. |
| Delete issue | Delete an issue for good. |
| Delete vehicle | Delete a vehicle and its records for good. |
| Delete work order | Delete a work order for good. |
| Get contact | Get one contact with their phone numbers, address, license and roles. |
| Get current user | Get the Fleetio user the API key acts as. |
| Get issue | Get one issue with its state, priority, vehicle and who reported it. |
| Get submitted inspection | Get one completed inspection with each item's result. |
| Get vehicle | Get one vehicle with its meters, status, assigned driver and specs. |
| Get work order | Get one work order with its status, line items, totals and issues. |
| List contacts | List the account's people: drivers, technicians and other staff. |
| List fuel entries | List fuel purchases, filtered by vehicle, vendor or date. |
| List issues | List reported vehicle problems, filtered by state, vehicle or time. |
| List meter entries | List odometer and hour meter readings, filtered by vehicle. |
| List service reminders | List scheduled maintenance reminders, filtered by vehicle or whether they're due. |
| List submitted inspections | List completed vehicle inspections, filtered by vehicle, form or time. |
| List vehicle statuses | List the statuses a vehicle can have, such as Active or In Shop. |
| List vehicle types | List the kinds of vehicle in the account, such as Car or Truck. |
| List vehicles | List the fleet's vehicles, archived ones left out, filtered by name, plate, VIN, status, type or group. |
| List work order statuses | List the statuses a work order can have, such as Open or Completed. |
| List work orders | List maintenance work orders, filtered by vehicle, vendor, number or time. |
| Resolve issue | Mark an open issue resolved, with a note saying how. |
| Update contact | Change a contact's details. |
| Update issue | Change an issue's summary, description, priority or due date. |
| Update vehicle | Change a vehicle's details. |
| Update work order | Change a work order's status, dates, vendor or notes. |
Add comment
Add a comment to a vehicle, issue, work order, service entry, fuel entry, contact or vendor.
Inputs
- Record type
commentable_typetextRequired - What kind of record the comment is on.One of:
Vehicle,Issue,WorkOrder(Work order),ServiceEntry(Service entry),FuelEntry(Fuel entry),Contact,Vendor. - Record ID
commentable_idnumberRequired - The ID of the record the comment is on.
- Comment
commenttextRequired - The comment.
- Title
titletext - A title for the comment.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"comment": "example",
"commentable_id": 1,
"commentable_type": "Contact",
"created_at": "example",
"html_content": "example",
"id": 1,
"rich_content": {},
"title": "example",
"updated_at": "example",
"user_full_name": "example",
"user_id": 1,
"user_image_url": "example",
"with_mentions": true
}
}Close issue
Close an issue without resolving it, with a note saying why.
Inputs
- Issue
issue_idnumberRequired - The issue's ID.
- Note
notetextRequired - Why the issue is closed.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"asset": {},
"asset_type": "Vehicle",
"attachment_permissions": {},
"closed_at": "example",
"closed_by": {},
"closed_note": "example",
"comments_count": 1,
"created_at": "example",
"creation_type": "manual",
"custom_fields": {},
"description": "example",
"documents_count": 1,
"due_date": "example",
"due_meter_value": 1,
"due_secondary_meter_value": 1,
"fault": {},
"id": 1,
"images_count": 1,
"is_overdue": true,
"issue_priority": {},
"labels": [
{}
],
"number": 1,
"reported_at": "example",
"reported_by": {},
"resolvable": {},
"resolvable_type": "example",
"resolved_at": "example",
"resolved_by": {},
"resolved_note": "example",
"state": "open",
"submitted_inspection_form": {},
"summary": "example",
"updated_at": "example",
"watchers_count": 1
}
}Create contact
Add a person, such as a driver or technician.
Inputs
- First name
first_nametextRequired - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Email
emailtext - The contact's email address.
- Mobile phone
mobile_phone_numbertext - The contact's mobile phone number.
- Job title
job_titletext - The contact's job title.
- Employee number
employee_numbertext - The contact's employee number, unique.
- Group
group_idnumber - The group the contact belongs to.
- Vehicle operator
vehicle_operatortrue/false - Whether the contact drives vehicles and can be assigned one.
- Technician
techniciantrue/false - Whether the contact works on vehicles.
- Employee
employeetrue/false - Whether the contact is an employee.
- License number
license_numbertext - The contact's driver's license number.
- License expiration
license_expirationdate - When the contact's driver's license expires.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"account_membership_id": 1,
"archived_at": "example",
"birth_date": "example",
"city": "example",
"comments_count": 1,
"country": "example",
"created_at": "example",
"custom_fields": {},
"default_image_url": "example",
"documents_count": 1,
"email": "example",
"employee": true,
"employee_number": "example",
"first_name": "example",
"group_id": 1,
"group_name": "example",
"home_phone_number": "example",
"hourly_labor_rate": 1,
"id": 1,
"images_count": 1,
"job_title": "example",
"last_name": "example",
"leave_date": "example",
"license_class": "example",
"license_expiration": "example",
"license_number": "example",
"license_state": "example",
"middle_name": "example",
"mobile_phone_number": "example",
"name": "example",
"other_phone_number": "example",
"postal_code": "example",
"region": "example",
"start_date": "example",
"street_address": "example",
"street_address_line_2": "example",
"technician": true,
"updated_at": "example",
"user": {},
"vehicle_operator": true,
"work_phone_number": "example"
}
}Create fuel entry
Record a fill-up for a vehicle, with its odometer reading.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle that was filled up.
- Date
datedate and timeRequired - When the fill-up happened.
- Meter reading
meter_valuenumberRequired - The vehicle's meter reading at the fill-up.
- US gallons
us_gallonsnumber - How much fuel, in US gallons, for a vehicle measured in US gallons.At least 0.
- Liters
litersnumber - How much fuel, in liters, for a vehicle measured in liters.At least 0.
- UK gallons
uk_gallonsnumber - How much fuel, in UK gallons, for a vehicle measured in UK gallons.At least 0.
- Price per unit
price_per_volume_unitnumber - The price per gallon or liter.At least 0.
- Vendor
vendor_idnumber - The fuel station or vendor.
- Reference
referencetext - A reference, such as the receipt or transaction number.
- Partial fill-up
partialtrue/false - Whether the tank wasn't filled up all the way.
- Personal
personaltrue/false - Whether the fuel was for personal use.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"cost_per_hr": 1,
"cost_per_km": 1,
"cost_per_mi": 1,
"created_at": "example",
"created_by": {},
"custom_fields": {},
"date": "example",
"documents": [
{}
],
"documents_count": 1,
"external_id": "example",
"fuel_economy_for_current_user": "example",
"fuel_economy_units_for_current_user": "example",
"fuel_type_id": 1,
"fuel_type_name": "example",
"geolocation": {},
"id": 1,
"images": [
{}
],
"images_count": 1,
"is_sample": true,
"kpl": 1,
"liters": "example",
"liters_per_hr": 1,
"lp100k": 1,
"map_previews": {},
"meter_entry": {},
"mpg_uk": 1,
"mpg_us": 1,
"partial": true,
"personal": true,
"price_per_volume_unit": 1,
"raw_transaction_data": {},
"reference": "example",
"region": "example",
"reset": true,
"total_amount": 1,
"uk_gallons": "example",
"uk_gallons_per_hr": 1,
"updated_at": "example",
"us_gallons": "example",
"us_gallons_per_hr": 1,
"usage_in_hr": "example",
"usage_in_km": "example",
"usage_in_mi": "example",
"vehicle_id": 1,
"vehicle_name": "example",
"vendor_id": 1,
"vendor_name": "example"
}
}Create issue
Report a problem with a vehicle.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle with the problem.
- Summary
summarytextRequired - A short summary of the problem.
- Description
descriptiontext - A longer description of the problem.
- Priority
issue_priority_idnumber - How urgent the issue is.
- Reported by
reported_by_idnumber - The contact who reported the issue.
- Due
due_datedate and time - When it should be resolved by.
- Due at meter reading
due_meter_valuenumber - The meter reading it should be resolved by.
- Reported at
reported_atdate and time - When the problem was reported. Now, when left empty.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"asset": {},
"asset_type": "Vehicle",
"attachment_permissions": {},
"closed_at": "example",
"closed_by": {},
"closed_note": "example",
"comments_count": 1,
"created_at": "example",
"creation_type": "manual",
"custom_fields": {},
"description": "example",
"documents_count": 1,
"due_date": "example",
"due_meter_value": 1,
"due_secondary_meter_value": 1,
"fault": {},
"id": 1,
"images_count": 1,
"is_overdue": true,
"issue_priority": {},
"labels": [
{}
],
"number": 1,
"reported_at": "example",
"reported_by": {},
"resolvable": {},
"resolvable_type": "example",
"resolved_at": "example",
"resolved_by": {},
"resolved_note": "example",
"state": "open",
"submitted_inspection_form": {},
"summary": "example",
"updated_at": "example",
"watchers_count": 1
}
}Create meter entry
Record an odometer or hour meter reading for a vehicle.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle that was read.
- Reading
valuenumberRequired - The reading. It must be higher than earlier readings.At least 0.
- Date
datedate and timeRequired - When the reading was taken.
- Meter
meter_typetext - Choose Secondary for a vehicle's second meter, such as an hour meter on a truck.One of:
secondary.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"auto_voided_at": "example",
"category": "example",
"created_at": "example",
"date": "example",
"gps_provider": {},
"id": 1,
"meter_type": "example",
"meterable_id": 1,
"meterable_type": "example",
"type": "example",
"updated_at": "example",
"value": "example",
"vehicle_id": 1,
"void": true
}
}Create vehicle
Add a vehicle to the fleet.
Inputs
- Name
nametextRequired - The vehicle's name, unique in the account (often a unit number).
- Vehicle type
vehicle_type_idnumberRequired - The kind of vehicle, such as Car or Truck.
- Status
vehicle_status_idnumberRequired - The vehicle's status, such as Active or Out of Service.
- Meter unit
primary_meter_unittextRequired - What the vehicle's main meter counts.One of:
mi(Miles),km(Kilometers),hr(Hours). - Make
maketext - The manufacturer, such as Ford.
- Model
modeltext - The model, such as F-150.
- Year
yearnumber - The model year.From 1900 to 2100.
- Trim
trimtext - The trim level.
- VIN
vintext - The vehicle identification number, unique.
- License plate
license_platetext - The license plate number.
- Color
colortext - The vehicle's color.
- Registration state
registration_statetext - The state, province or territory it is registered in.
- Ownership
ownershiptext - How the fleet holds the vehicle.One of:
owned,leased,rented,customer,financed,rent_to_own(Rent to own). - Group
group_idnumber - The group (such as a region or department) it belongs to.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"account_id": 1,
"ai_enabled": true,
"archived_at": "example",
"assetable_type": "Vehicle",
"axle_config_id": 1,
"color": "example",
"comments_count": 1,
"current_location_entry": {},
"current_location_entry_id": 1,
"custom_fields": {},
"default_image_url": "example",
"default_image_url_large": "example",
"default_image_url_medium": "example",
"default_image_url_small": "example",
"documents_count": 1,
"driver": {},
"estimated_replacement_mileage": "example",
"estimated_resale_price_cents": 1,
"estimated_service_months": 1,
"external_ids": {},
"fuel_entries_count": 1,
"fuel_type_id": 1,
"fuel_type_name": "example",
"fuel_volume_units": "us_gallons",
"group_ancestry": "example",
"group_id": 1,
"group_name": "example",
"id": 1,
"images_count": 1,
"in_service_date": "example",
"in_service_meter_value": "example",
"inspection_schedules_count": 1,
"is_sample": true,
"issues_count": 1,
"job_assignment": {},
"labels": [
{}
],
"license_plate": "example",
"loan_account_number": "example",
"loan_ended_at": "example",
"loan_interest_rate": 1,
"loan_notes": "example",
"loan_started_at": "example",
"loan_vendor_id": 1,
"loan_vendor_name": "example",
"make": "example",
"meter_name": "example",
"model": "example",
"name": "example",
"out_of_service_date": "example",
"out_of_service_meter_value": "example",
"ownership": "owned",
"primary_meter_date": "example",
"primary_meter_unit": "example",
"primary_meter_usage_per_day": "example",
"primary_meter_value": "example",
"registration_expiration_month": 1,
"registration_state": "example",
"secondary_meter_date": "example",
"secondary_meter_name": "example",
"secondary_meter_unit": "example",
"secondary_meter_usage_per_day": "example",
"secondary_meter_value": "example",
"service_entries_count": 1,
"service_reminders_count": 1,
"specs": {},
"system_of_measurement": "imperial",
"trim": "example",
"vehicle_renewal_reminders_count": 1,
"vehicle_status_color": "example",
"vehicle_status_id": 1,
"vehicle_status_name": "example",
"vehicle_type_id": 1,
"vehicle_type_name": "example",
"vin": "example",
"work_orders_count": 1,
"year": 1
}
}Create work order
Open a work order for maintenance on a vehicle.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle the work is on.
- Status
work_order_status_idnumberRequired - The work order's status, such as Open or Completed.
- Issued at
issued_atdate and time - When the work order was issued. Now, when left empty.
- Description
descriptiontext - What the work is.
- Scheduled at
scheduled_atdate and time - When the work is scheduled.
- Started at
started_atdate and time - When the work started.
- Expected completion
expected_completed_atdate and time - When the work should be done.
- Completed at
completed_atdate and time - When the work was done.
- Vendor
vendor_idnumber - The shop or vendor doing the work.
- Assigned to
contact_idnumber - The contact the work order is assigned to.
- Purchase order number
purchase_order_numbertext - A purchase order number for the work.
- Invoice number
invoice_numbertext - The vendor's invoice number.
- Issue IDs
issue_idslist - IDs of the vehicle's open issues this work order fixes.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"completed_at": "example",
"contact_id": 1,
"contact_image_url": "example",
"contact_name": "example",
"created_at": "example",
"created_by_id": 1,
"custom_fields": {},
"description": "example",
"discount": 1,
"discount_percentage": 1,
"discount_type": "example",
"documents": [
{}
],
"documents_count": 1,
"duration_in_seconds": 1,
"ending_meter_entry": {},
"ending_meter_same_as_start": true,
"ending_secondary_meter_entry": {},
"expected_completed_at": "example",
"id": 1,
"images": [
{}
],
"images_count": 1,
"invoice_number": "example",
"is_watched": true,
"issued_at": "example",
"issued_by_id": 1,
"issued_by_name": "example",
"issues": [
{}
],
"labels": [
{}
],
"labor_markup": 1,
"labor_markup_percentage": 1,
"labor_markup_type": "fixed",
"labor_subtotal": 1,
"labor_time_entries": [
{}
],
"labor_time_in_seconds": 1,
"meter_entry": {},
"number": "example",
"parts_markup": 1,
"parts_markup_percentage": 1,
"parts_markup_type": "fixed",
"parts_subtotal": 1,
"purchase_order_number": "example",
"scheduled_at": "example",
"secondary_meter_entry": {},
"started_at": "example",
"starting_meter_entry": {},
"starting_secondary_meter_entry": {},
"state": "active",
"subtotal": 1,
"tax_1": 1,
"tax_1_percentage": 1,
"tax_1_type": "example",
"tax_2": 1,
"tax_2_percentage": 1,
"tax_2_type": "example",
"total_amount": 1,
"updated_at": "example",
"vehicle_company_asset_number": "example",
"vehicle_id": 1,
"vehicle_name": "example",
"vendor_id": 1,
"vendor_name": "example",
"vmrs_repair_priority_class": {},
"watchers_count": 1,
"work_order_line_items": [
{}
],
"work_order_status_color": "example",
"work_order_status_id": 1,
"work_order_status_name": "example",
"work_order_sub_line_items": [
{}
]
}
}Delete contact
Delete a contact for good.
Inputs
- Contact
contact_idnumberRequired - The contact's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {}
}Delete issue
Delete an issue for good.
Inputs
- Issue
issue_idnumberRequired - The issue's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {}
}Delete vehicle
Delete a vehicle and its records for good.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle to delete.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {}
}Delete work order
Delete a work order for good.
Inputs
- Work order
work_order_idnumberRequired - The work order's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {}
}Get contact
Get one contact with their phone numbers, address, license and roles.
Inputs
- Contact
contact_idnumberRequired - The contact's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"account_membership_id": 1,
"archived_at": "example",
"birth_date": "example",
"city": "example",
"comments_count": 1,
"country": "example",
"created_at": "example",
"custom_fields": {},
"default_image_url": "example",
"documents_count": 1,
"email": "example",
"employee": true,
"employee_number": "example",
"first_name": "example",
"group_id": 1,
"group_name": "example",
"home_phone_number": "example",
"hourly_labor_rate": 1,
"id": 1,
"images_count": 1,
"job_title": "example",
"last_name": "example",
"leave_date": "example",
"license_class": "example",
"license_expiration": "example",
"license_number": "example",
"license_state": "example",
"middle_name": "example",
"mobile_phone_number": "example",
"name": "example",
"other_phone_number": "example",
"postal_code": "example",
"region": "example",
"start_date": "example",
"street_address": "example",
"street_address_line_2": "example",
"technician": true,
"updated_at": "example",
"user": {},
"vehicle_operator": true,
"work_phone_number": "example"
}
}Get current user
Get the Fleetio user the API key acts as.
Inputs
None.
Outputs
dataobject- The User who owns the credentials making the request.
Example output
{
"data": {
"confirmed_at": "example",
"contact_id": 1,
"created_at": "example",
"default_image_url": "example",
"email": "example",
"first_name": "example",
"fuel_economy_units": "mpg_us",
"has_multiple_accounts": true,
"id": 1,
"last_name": "example",
"technician": true,
"time_zone_name": "example",
"time_zone_offset_in_seconds": 1,
"unconfirmed_email": "example",
"updated_at": "example",
"username": "example"
}
}Get issue
Get one issue with its state, priority, vehicle and who reported it.
Inputs
- Issue
issue_idnumberRequired - The issue's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"asset": {},
"asset_type": "Vehicle",
"attachment_permissions": {},
"closed_at": "example",
"closed_by": {},
"closed_note": "example",
"comments_count": 1,
"created_at": "example",
"creation_type": "manual",
"custom_fields": {},
"description": "example",
"documents_count": 1,
"due_date": "example",
"due_meter_value": 1,
"due_secondary_meter_value": 1,
"fault": {},
"id": 1,
"images_count": 1,
"is_overdue": true,
"issue_priority": {},
"labels": [
{}
],
"number": 1,
"reported_at": "example",
"reported_by": {},
"resolvable": {},
"resolvable_type": "example",
"resolved_at": "example",
"resolved_by": {},
"resolved_note": "example",
"state": "open",
"submitted_inspection_form": {},
"summary": "example",
"updated_at": "example",
"watchers_count": 1
}
}Get submitted inspection
Get one completed inspection with each item's result.
Inputs
- Submitted inspection
submitted_inspection_form_idnumberRequired - The submitted inspection's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"comments_count": 1,
"contact_id": 1,
"date": "example",
"duration": "example",
"failed_items": 1,
"id": 1,
"images_count": 1,
"inspection_form": {},
"started_at": "example",
"starting_latitude": 1,
"starting_longitude": 1,
"submitted_at": "example",
"submitted_inspection_items": [
{}
],
"submitted_latitude": 1,
"submitted_longitude": 1,
"user": "example",
"vehicle_id": 1,
"work_order": {}
}
}Get vehicle
Get one vehicle with its meters, status, assigned driver and specs.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"account_id": 1,
"ai_enabled": true,
"archived_at": "example",
"assetable_type": "Vehicle",
"axle_config_id": 1,
"color": "example",
"comments_count": 1,
"current_location_entry": {},
"current_location_entry_id": 1,
"custom_fields": {},
"default_image_url": "example",
"default_image_url_large": "example",
"default_image_url_medium": "example",
"default_image_url_small": "example",
"documents_count": 1,
"driver": {},
"estimated_replacement_mileage": "example",
"estimated_resale_price_cents": 1,
"estimated_service_months": 1,
"external_ids": {},
"fuel_entries_count": 1,
"fuel_type_id": 1,
"fuel_type_name": "example",
"fuel_volume_units": "us_gallons",
"group_ancestry": "example",
"group_id": 1,
"group_name": "example",
"id": 1,
"images_count": 1,
"in_service_date": "example",
"in_service_meter_value": "example",
"inspection_schedules_count": 1,
"is_sample": true,
"issues_count": 1,
"job_assignment": {},
"labels": [
{}
],
"license_plate": "example",
"loan_account_number": "example",
"loan_ended_at": "example",
"loan_interest_rate": 1,
"loan_notes": "example",
"loan_started_at": "example",
"loan_vendor_id": 1,
"loan_vendor_name": "example",
"make": "example",
"meter_name": "example",
"model": "example",
"name": "example",
"out_of_service_date": "example",
"out_of_service_meter_value": "example",
"ownership": "owned",
"primary_meter_date": "example",
"primary_meter_unit": "example",
"primary_meter_usage_per_day": "example",
"primary_meter_value": "example",
"registration_expiration_month": 1,
"registration_state": "example",
"secondary_meter_date": "example",
"secondary_meter_name": "example",
"secondary_meter_unit": "example",
"secondary_meter_usage_per_day": "example",
"secondary_meter_value": "example",
"service_entries_count": 1,
"service_reminders_count": 1,
"specs": {},
"system_of_measurement": "imperial",
"trim": "example",
"vehicle_renewal_reminders_count": 1,
"vehicle_status_color": "example",
"vehicle_status_id": 1,
"vehicle_status_name": "example",
"vehicle_type_id": 1,
"vehicle_type_name": "example",
"vin": "example",
"work_orders_count": 1,
"year": 1
}
}Get work order
Get one work order with its status, line items, totals and issues.
Inputs
- Work order
work_order_idnumberRequired - The work order's ID.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"completed_at": "example",
"contact_id": 1,
"contact_image_url": "example",
"contact_name": "example",
"created_at": "example",
"created_by_id": 1,
"custom_fields": {},
"description": "example",
"discount": 1,
"discount_percentage": 1,
"discount_type": "example",
"documents": [
{}
],
"documents_count": 1,
"duration_in_seconds": 1,
"ending_meter_entry": {},
"ending_meter_same_as_start": true,
"ending_secondary_meter_entry": {},
"expected_completed_at": "example",
"id": 1,
"images": [
{}
],
"images_count": 1,
"invoice_number": "example",
"is_watched": true,
"issued_at": "example",
"issued_by_id": 1,
"issued_by_name": "example",
"issues": [
{}
],
"labels": [
{}
],
"labor_markup": 1,
"labor_markup_percentage": 1,
"labor_markup_type": "fixed",
"labor_subtotal": 1,
"labor_time_entries": [
{}
],
"labor_time_in_seconds": 1,
"meter_entry": {},
"number": "example",
"parts_markup": 1,
"parts_markup_percentage": 1,
"parts_markup_type": "fixed",
"parts_subtotal": 1,
"purchase_order_number": "example",
"scheduled_at": "example",
"secondary_meter_entry": {},
"started_at": "example",
"starting_meter_entry": {},
"starting_secondary_meter_entry": {},
"state": "active",
"subtotal": 1,
"tax_1": 1,
"tax_1_percentage": 1,
"tax_1_type": "example",
"tax_2": 1,
"tax_2_percentage": 1,
"tax_2_type": "example",
"total_amount": 1,
"updated_at": "example",
"vehicle_company_asset_number": "example",
"vehicle_id": 1,
"vehicle_name": "example",
"vendor_id": 1,
"vendor_name": "example",
"vmrs_repair_priority_class": {},
"watchers_count": 1,
"work_order_line_items": [
{}
],
"work_order_status_color": "example",
"work_order_status_id": 1,
"work_order_status_name": "example",
"work_order_sub_line_items": [
{}
]
}
}List contacts
List the account's people: drivers, technicians and other staff.
Inputs
- Email contains
emailtext - Only contacts whose email contains this.
- Last name contains
last_nametext - Only contacts whose last name contains this.
- Group
group_idnumber - Only contacts in this group.
- Updated after
updated_afterdate and time - Only records changed at or after this time.
- Order
ordertext - The order to return records in.One of:
created_at:desc(Newest first),created_at:asc(Oldest first),updated_at:desc(Recently updated first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"account_membership_id": 1,
"archived_at": "example",
"birth_date": "example",
"city": "example",
"comments_count": 1,
"country": "example",
"created_at": "example",
"custom_fields": {},
"default_image_url": "example",
"documents_count": 1,
"email": "example",
"employee": true,
"employee_number": "example",
"first_name": "example",
"group_id": 1,
"group_name": "example",
"home_phone_number": "example",
"hourly_labor_rate": 1,
"id": 1,
"images_count": 1,
"job_title": "example",
"last_name": "example",
"leave_date": "example",
"license_class": "example",
"license_expiration": "example",
"license_number": "example",
"license_state": "example",
"middle_name": "example",
"mobile_phone_number": "example",
"name": "example",
"other_phone_number": "example",
"postal_code": "example",
"region": "example",
"start_date": "example",
"street_address": "example",
"street_address_line_2": "example",
"technician": true,
"updated_at": "example",
"user": {},
"vehicle_operator": true,
"work_phone_number": "example"
}
],
"start_cursor": "example"
}
}List fuel entries
List fuel purchases, filtered by vehicle, vendor or date.
Inputs
- Vehicle
vehicle_idnumber - Only records for this vehicle.
- Filled up after
date_afterdate and time - Only fill-ups on or after this time.
- Created after
created_afterdate and time - Only records added at or after this time.
- Order
ordertext - The order to return records in.One of:
date:desc(Most recent date first),date:asc(Oldest date first),created_at:desc(Newest first),updated_at:desc(Recently updated first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"cost_per_hr": 1,
"cost_per_km": 1,
"cost_per_mi": 1,
"created_at": "example",
"created_by": {},
"custom_fields": {},
"date": "example",
"documents": [
{}
],
"documents_count": 1,
"external_id": "example",
"fuel_economy_for_current_user": "example",
"fuel_economy_units_for_current_user": "example",
"fuel_type_id": 1,
"fuel_type_name": "example",
"geolocation": {},
"id": 1,
"images": [
{}
],
"images_count": 1,
"is_sample": true,
"kpl": 1,
"liters": "example",
"liters_per_hr": 1,
"lp100k": 1,
"map_previews": {},
"meter_entry": {},
"mpg_uk": 1,
"mpg_us": 1,
"partial": true,
"personal": true,
"price_per_volume_unit": 1,
"raw_transaction_data": {},
"reference": "example",
"region": "example",
"reset": true,
"total_amount": 1,
"uk_gallons": "example",
"uk_gallons_per_hr": 1,
"updated_at": "example",
"us_gallons": "example",
"us_gallons_per_hr": 1,
"usage_in_hr": "example",
"usage_in_km": "example",
"usage_in_mi": "example",
"vehicle_id": 1,
"vehicle_name": "example",
"vendor_id": 1,
"vendor_name": "example"
}
],
"start_cursor": "example"
}
}List issues
List reported vehicle problems, filtered by state, vehicle or time.
Inputs
- State
statetext - Only issues in this state.One of:
open,resolved,closed. - Vehicle
vehicle_idnumber - Only records for this vehicle.
- Reported after
reported_afterdate and time - Only issues reported at or after this time.
- Updated after
updated_afterdate and time - Only records changed at or after this time.
- Order
ordertext - The order to return records in.One of:
created_at:desc(Newest first),created_at:asc(Oldest first),updated_at:desc(Recently updated first),reported_at:desc(Most recently reported first),due_date:asc(Due soonest first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"asset": {},
"asset_type": "Vehicle",
"attachment_permissions": {},
"closed_at": "example",
"closed_by": {},
"closed_note": "example",
"comments_count": 1,
"created_at": "example",
"creation_type": "manual",
"custom_fields": {},
"description": "example",
"documents_count": 1,
"due_date": "example",
"due_meter_value": 1,
"due_secondary_meter_value": 1,
"fault": {},
"id": 1,
"images_count": 1,
"is_overdue": true,
"issue_priority": {},
"labels": [
{}
],
"number": 1,
"reported_at": "example",
"reported_by": {},
"resolvable": {},
"resolvable_type": "example",
"resolved_at": "example",
"resolved_by": {},
"resolved_note": "example",
"state": "open",
"submitted_inspection_form": {},
"summary": "example",
"updated_at": "example",
"watchers_count": 1
}
],
"start_cursor": "example"
}
}List meter entries
List odometer and hour meter readings, filtered by vehicle.
Inputs
- Vehicle
vehicle_idnumber - Only records for this vehicle.
- Created after
created_afterdate and time - Only records added at or after this time.
- Order
ordertext - The order to return records in.One of:
date:desc(Most recent date first),date:asc(Oldest date first),created_at:desc(Newest first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"auto_voided_at": "example",
"category": "example",
"created_at": "example",
"date": "example",
"gps_provider": {},
"id": 1,
"meter_type": "example",
"meterable_id": 1,
"meterable_type": "example",
"type": "example",
"updated_at": "example",
"value": "example",
"vehicle_id": 1,
"void": true
}
],
"start_cursor": "example"
}
}List service reminders
List scheduled maintenance reminders, filtered by vehicle or whether they're due.
Inputs
- Vehicle
vehicle_idnumber - Only records for this vehicle.
- Status
statustext - Only reminders in this state.One of:
overdue,due_soon(Due soon),ok,snoozed. - Order
ordertext - The order to return records in.One of:
next_due_at:asc(Next due first),created_at:desc(Newest first),updated_at:desc(Recently updated first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"active": true,
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"created_at": "example",
"due_soon_at": "example",
"due_soon_meter_threshold": "example",
"due_soon_meter_value": "example",
"due_soon_secondary_meter_threshold": "example",
"due_soon_secondary_meter_value": "example",
"due_soon_time_threshold_frequency": "example",
"due_soon_time_threshold_interval": 1,
"forecasted_due_soon_at": "example",
"forecasted_next_due_at": "example",
"forecasted_primary_due_soon_at": "example",
"forecasted_primary_next_due_at": "example",
"forecasted_secondary_due_soon_at": "example",
"forecasted_secondary_next_due_at": "example",
"id": 1,
"incomplete_work_orders": [
{}
],
"is_watched": true,
"latest_occurrence": {},
"meter_interval": "example",
"meter_remaining_until_due": 1,
"next_due_at": "example",
"next_due_meter_value": "example",
"next_due_secondary_meter_value": "example",
"secondary_meter": true,
"secondary_meter_interval": "example",
"secondary_meter_remaining_until_due": 1,
"service_program_line_item": {},
"service_reminder_status_name": "example",
"service_task_description": "example",
"service_task_id": 1,
"service_task_name": "example",
"service_task_subtasks": [
{}
],
"snooze_until": "example",
"starting_interval": true,
"starting_meter_interval": "example",
"starting_secondary_meter_interval": "example",
"starting_time_frequency": "example",
"starting_time_interval": 1,
"time_frequency": "example",
"time_interval": 1,
"updated_at": "example",
"users": [
{}
],
"vehicle_archived_at": "example",
"vehicle_id": 1,
"vehicle_meter_unit": "mi",
"vehicle_secondary_meter_unit": "example",
"watchers_count": 1
}
],
"start_cursor": "example"
}
}List submitted inspections
List completed vehicle inspections, filtered by vehicle, form or time.
Inputs
- Vehicle
vehicle_idnumber - Only records for this vehicle.
- Inspection form
inspection_form_idnumber - Only inspections made with this form.
- Submitted after
submitted_afterdate and time - Only inspections submitted at or after this time.
- Order
ordertext - The order to return records in.One of:
submitted_at:desc(Most recently submitted first),created_at:desc(Newest first),created_at:asc(Oldest first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"comments_count": 1,
"contact_id": 1,
"date": "example",
"duration": "example",
"failed_items": 1,
"id": 1,
"images_count": 1,
"inspection_form": {},
"started_at": "example",
"starting_latitude": 1,
"starting_longitude": 1,
"submitted_at": "example",
"submitted_inspection_items": [
{}
],
"submitted_latitude": 1,
"submitted_longitude": 1,
"user": "example",
"vehicle_id": 1,
"work_order": {}
}
],
"start_cursor": "example"
}
}List vehicle statuses
List the statuses a vehicle can have, such as Active or In Shop.
Inputs
- Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"account_id": 1,
"color": "example",
"created_at": "example",
"default": true,
"id": 1,
"name": "example",
"position": 1,
"updated_at": "example"
}
],
"start_cursor": "example"
}
}List vehicle types
List the kinds of vehicle in the account, such as Car or Truck.
Inputs
- Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"account_id": 1,
"created_at": "example",
"default": true,
"id": 1,
"name": "example",
"unarchived_vehicles_count": 1,
"updated_at": "example",
"vehicles_count": 1
}
],
"start_cursor": "example"
}
}List vehicles
List the fleet's vehicles, archived ones left out, filtered by name, plate, VIN, status, type or group.
Inputs
- Name contains
nametext - Only vehicles whose name contains this.
- License plate contains
license_platetext - Only vehicles whose plate contains this.
- VIN
vintext - Only the vehicle with this VIN.
- Status
vehicle_status_idnumber - Only vehicles with this status.
- Vehicle type
vehicle_type_idnumber - Only vehicles of this type.
- Group
group_idnumber - Only vehicles in this group.
- Updated after
updated_afterdate and time - Only records changed at or after this time.
- Order
ordertext - The order to return records in.One of:
created_at:desc(Newest first),created_at:asc(Oldest first),updated_at:desc(Recently updated first),name:asc(Name, A to Z). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"account_id": 1,
"ai_enabled": true,
"archived_at": "example",
"assetable_type": "Vehicle",
"axle_config_id": 1,
"color": "example",
"comments_count": 1,
"current_location_entry": {},
"current_location_entry_id": 1,
"custom_fields": {},
"default_image_url": "example",
"default_image_url_large": "example",
"default_image_url_medium": "example",
"default_image_url_small": "example",
"documents_count": 1,
"driver": {},
"estimated_replacement_mileage": "example",
"estimated_resale_price_cents": 1,
"estimated_service_months": 1,
"external_ids": {},
"fuel_entries_count": 1,
"fuel_type_id": 1,
"fuel_type_name": "example",
"fuel_volume_units": "us_gallons",
"group_ancestry": "example",
"group_id": 1,
"group_name": "example",
"id": 1,
"images_count": 1,
"in_service_date": "example",
"in_service_meter_value": "example",
"inspection_schedules_count": 1,
"is_sample": true,
"issues_count": 1,
"job_assignment": {},
"labels": [
{}
],
"license_plate": "example",
"loan_account_number": "example",
"loan_ended_at": "example",
"loan_interest_rate": 1,
"loan_notes": "example",
"loan_started_at": "example",
"loan_vendor_id": 1,
"loan_vendor_name": "example",
"make": "example",
"meter_name": "example",
"model": "example",
"name": "example",
"out_of_service_date": "example",
"out_of_service_meter_value": "example",
"ownership": "owned",
"primary_meter_date": "example",
"primary_meter_unit": "example",
"primary_meter_usage_per_day": "example",
"primary_meter_value": "example",
"registration_expiration_month": 1,
"registration_state": "example",
"secondary_meter_date": "example",
"secondary_meter_name": "example",
"secondary_meter_unit": "example",
"secondary_meter_usage_per_day": "example",
"secondary_meter_value": "example",
"service_entries_count": 1,
"service_reminders_count": 1,
"specs": {},
"system_of_measurement": "imperial",
"trim": "example",
"vehicle_renewal_reminders_count": 1,
"vehicle_status_color": "example",
"vehicle_status_id": 1,
"vehicle_status_name": "example",
"vehicle_type_id": 1,
"vehicle_type_name": "example",
"vin": "example",
"work_orders_count": 1,
"year": 1
}
],
"start_cursor": "example"
}
}List work order statuses
List the statuses a work order can have, such as Open or Completed.
Inputs
- Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"account_id": 1,
"color": "example",
"completed": true,
"created_at": "example",
"default": true,
"description": "example",
"id": 1,
"name": "example",
"position": 1,
"updated_at": "example",
"work_orders_count": 1
}
],
"start_cursor": "example"
}
}List work orders
List maintenance work orders, filtered by vehicle, vendor, number or time.
Inputs
- Vehicle
vehicle_idnumber - Only records for this vehicle.
- Vendor
vendor_idnumber - Only work orders for this vendor.
- Number
numbernumber - Only the work order with this number.
- Updated after
updated_afterdate and time - Only records changed at or after this time.
- Order
ordertext - The order to return records in.One of:
created_at:desc(Newest first),created_at:asc(Oldest first),updated_at:desc(Recently updated first). - Limit
per_pagenumber - How many records to return, up to 100. Fleetio returns 50 when empty.From 1 to 100.
- Start cursor
start_cursortext - To get the next page, the next cursor from an earlier list.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"estimated_remaining_count": 1,
"next_cursor": "example",
"per_page": 1,
"records": [
{
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"completed_at": "example",
"contact_id": 1,
"contact_image_url": "example",
"contact_name": "example",
"created_at": "example",
"created_by_id": 1,
"custom_fields": {},
"description": "example",
"discount": 1,
"discount_percentage": 1,
"discount_type": "example",
"documents": [
{}
],
"documents_count": 1,
"duration_in_seconds": 1,
"ending_meter_entry": {},
"ending_meter_same_as_start": true,
"ending_secondary_meter_entry": {},
"expected_completed_at": "example",
"id": 1,
"images": [
{}
],
"images_count": 1,
"invoice_number": "example",
"is_watched": true,
"issued_at": "example",
"issued_by_id": 1,
"issued_by_name": "example",
"issues": [
{}
],
"labels": [
{}
],
"labor_markup": 1,
"labor_markup_percentage": 1,
"labor_markup_type": "fixed",
"labor_subtotal": 1,
"labor_time_entries": [
{}
],
"labor_time_in_seconds": 1,
"meter_entry": {},
"number": "example",
"parts_markup": 1,
"parts_markup_percentage": 1,
"parts_markup_type": "fixed",
"parts_subtotal": 1,
"purchase_order_number": "example",
"scheduled_at": "example",
"secondary_meter_entry": {},
"started_at": "example",
"starting_meter_entry": {},
"starting_secondary_meter_entry": {},
"state": "active",
"subtotal": 1,
"tax_1": 1,
"tax_1_percentage": 1,
"tax_1_type": "example",
"tax_2": 1,
"tax_2_percentage": 1,
"tax_2_type": "example",
"total_amount": 1,
"updated_at": "example",
"vehicle_company_asset_number": "example",
"vehicle_id": 1,
"vehicle_name": "example",
"vendor_id": 1,
"vendor_name": "example",
"vmrs_repair_priority_class": {},
"watchers_count": 1,
"work_order_line_items": [
{}
],
"work_order_status_color": "example",
"work_order_status_id": 1,
"work_order_status_name": "example",
"work_order_sub_line_items": [
{}
]
}
],
"start_cursor": "example"
}
}Resolve issue
Mark an open issue resolved, with a note saying how.
Inputs
- Issue
issue_idnumberRequired - The issue's ID.
- Note
notetextRequired - How the issue was resolved.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"asset": {},
"asset_type": "Vehicle",
"attachment_permissions": {},
"closed_at": "example",
"closed_by": {},
"closed_note": "example",
"comments_count": 1,
"created_at": "example",
"creation_type": "manual",
"custom_fields": {},
"description": "example",
"documents_count": 1,
"due_date": "example",
"due_meter_value": 1,
"due_secondary_meter_value": 1,
"fault": {},
"id": 1,
"images_count": 1,
"is_overdue": true,
"issue_priority": {},
"labels": [
{}
],
"number": 1,
"reported_at": "example",
"reported_by": {},
"resolvable": {},
"resolvable_type": "example",
"resolved_at": "example",
"resolved_by": {},
"resolved_note": "example",
"state": "open",
"submitted_inspection_form": {},
"summary": "example",
"updated_at": "example",
"watchers_count": 1
}
}Update contact
Change a contact's details. Fields left empty keep their value.
Inputs
- Contact
contact_idnumberRequired - The contact's ID.
- First name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Email
emailtext - The contact's email address.
- Mobile phone
mobile_phone_numbertext - The contact's mobile phone number.
- Job title
job_titletext - The contact's job title.
- Employee number
employee_numbertext - The contact's employee number, unique.
- Group
group_idnumber - The group the contact belongs to.
- Vehicle operator
vehicle_operatortrue/false - Whether the contact drives vehicles and can be assigned one.
- Technician
techniciantrue/false - Whether the contact works on vehicles.
- Employee
employeetrue/false - Whether the contact is an employee.
- License number
license_numbertext - The contact's driver's license number.
- License expiration
license_expirationdate - When the contact's driver's license expires.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"account_membership_id": 1,
"archived_at": "example",
"birth_date": "example",
"city": "example",
"comments_count": 1,
"country": "example",
"created_at": "example",
"custom_fields": {},
"default_image_url": "example",
"documents_count": 1,
"email": "example",
"employee": true,
"employee_number": "example",
"first_name": "example",
"group_id": 1,
"group_name": "example",
"home_phone_number": "example",
"hourly_labor_rate": 1,
"id": 1,
"images_count": 1,
"job_title": "example",
"last_name": "example",
"leave_date": "example",
"license_class": "example",
"license_expiration": "example",
"license_number": "example",
"license_state": "example",
"middle_name": "example",
"mobile_phone_number": "example",
"name": "example",
"other_phone_number": "example",
"postal_code": "example",
"region": "example",
"start_date": "example",
"street_address": "example",
"street_address_line_2": "example",
"technician": true,
"updated_at": "example",
"user": {},
"vehicle_operator": true,
"work_phone_number": "example"
}
}Update issue
Change an issue's summary, description, priority or due date.
Inputs
- Issue
issue_idnumberRequired - The issue's ID.
- Summary
summarytext - A short summary of the problem.
- Description
descriptiontext - A longer description of the problem.
- Priority
issue_priority_idnumber - How urgent the issue is.
- Reported by
reported_by_idnumber - The contact who reported the issue.
- Due
due_datedate and time - When it should be resolved by.
- Due at meter reading
due_meter_valuenumber - The meter reading it should be resolved by.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"asset": {},
"asset_type": "Vehicle",
"attachment_permissions": {},
"closed_at": "example",
"closed_by": {},
"closed_note": "example",
"comments_count": 1,
"created_at": "example",
"creation_type": "manual",
"custom_fields": {},
"description": "example",
"documents_count": 1,
"due_date": "example",
"due_meter_value": 1,
"due_secondary_meter_value": 1,
"fault": {},
"id": 1,
"images_count": 1,
"is_overdue": true,
"issue_priority": {},
"labels": [
{}
],
"number": 1,
"reported_at": "example",
"reported_by": {},
"resolvable": {},
"resolvable_type": "example",
"resolved_at": "example",
"resolved_by": {},
"resolved_note": "example",
"state": "open",
"submitted_inspection_form": {},
"summary": "example",
"updated_at": "example",
"watchers_count": 1
}
}Update vehicle
Change a vehicle's details. Fields left empty keep their value.
Inputs
- Vehicle
vehicle_idnumberRequired - The vehicle to change.
- Name
nametext - The vehicle's name, unique in the account (often a unit number).
- Vehicle type
vehicle_type_idnumber - The kind of vehicle, such as Car or Truck.
- Status
vehicle_status_idnumber - The vehicle's status, such as Active or Out of Service.
- Meter unit
primary_meter_unittext - What the vehicle's main meter counts.One of:
mi(Miles),km(Kilometers),hr(Hours). - Make
maketext - The manufacturer, such as Ford.
- Model
modeltext - The model, such as F-150.
- Year
yearnumber - The model year.From 1900 to 2100.
- Trim
trimtext - The trim level.
- VIN
vintext - The vehicle identification number, unique.
- License plate
license_platetext - The license plate number.
- Color
colortext - The vehicle's color.
- Registration state
registration_statetext - The state, province or territory it is registered in.
- Ownership
ownershiptext - How the fleet holds the vehicle.One of:
owned,leased,rented,customer,financed,rent_to_own(Rent to own). - Group
group_idnumber - The group (such as a region or department) it belongs to.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"account_id": 1,
"ai_enabled": true,
"archived_at": "example",
"assetable_type": "Vehicle",
"axle_config_id": 1,
"color": "example",
"comments_count": 1,
"current_location_entry": {},
"current_location_entry_id": 1,
"custom_fields": {},
"default_image_url": "example",
"default_image_url_large": "example",
"default_image_url_medium": "example",
"default_image_url_small": "example",
"documents_count": 1,
"driver": {},
"estimated_replacement_mileage": "example",
"estimated_resale_price_cents": 1,
"estimated_service_months": 1,
"external_ids": {},
"fuel_entries_count": 1,
"fuel_type_id": 1,
"fuel_type_name": "example",
"fuel_volume_units": "us_gallons",
"group_ancestry": "example",
"group_id": 1,
"group_name": "example",
"id": 1,
"images_count": 1,
"in_service_date": "example",
"in_service_meter_value": "example",
"inspection_schedules_count": 1,
"is_sample": true,
"issues_count": 1,
"job_assignment": {},
"labels": [
{}
],
"license_plate": "example",
"loan_account_number": "example",
"loan_ended_at": "example",
"loan_interest_rate": 1,
"loan_notes": "example",
"loan_started_at": "example",
"loan_vendor_id": 1,
"loan_vendor_name": "example",
"make": "example",
"meter_name": "example",
"model": "example",
"name": "example",
"out_of_service_date": "example",
"out_of_service_meter_value": "example",
"ownership": "owned",
"primary_meter_date": "example",
"primary_meter_unit": "example",
"primary_meter_usage_per_day": "example",
"primary_meter_value": "example",
"registration_expiration_month": 1,
"registration_state": "example",
"secondary_meter_date": "example",
"secondary_meter_name": "example",
"secondary_meter_unit": "example",
"secondary_meter_usage_per_day": "example",
"secondary_meter_value": "example",
"service_entries_count": 1,
"service_reminders_count": 1,
"specs": {},
"system_of_measurement": "imperial",
"trim": "example",
"vehicle_renewal_reminders_count": 1,
"vehicle_status_color": "example",
"vehicle_status_id": 1,
"vehicle_status_name": "example",
"vehicle_type_id": 1,
"vehicle_type_name": "example",
"vin": "example",
"work_orders_count": 1,
"year": 1
}
}Update work order
Change a work order's status, dates, vendor or notes. Fields left empty keep their value.
Inputs
- Work order
work_order_idnumberRequired - The work order's ID.
- Status
work_order_status_idnumber - The work order's status, such as Open or Completed.
- Issued at
issued_atdate and time - When the work order was issued. Now, when left empty.
- Description
descriptiontext - What the work is.
- Scheduled at
scheduled_atdate and time - When the work is scheduled.
- Started at
started_atdate and time - When the work started.
- Expected completion
expected_completed_atdate and time - When the work should be done.
- Completed at
completed_atdate and time - When the work was done.
- Vendor
vendor_idnumber - The shop or vendor doing the work.
- Assigned to
contact_idnumber - The contact the work order is assigned to.
- Purchase order number
purchase_order_numbertext - A purchase order number for the work.
- Invoice number
invoice_numbertext - The vendor's invoice number.
- Issue IDs
issue_idslist - IDs of the vehicle's open issues this work order fixes.
Outputs
dataobject- The response from Fleetio.
Example output
{
"data": {
"attachment_permissions": {},
"comments": [
{}
],
"comments_count": 1,
"completed_at": "example",
"contact_id": 1,
"contact_image_url": "example",
"contact_name": "example",
"created_at": "example",
"created_by_id": 1,
"custom_fields": {},
"description": "example",
"discount": 1,
"discount_percentage": 1,
"discount_type": "example",
"documents": [
{}
],
"documents_count": 1,
"duration_in_seconds": 1,
"ending_meter_entry": {},
"ending_meter_same_as_start": true,
"ending_secondary_meter_entry": {},
"expected_completed_at": "example",
"id": 1,
"images": [
{}
],
"images_count": 1,
"invoice_number": "example",
"is_watched": true,
"issued_at": "example",
"issued_by_id": 1,
"issued_by_name": "example",
"issues": [
{}
],
"labels": [
{}
],
"labor_markup": 1,
"labor_markup_percentage": 1,
"labor_markup_type": "fixed",
"labor_subtotal": 1,
"labor_time_entries": [
{}
],
"labor_time_in_seconds": 1,
"meter_entry": {},
"number": "example",
"parts_markup": 1,
"parts_markup_percentage": 1,
"parts_markup_type": "fixed",
"parts_subtotal": 1,
"purchase_order_number": "example",
"scheduled_at": "example",
"secondary_meter_entry": {},
"started_at": "example",
"starting_meter_entry": {},
"starting_secondary_meter_entry": {},
"state": "active",
"subtotal": 1,
"tax_1": 1,
"tax_1_percentage": 1,
"tax_1_type": "example",
"tax_2": 1,
"tax_2_percentage": 1,
"tax_2_type": "example",
"total_amount": 1,
"updated_at": "example",
"vehicle_company_asset_number": "example",
"vehicle_id": 1,
"vehicle_name": "example",
"vendor_id": 1,
"vendor_name": "example",
"vmrs_repair_priority_class": {},
"watchers_count": 1,
"work_order_line_items": [
{}
],
"work_order_status_color": "example",
"work_order_status_id": 1,
"work_order_status_name": "example",
"work_order_sub_line_items": [
{}
]
}
}