---
title: "Create Service Entry Line Item"
method: POST
path: "/service_entries/{service_entry_id}/service_entry_line_items"
tags: ["Service Entries"]
---

# Create Service Entry Line Item

`POST /service_entries/{service_entry_id}/service_entry_line_items`

## Request

- Base URL: `https://secure.fleetio.com/api`
- URL: `https://secure.fleetio.com/api/service_entries/{service_entry_id}/service_entry_line_items`
- Auth: API key in header `Authorization` and API key in header `Account-Token`
- TypeScript: <https://skmtc.dev/fleetio/apis/fleetio-developer-api/docs/service_entries/:service_entry_id/service_entry_line_items/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new Service Entry Line Item

## Path parameters

- `service_entry_id` string, required

## Request body

- object
  - `type` 'ServiceEntryServiceTaskLineItem' | 'ServiceEntryLaborLineItem' | 'ServiceEntryPartLineItem' | 'ServiceEntryTaxLineItem' | 'ServiceEntryFeeLineItem' | 'ServiceEntryTireLineItem' | 'ServiceEntryFreeTextLineItem': Denotes the type of the ServiceEntryLineItem
  - `service_task_id` integer
  - `description` string: A description of the service performed for this line item.
  - `issue_ids` Id[]: IDs of any `Issues` this line item is linked to.
  - `labor_cost` number, float: The cost of labor for this line item.
  - `parts_cost` number, float: The cost of `Parts` for this line item.
  - `subtotal` number, float: Ignored if `labor_cost` and `parts_cost` is present.

## Response `201`

OK

- ServiceEntryLineItemV2Created, nullable: A Service Entry Line Item
  - `id` integer, required
  - `created_at` string, date-time: The date and time at which this record was created.
  - `updated_at` string, date-time: The date and time at which this record was most recently updated.
  - `account_id` integer
  - `title` string, nullable, required: A title for this line item.
  - `description` string, nullable, required: A description of the service performed for this line item.
  - `position` integer, nullable, required: The position of this line item in the list of line items.
  - `linking_source` 'manual' | 'automatic_algorithm' | 'service_code_mapper', nullable, required
  - `vehicle_id` integer, required
  - `service_entry_line_item_id` integer, nullable, required: For nested line items. This value denotes the parent `Service Entry Line Item`.
  - `service_reminder_id` integer, nullable, required: If this line item is linked to a Service Reminder, this ID will be set.
  - `service_entry_id` integer, required
  - `service_task_id` integer, required
  - `service_code_id` integer, nullable, required
  - `import_id` integer, nullable
  - `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` integer, nullable
  - `vmrs_assembly_id` integer, nullable
  - `vmrs_component_id` integer, nullable
  - `vmrs_reason_for_repair_id` integer, nullable
  - `vmrs_system_group_id` integer, nullable

## Other responses

- `401`: Request could not be authenticated
- `403`: Insufficient permission to perform this operation
- `422`: Unprocessable Entity
- `500`: Something unexpected happened

## Changes

- **2026-11-06** `49558d744bd7`: 1 warning
  - the `description` request property's maxLength was set to `100000`

[Operation history](https://skmtc.dev/fleetio/apis/fleetio-developer-api/changes/service_entries/:service_entry_id/service_entry_line_items/post.md)

---

[API](https://skmtc.dev/fleetio/apis/fleetio-developer-api.md) - [All operations](https://skmtc.dev/fleetio/apis/fleetio-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fleetio/apis/fleetio-developer-api/revisions/49558d744bd7?raw)
