Create Work Order
Changed onCreates a new work order.
Request
- Base URLhttps://secure.fleetio.com/api
- AuthAPI key in header Authorization and API key in header Account-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"issued_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00",
"completed_at": "2023-03-14T13:46:27-06:00",
"label_list": "High Priority",
"meter_entry_attributes": {
"value": 108043
},
"secondary_meter_entry_attributes": {
"value": 108043
},
"starting_meter_entry_attributes": {
"value": 108043
},
"ending_meter_entry_attributes": {
"value": 108043
},
"starting_secondary_meter_entry_attributes": {
"value": 108043
},
"ending_secondary_meter_entry_attributes": {
"value": 108043
}
}Response
OK
Example response
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"completed_at": "2023-03-14T13:46:27-06:00",
"issued_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00",
"expected_completed_at": "2023-03-14T13:46:27-06:00",
"work_order_sub_line_items": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"contact": {
"group_hierarchy": "Group 1|Group 2|Group 3",
"birth_date": "2023-03-14",
"street_address": "123 Main St",
"street_address_line_2": "Apt 1",
"license_expiration": "2023-03-14"
},
"labor_time_entries": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"ended_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00"
}
]
}
],
"scheduled_at": "2023-03-14T13:46:27-06:00",
"work_order_line_items": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"work_order_sub_line_items": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"contact": {
"group_hierarchy": "Group 1|Group 2|Group 3",
"birth_date": "2023-03-14",
"street_address": "123 Main St",
"street_address_line_2": "Apt 1",
"license_expiration": "2023-03-14"
},
"labor_time_entries": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"ended_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00"
}
]
}
],
"subtotal": 1.23,
"labor_cost": 1.23,
"parts_cost": 1.23
}
],
"labor_time_entries": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"ended_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00"
}
],
"meter_entry": {
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"date": "2023-03-14"
},
"starting_meter_entry": {
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"date": "2023-03-14"
},
"ending_meter_entry": {
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"date": "2023-03-14"
},
"secondary_meter_entry": {
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"date": "2023-03-14"
},
"starting_secondary_meter_entry": {
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"date": "2023-03-14"
},
"ending_secondary_meter_entry": {
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"date": "2023-03-14"
},
"discount_percentage": 1.23,
"discount": 1.23,
"parts_subtotal": 1.23,
"labor_subtotal": 1.23,
"subtotal": 1.23,
"tax_1_percentage": 1.23,
"tax_2_percentage": 1.23,
"tax_1": 1.23,
"tax_2": 1.23,
"parts_markup": 1.23,
"parts_markup_percentage": 1.23,
"labor_markup": 1.23,
"labor_markup_percentage": 1.23,
"total_amount": 1.23,
"comments": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00"
}
],
"images": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00"
}
],
"documents": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00"
}
]
}Changes
- warning
the
//request property's maxLength was set to100000 - warning
the
request property's maxLength was set to100000 - warning
the
//request property's maxLength was set to100000 - warning
the
////request property's maxLength was set to100000 - warning
the
////request property's maxLength was set to100000 - warning
the
////request property's maxLength was set to100000 - warning
the
//request property's maxLength was set to100000 - info
added the new optional request property
- info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added to the
////response propertyanyOflist for the response status - info
added to the
//response propertyanyOflist for the response status
- warning
- info
added the optional property
//////////to the response with the status - info
added the optional property
////////to the response with the status
- info