# Fleetio

> Manage fleet vehicles, issues, work orders, fuel and meter readings, and inspections.

App · 34 actions. Web page: https://docs.lodol.com/docs/integrations/fleetio

## Actions

### Add comment

Add a comment to a vehicle, issue, work order, service entry, fuel entry, contact or vendor.

**Inputs**

- Record type (`commentable_type`, text, required): 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_id`, number, required): The ID of the record the comment is on.
- Comment (`comment`, text, required): The comment.
- Title (`title`, text): A title for the comment.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The issue's ID.
- Note (`note`, text, required): Why the issue is closed.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_name`, text, required): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Email (`email`, text): The contact's email address.
- Mobile phone (`mobile_phone_number`, text): The contact's mobile phone number.
- Job title (`job_title`, text): The contact's job title.
- Employee number (`employee_number`, text): The contact's employee number, unique.
- Group (`group_id`, number): The group the contact belongs to.
- Vehicle operator (`vehicle_operator`, true/false): Whether the contact drives vehicles and can be assigned one.
- Technician (`technician`, true/false): Whether the contact works on vehicles.
- Employee (`employee`, true/false): Whether the contact is an employee.
- License number (`license_number`, text): The contact's driver's license number.
- License expiration (`license_expiration`, date): When the contact's driver's license expires.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The vehicle that was filled up.
- Date (`date`, date and time, required): When the fill-up happened.
- Meter reading (`meter_value`, number, required): The vehicle's meter reading at the fill-up.
- US gallons (`us_gallons`, number): How much fuel, in US gallons, for a vehicle measured in US gallons. At least 0.
- Liters (`liters`, number): How much fuel, in liters, for a vehicle measured in liters. At least 0.
- UK gallons (`uk_gallons`, number): How much fuel, in UK gallons, for a vehicle measured in UK gallons. At least 0.
- Price per unit (`price_per_volume_unit`, number): The price per gallon or liter. At least 0.
- Vendor (`vendor_id`, number): The fuel station or vendor.
- Reference (`reference`, text): A reference, such as the receipt or transaction number.
- Partial fill-up (`partial`, true/false): Whether the tank wasn't filled up all the way.
- Personal (`personal`, true/false): Whether the fuel was for personal use.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The vehicle with the problem.
- Summary (`summary`, text, required): A short summary of the problem.
- Description (`description`, text): A longer description of the problem.
- Priority (`issue_priority_id`, number): How urgent the issue is.
- Reported by (`reported_by_id`, number): The contact who reported the issue.
- Due (`due_date`, date and time): When it should be resolved by.
- Due at meter reading (`due_meter_value`, number): The meter reading it should be resolved by.
- Reported at (`reported_at`, date and time): When the problem was reported. Now, when left empty.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The vehicle that was read.
- Reading (`value`, number, required): The reading. It must be higher than earlier readings. At least 0.
- Date (`date`, date and time, required): When the reading was taken.
- Meter (`meter_type`, text): Choose Secondary for a vehicle's second meter, such as an hour meter on a truck. One of: `secondary`.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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 (`name`, text, required): The vehicle's name, unique in the account (often a unit number).
- Vehicle type (`vehicle_type_id`, number, required): The kind of vehicle, such as Car or Truck.
- Status (`vehicle_status_id`, number, required): The vehicle's status, such as Active or Out of Service.
- Meter unit (`primary_meter_unit`, text, required): What the vehicle's main meter counts. One of: `mi` (Miles), `km` (Kilometers), `hr` (Hours).
- Make (`make`, text): The manufacturer, such as Ford.
- Model (`model`, text): The model, such as F-150.
- Year (`year`, number): The model year. From 1900 to 2100.
- Trim (`trim`, text): The trim level.
- VIN (`vin`, text): The vehicle identification number, unique.
- License plate (`license_plate`, text): The license plate number.
- Color (`color`, text): The vehicle's color.
- Registration state (`registration_state`, text): The state, province or territory it is registered in.
- Ownership (`ownership`, text): How the fleet holds the vehicle. One of: `owned`, `leased`, `rented`, `customer`, `financed`, `rent_to_own` (Rent to own).
- Group (`group_id`, number): The group (such as a region or department) it belongs to.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The vehicle the work is on.
- Status (`work_order_status_id`, number, required): The work order's status, such as Open or Completed.
- Issued at (`issued_at`, date and time): When the work order was issued. Now, when left empty.
- Description (`description`, text): What the work is.
- Scheduled at (`scheduled_at`, date and time): When the work is scheduled.
- Started at (`started_at`, date and time): When the work started.
- Expected completion (`expected_completed_at`, date and time): When the work should be done.
- Completed at (`completed_at`, date and time): When the work was done.
- Vendor (`vendor_id`, number): The shop or vendor doing the work.
- Assigned to (`contact_id`, number): The contact the work order is assigned to.
- Purchase order number (`purchase_order_number`, text): A purchase order number for the work.
- Invoice number (`invoice_number`, text): The vendor's invoice number.
- Issue IDs (`issue_ids`, list): IDs of the vehicle's open issues this work order fixes.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The contact's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "data": {}
}
```

### Delete issue

Delete an issue for good.

**Inputs**

- Issue (`issue_id`, number, required): The issue's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "data": {}
}
```

### Delete vehicle

Delete a vehicle and its records for good.

**Inputs**

- Vehicle (`vehicle_id`, number, required): The vehicle to delete.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "data": {}
}
```

### Delete work order

Delete a work order for good.

**Inputs**

- Work order (`work_order_id`, number, required): The work order's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "data": {}
}
```

### Get contact

Get one contact with their phone numbers, address, license and roles.

**Inputs**

