Skip to main content

List Work Orders

GET 

https://secure.fleetio.com/api/v2/work_orders

Returns a list of work orders.

Request

Query Parameters

    start_cursor string

    The start cursor for Keyset pagination.

    per_page integer

    Possible values: >= 2 and <= 100

    The number of records per page to return

    Default value: 50
    filter object

    The fields, operations, and values to filter the records by.

    contact_id object
    eqstringrequired
    created_by_id object
    eqstringrequired
    issued_by_id object
    eqstringrequired
    vehicle_id object
    eqstringrequired
    vendor_id object
    eqstringrequired
    vmrs_repair_priority_class_id object
    eqstringrequired
    purchase_order_number object
    oneOf
    likestringrequired
    invoice_number object
    oneOf
    likestringrequired
    number object
    eqstringrequired
    labels object
    includestringrequired
    work_order_status_name object
    includestringrequired
    created_at object
    oneOf
    ltstringrequired
    updated_at object
    oneOf
    ltstringrequired
    sort object

    The fields and direction to sort the results by.

    created_atSortAscDesc (string)

    Possible values: [asc, desc]

    updated_atSortAscDesc (string)

    Possible values: [asc, desc]

    idSortAscDescDefaultDesc (string)

    Possible values: [asc, desc]

    Default value: desc

Responses

OK

Schema
    start_cursorstringnullable

    The current start cursor of the records returned.

    next_cursorstringnullable

    The next cursor to retrieve the next page of records.

    per_pageinteger

    The maxumum number of records returned.

    estimated_remaining_countinteger

    The number of remaining records including the returned records, up to a maximum of 500.

    filtered_by object[]

    The filters applied to the returned record set.

  • Array [
  • anyOf
    contact_id object
    eqstringrequired
  • ]
  • sorted_by object[]

    The sorts applied to the returned record set.

  • Array [
  • anyOf
    created_atSortAscDesc (string)

    Possible values: [asc, desc]

  • ]
  • records object[]
  • Array [
  • idintegerrequired
    numberstringrequired

    The unique number of this Work Order.

    completed_atdate-timenullablerequired

    The date and time at which the Work Order was completed.

    Example: 2023-03-14T13:46:27-06:00
    descriptionstringnullablerequired

    A description of this Work Order.

    ending_meter_same_as_startbooleanrequired

    Indicates whether or not the ending meter is the same as the starting meter.

    duration_in_secondsintegernullablerequired

    The number of seconds elapsed between beginning this Work Order and completing it.

    invoice_numberstringnullablerequired

    The number of the Invoice associated with this Work Order.

    created_by_idintegerrequired

    The id of the User who created this Work Order.

    statestringrequired

    Indicates whether this Work Order is currently active or has already been completed.

    Possible values: [active, completed]

    issued_atdate-timerequired

    The date and time at which the Work Order was issued.

    Example: 2023-03-14T13:46:27-06:00
    issued_by_idintegernullablerequired

    The id of the issuer of this Work Order.

    contact_idintegernullablerequired

    The id of the Contact assigned to this Work Order.

    purchase_order_numberstringnullablerequired

    The purchase order number for this Work Order.

    scheduled_atdate-timenullablerequired

    The date and time at which the Work Order was scheduled.

    Example: 2023-03-14T13:46:27-06:00
    started_atdate-timenullablerequired

    The date and time at which the Work Order was started.

    Example: 2023-03-14T13:46:27-06:00
    expected_completed_atdate-timenullablerequired

    The date and time at which the Work Order is expected to be completed.

    Example: 2023-03-14T13:46:27-06:00
    vehicle_idintegerrequired

    The id of the Vehicle associated with this Work Order.

    work_order_status_idintegerrequired

    The id of the WorkOrderStatus for this Work Order.

    work_order_status_colorstringnullable

    The color of the Work Order Status for this Work Order.

    work_order_status_namestringrequired

    The name of the Work Order Status for this Work Order.

    documents_countintegerrequired

    The count of associated documents.

    images_countintegerrequired

    The count of the associated images.

    comments_countintegerrequired

    The count of associated comments.

    created_atdate-timerequired

    The date and time at which the Work Order was created.

    Example: 2023-03-14T13:46:27-06:00
    updated_atdate-timerequired

    The date and time at which the Work Order was last updated.

    Example: 2023-03-14T13:46:27-06:00
    labor_time_in_secondsintegernullable

    The sum, in seconds, of the duration of all labor line items of a completed Work Order.

    attachment_permissions objectnullable
    read_photosboolean

    Indicates whether the user has read permission for photos.

    manage_photosboolean

    Indicates whether the user has permission to manage (eg. upload, delete) photos.

    read_documentsboolean

    Indicates whether the user has read permission for documents.

    manage_documentsboolean

    Indicates whether the user has permission to manage (eg. upload, delete) documents.

    custom_fieldsobjectnullable

    *Full details on working with Custom Fields here.

    contact objectnullablerequired

    A Contact

    idintegerrequired
    emailstringnullable

    The Contact's email address.

    namestringnullablerequired

    The Contact's full name.

    group_idintegernullable

    If this Contact belongs to a Group, this will be the Fleetio ID of that Group.

    default_image_urlstringnullablerequired

    The URL of the Contact's default image/profile photo, if any.

    vehicle objectrequired

    A Vehicle

    idintegerrequired
    namestringrequired

    This vehicle's name.

    colorstringnullable

    The color of this Vehicle.

    license_platestringnullable

    The license plate number of this Vehicle.

    vinstringnullable

    The Vehicle Identification Number of this Vehicle.

    yearstringnullable

    This Vehicle's model year.

    makestringnullable

    The name of this Vehicle's manufacturer.

    modelstringnullable

    The name of the model of this Vehicle.

    trimstringnullable

    The trim level of this Vehicle.

    registration_expiration_monthintegernullable

    The month in which this Vehicle's registration expires.

    Possible values: >= 0 and <= 12

    registration_statestringnullable

    The state, province, or territory in which this Vehicle is registered.

    default_image_url_smallstringnullable

    The URL of a small-sized version of the default image for this Vehicle.

    vendor objectnullablerequired

    A Vendor

    namestringrequired

    The name of the Vendor.

    phonestringnullablerequired

    The phone number of the Vendor.

    citystringnullablerequired

    The city of the Vendor.

    regionstringnullablerequired

    The region, state, province, or territory of the Vendor.

    postal_codestringnullablerequired

    The postal code or ZIP code of the Vendor.

    countrystringnullablerequired

    The country of the Vendor.

    external_idstringnullablerequired

    The external identifier of the Vendor.

  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
curl -L 'https://secure.fleetio.com/api/v2/work_orders' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— query
— query
— query
contact_ideq
created_by_ideq
issued_by_ideq
vehicle_ideq
vendor_ideq
vmrs_repair_priority_class_ideq
purchase_order_number
invoice_number
numbereq
labelsinclude
work_order_status_nameinclude
created_at
updated_at
— query
created_at
updated_at
id
ResponseClear

Click the Send API Request button above and see the response here!