Create Service Entry Line Item
POSThttps://secure.fleetio.com/api/v2/service_entries/:service_entry_id/service_entry_line_items
Creates a new Service Entry Line Item
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the associated Service Entry
- application/json
Body
Denotes the type of the ServiceEntryLineItem
Possible values: [ServiceEntryServiceTaskLineItem
, ServiceEntryLaborLineItem
, ServiceEntryPartLineItem
, ServiceEntryTaxLineItem
, ServiceEntryFeeLineItem
, ServiceEntryTireLineItem
, ServiceEntryFreeTextLineItem
]
Possible values: >= 1
A description of the service performed for this line item.
IDs of any Issues
this line item is linked to.
Possible values: >= 1
The cost of labor for this line item.
The cost of Parts
for this line item.
Ignored if labor_cost
and parts_cost
is present.
Responses
- 201
- 401
- 403
- 422
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
Possible values: >= 1
A title for this line item.
A description of the service performed for this line item.
The position of this line item in the list of line items.
Possible values: [manual
, automatic_algorithm
, service_code_mapper
]
Possible values: >= 1
For nested line items. This value denotes the parent Service Entry Line Item
.
If this line item is linked to a Service Reminder, this ID will be set.
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
The labor cost in cents for this line item.
The parts cost in cents for this line item.
The pre-tax subtotal in cents for this line item.
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"title": "string",
"description": "string",
"position": 0,
"linking_source": "manual",
"vehicle_id": 0,
"service_entry_line_item_id": 0,
"service_reminder_id": 0,
"service_entry_id": 0,
"service_task_id": 0,
"service_code_id": 0,
"import_id": 0,
"labor_cost_cents": 0,
"parts_cost_cents": 0,
"subtotal_cents": 0,
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
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.
A human-readable explanation specific to this occurrence of the problem.
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 (auto)
Schema
Possible values: >= 400
and <= 599
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.
A human-readable explanation specific to this occurrence of the problem.
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 (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
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.
A human-readable explanation specific to this occurrence of the problem.
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"
}
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
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L 'https://secure.fleetio.com/api/v2/service_entries/:service_entry_id/service_entry_line_items' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"type": "ServiceEntryServiceTaskLineItem",
"service_task_id": 0,
"description": "string",
"issue_ids": [
0
],
"labor_cost": 0,
"parts_cost": 0,
"subtotal": 0
}'