- Contact (`contact_id`, number, required): The contact's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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**

- `data` (object): The User who owns the credentials making the request.

**Example output**

```json
{
  "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_id`, number, required): The issue's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The submitted inspection's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The vehicle.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The work order's ID.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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 (`email`, text): Only contacts whose email contains this.
- Last name contains (`last_name`, text): Only contacts whose last name contains this.
- Group (`group_id`, number): Only contacts in this group.
- Updated after (`updated_after`, date and time): Only records changed at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number): Only records for this vehicle.
- Filled up after (`date_after`, date and time): Only fill-ups on or after this time.
- Created after (`created_after`, date and time): Only records added at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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 (`state`, text): Only issues in this state. One of: `open`, `resolved`, `closed`.
- Vehicle (`vehicle_id`, number): Only records for this vehicle.
- Reported after (`reported_after`, date and time): Only issues reported at or after this time.
- Updated after (`updated_after`, date and time): Only records changed at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number): Only records for this vehicle.
- Created after (`created_after`, date and time): Only records added at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number): Only records for this vehicle.
- Status (`status`, text): Only reminders in this state. One of: `overdue`, `due_soon` (Due soon), `ok`, `snoozed`.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number): Only records for this vehicle.
- Inspection form (`inspection_form_id`, number): Only inspections made with this form.
- Submitted after (`submitted_after`, date and time): Only inspections submitted at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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 (`name`, text): Only vehicles whose name contains this.
- License plate contains (`license_plate`, text): Only vehicles whose plate contains this.
- VIN (`vin`, text): Only the vehicle with this VIN.
- Status (`vehicle_status_id`, number): Only vehicles with this status.
- Vehicle type (`vehicle_type_id`, number): Only vehicles of this type.
- Group (`group_id`, number): Only vehicles in this group.
- Updated after (`updated_after`, date and time): Only records changed at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number): Only records for this vehicle.
- Vendor (`vendor_id`, number): Only work orders for this vendor.
- Number (`number`, number): Only the work order with this number.
- Updated after (`updated_after`, date and time): Only records changed at or after this time.
- Order (`order`, text): 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_page`, number): How many records to return, up to 100. Fleetio returns 50 when empty. From 1 to 100.
- Start cursor (`start_cursor`, text): To get the next page, the next cursor from an earlier list.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The issue's ID.
- Note (`note`, text, required): How the issue was resolved.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The contact's ID.
- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Email (`email`, text): The contact's email address.
- Mobile phone (`mobile_phone_number`, text): The contact's mobile phone number.
- Job title (`job_title`, text): The contact's job title.
- Employee number (`employee_number`, text): The contact's employee number, unique.
- Group (`group_id`, number): The group the contact belongs to.
- Vehicle operator (`vehicle_operator`, true/false): Whether the contact drives vehicles and can be assigned one.
- Technician (`technician`, true/false): Whether the contact works on vehicles.
- Employee (`employee`, true/false): Whether the contact is an employee.
- License number (`license_number`, text): The contact's driver's license number.
- License expiration (`license_expiration`, date): When the contact's driver's license expires.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The issue's ID.
- Summary (`summary`, text): A short summary of the problem.
- Description (`description`, text): A longer description of the problem.
- Priority (`issue_priority_id`, number): How urgent the issue is.
- Reported by (`reported_by_id`, number): The contact who reported the issue.
- Due (`due_date`, date and time): When it should be resolved by.
- Due at meter reading (`due_meter_value`, number): The meter reading it should be resolved by.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The vehicle to change.
- Name (`name`, text): The vehicle's name, unique in the account (often a unit number).
- Vehicle type (`vehicle_type_id`, number): The kind of vehicle, such as Car or Truck.
- Status (`vehicle_status_id`, number): The vehicle's status, such as Active or Out of Service.
- Meter unit (`primary_meter_unit`, text): What the vehicle's main meter counts. One of: `mi` (Miles), `km` (Kilometers), `hr` (Hours).
- Make (`make`, text): The manufacturer, such as Ford.
- Model (`model`, text): The model, such as F-150.
- Year (`year`, number): The model year. From 1900 to 2100.
- Trim (`trim`, text): The trim level.
- VIN (`vin`, text): The vehicle identification number, unique.
- License plate (`license_plate`, text): The license plate number.
- Color (`color`, text): The vehicle's color.
- Registration state (`registration_state`, text): The state, province or territory it is registered in.
- Ownership (`ownership`, text): How the fleet holds the vehicle. One of: `owned`, `leased`, `rented`, `customer`, `financed`, `rent_to_own` (Rent to own).
- Group (`group_id`, number): The group (such as a region or department) it belongs to.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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_id`, number, required): The work order's ID.
- Status (`work_order_status_id`, number): The work order's status, such as Open or Completed.
- Issued at (`issued_at`, date and time): When the work order was issued. Now, when left empty.
- Description (`description`, text): What the work is.
- Scheduled at (`scheduled_at`, date and time): When the work is scheduled.
- Started at (`started_at`, date and time): When the work started.
- Expected completion (`expected_completed_at`, date and time): When the work should be done.
- Completed at (`completed_at`, date and time): When the work was done.
- Vendor (`vendor_id`, number): The shop or vendor doing the work.
- Assigned to (`contact_id`, number): The contact the work order is assigned to.
- Purchase order number (`purchase_order_number`, text): A purchase order number for the work.
- Invoice number (`invoice_number`, text): The vendor's invoice number.
- Issue IDs (`issue_ids`, list): IDs of the vehicle's open issues this work order fixes.

**Outputs**

- `data` (object): The response from Fleetio.

**Example output**

```json
{
  "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": [
      {}
    ]
  }
}
```
