Create Service Entry Line Item
Creates a new Service Entry Line Item
Path Parameters
- service_entry_id string required
Possible values: Value must match regular expression
^[0-9]+$
The id of the associated Service Entry
- application/json
Request Body
- type string
Possible values: [
ServiceEntryServiceTaskLineItem
,ServiceEntryLaborLineItem
,ServiceEntryPartLineItem
,ServiceEntryTaxLineItem
,ServiceEntryFeeLineItem
,ServiceEntryTireLineItem
,ServiceEntryFreeTextLineItem
]Denotes the type of the ServiceEntryLineItem
- service_task_id integer
Possible values:
>= 1
- description string
A description of the service performed for this line item.
- issue_ids integer[]
Possible values:
>= 1
IDs of any
Issues
this line item is linked to. - labor_cost float
The cost of labor for this line item.
- parts_cost float
The cost of
Parts
for this line item. - subtotal float
Ignored if
labor_cost
andparts_cost
is present.
- 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
- title string
A title for this line item.
- description string
A description of the service performed for this line item.
- position integer
The position of this line item in the list of line items.
- linking_source string
Possible values: [
manual
,automatic_algorithm
,service_code_mapper
] - vehicle_id integer
Possible values:
>= 1
- service_entry_line_item_id integer
For nested line items. This value denotes the parent
Service Entry Line Item
. - service_reminder_id integer
If this line item is linked to a Service Reminder, this ID will be set.
- service_entry_id integer
Possible values:
>= 1
- service_task_id integer
Possible values:
>= 1
- service_code_id NullableId
Possible values:
>= 1
- import_id NullableId
Possible values:
>= 1
- labor_cost_cents integer
The labor cost in cents for this line item.
- parts_cost_cents integer
The parts cost in cents for this line item.
- subtotal_cents integer
The pre-tax subtotal in cents for this line item.
- vmrs_system_id NullableId
Possible values:
>= 1
- vmrs_assembly_id NullableId
Possible values:
>= 1
- vmrs_component_id NullableId
Possible values:
>= 1
- vmrs_reason_for_repair_id NullableId
Possible values:
>= 1
- vmrs_system_group_id NullableId
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 (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"
}