Create Work Order
This endpoint is deprecated and will be removed in a future version. Please use the new v2 endpoint instead.
Creates a new Work Order
- application/json
Request Body
- issued_at date-time required
The date and time at which this Work Order was issued. We recommend using ISO-8601 formatted dates to avoid ambiguity.
- started_at date-time
The date and time at which this Work Order was started. We recommend using ISO-8601 formatted dates to avoid ambiguity.
- completed_at date-time
The date and time at which this Work Order was completed. We recommend using ISO-8601 formatted dates to avoid ambiguity.
- work_order_status_id integer required
Possible values:
>= 1
- work_order_status_name string
The name of the
Work Order Status
associated with this Work Order. - invoice_number string
Possible values:
<= 255 characters
The number of the
Invoice
associated with this Work Order. - vendor_id integer
Possible values:
>= 1
- vendor_name string
Possible values:
<= 255 characters
The name of the
Vendor
associated with this Work Order. - vehicle_id integer required
Possible values:
>= 1
- vehicle_name string
Possible values:
<= 255 characters
The name of the
Vehicle
associated with this Work Order. - discount_type string
Possible values: [
percentage
,amount
]The type of discount applied to this Work Order.
- discount float
The discount amount in decimal currency units applied to this Work Order.
- discount_percentage float
The percentage of the discount applied to this Work Order. Used if
discount_type
is set topercentage
. - tax_1_percentage float
The percentage of the first tax applied to this Work Order. Used if
tax_1_type
is set topercentage
. - tax_1_type string
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of tax to apply to this record.
- tax_1 float
The amount of the first tax applied to this Work Order. Used if
tax_1_type
is set toamount
. - tax_2_percentage float
The percentage of the second tax applied to this Work Order. Used if
tax_2_type
is set topercentage
. - tax_2_type string
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of tax to apply to this record.
- tax_2 float
The amount of the second tax applied to this Work Order. Used if
tax_2_type
is set toamount
. - issued_by_id integer
Possible values:
>= 1
- contact_id integer
Possible values:
>= 1
- label_list string
Possible values:
<= 255 characters
A comma separated list of tags associated with this record. The only delimiter allowed is a comma (
,
). Please remove any commas from your labels before saving the record. - purchase_order_number string
The number of the
Purchase Order
associated with this Work Order. - description string
A description of this Work Order.
- number integer
The number to be applied to this Work Order. Must be unique.
meter_entry_attributes object
A Work Order may also be associated with a Meter Entry.
value floatThe value is the actual number on the meter that increments over time. The unit is determined by the configured
meter_unit
on the associated Vehicle.void booleanIf you attempt to save a meter value, which is too high or too low, Fleetio's validation rules will reject it. If you need to bypass this validation, you may mark an entry as void.
secondary_meter_entry_attributes object
A Work Order may also be associated with a secondary Meter Entry.
value floatThe value is the actual number on the meter that increments over time. The unit is determined by the configured
meter_unit
on the associated Vehicle.void booleanIf you attempt to save a meter value, which is too high or too low, Fleetio's validation rules will reject it. If you need to bypass this validation, you may mark an entry as void.
- custom_fields object
*Full details on working with Custom Fields here.
- ending_meter_same_as_start boolean
Use start meter for completion meter?
- vmrs_repair_priority_class_id integer
Possible values:
>= 1
- 201
- 401
- 403
- 422
- 500
OK
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- id integer
Possible values:
>= 1
- created_at date-time
The date and time at which this record was created.
- updated_at date-time
The date and time at which this record was most recently updated.
- account_id integer
Possible values:
>= 1
- number integer
The unique number of this Work Order.
- completed_at date-time
The date and time at which the Work Order was completed.
- expected_completed_at date-time
The date and time at which the Work Order is expected to be completed.
- description string
A description of this Work Order.
- ending_meter_same_as_start boolean
Indicates whether or not the ending meter is the same as the starting meter.
- duration_in_seconds integer
The number of seconds elapsed between beginning this Work Order and completing it.
- invoice_number string
The number of the
Invoice
associated with this Work Order. - state string
Possible values: [
active
,completed
]Indicates whether this Work Order is currently active or has already been completed.
- issued_at date-time
The date and time at which the Work Order was issued.
- issued_by_id NullableId
Possible values:
>= 1
- contact_id NullableId
Possible values:
>= 1
- purchase_order_number string
The number of any
Purchase Order
associated with this Work Order. - started_at date-time
The date and time at which the Work Order was started.
- work_order_type_id NullableId
Possible values:
>= 1
- vehicle_archived_at date-time
The date and time at which the
Vehicle
associated with this Work Order was archived, if applicable. - send_email_notification_to_assignee boolean
Indicates whether an email notification should be sent to the assignee of this Work Order.
- scheduled_at date-time
The date and time at which the Work Order was scheduled.
- vehicle_id integer
Possible values:
>= 1
- vendor_id NullableId
Possible values:
>= 1
- work_order_status_id integer
Possible values:
>= 1
- custom_fields object
*Full details on working with Custom Fields here.
- is_sample boolean
Indicates whether this Work Order is sample data.
- created_by_id NullableId
Possible values:
>= 1
- vmrs_repair_priority_class_id NullableId
Possible values:
>= 1
- label_list string[]
Possible values:
<= 255 characters
A list of tags associated with this record.
- fees_cents integer
The sum of subtotals for any line items of the type
ServiceEntryFeeLineItem
. - tax_free_labor boolean
Indicates whether or not to include labor subtotals in tax calculations.
- currency string
Default value:
USD
The currency code used for monetary values in this Work Order.
- labor_subtotal_cents integer
The total cost of labor in cents.
- parts_subtotal_cents integer
The total cost of parts in cents.
- subtotal_cents integer
The pre-tax subtotal amount in cents.
- comments_count integer
The number of
Comments
on this Work Order. - documents_count integer
The number of documents attached to this Work Order.
- images_count integer
The number of images attached to this Work Order.
- watchers_count integer
The count of watchers associated with the record.
- watchable_options object
Options related to watching the record.
- bulk_watch_record boolean
Indicates if a bulk watch record is created.
- skip_automatic_watchers_callbacks boolean
Indicates if automatic watchers callbacks are skipped.
- total_amount_cents integer
The total amount in cents.
- tax_1_type string
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of tax to apply to this record.
- tax_1_percentage string
The primary tax percentage amount. This field should be present when
tax_1_type
is set topercentage
. - tax_1_cents integer
The primary tax amount in cents.
- tax_2_type string
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of tax to apply to this record.
- tax_2_percentage string
The secondary tax percentage amount. This field should be present when
tax_2_type
is set topercentage
. Note that this secondary tax must be configured in your Account Settings. - tax_2_cents integer
The secondary tax amount in cents.
- discount_type DiscountType
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of discount applied to this record.
- discount_percentage string
The discount percentage. This field should be present when
discount_type
is set topercentage
. - discount_cents integer
The discount amount in cents.
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"number": 0,
"completed_at": "2023-03-14T13:46:27-06:00",
"expected_completed_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"ending_meter_same_as_start": true,
"duration_in_seconds": 0,
"invoice_number": "string",
"state": "active",
"issued_at": "2023-03-14T13:46:27-06:00",
"issued_by_id": 0,
"contact_id": 0,
"purchase_order_number": "string",
"started_at": "2023-03-14T13:46:27-06:00",
"work_order_type_id": 0,
"vehicle_archived_at": "2023-03-14T13:46:27-06:00",
"send_email_notification_to_assignee": true,
"scheduled_at": "2023-03-14T13:46:27-06:00",
"vehicle_id": 0,
"vendor_id": 0,
"work_order_status_id": 0,
"custom_fields": {},
"is_sample": true,
"created_by_id": 0,
"vmrs_repair_priority_class_id": 0,
"label_list": [
"High Priority"
],
"fees_cents": 0,
"tax_free_labor": true,
"currency": "USD",
"labor_subtotal_cents": 0,
"parts_subtotal_cents": 0,
"subtotal_cents": 0,
"comments_count": 0,
"documents_count": 0,
"images_count": 0,
"watchers_count": 0,
"watchable_options": {},
"bulk_watch_record": true,
"skip_automatic_watchers_callbacks": true,
"total_amount_cents": 0,
"tax_1_type": "percentage",
"tax_1_percentage": "string",
"tax_1_cents": 123,
"tax_2_type": "percentage",
"tax_2_percentage": "string",
"tax_2_cents": 0,
"discount_type": "percentage",
"discount_percentage": "1.23",
"discount_cents": 0
}
Request could not be authenticated
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Insufficient permission to perform this operation
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Unprocessable Entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
errors object
typeitems string
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}