---
title: "[Preview] Add a line item to a supplier invoice"
method: POST
path: "/companies/{companyId}/supplier-invoices/{supplierInvoiceId}/line-items"
tags: ["supplier-invoices"]
---

# \[Preview\] Add a line item to a supplier invoice

`POST /companies/{companyId}/supplier-invoices/{supplierInvoiceId}/line-items`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/supplier-invoices/{supplierInvoiceId}/line-items`
- Auth: HTTP bearer

Adds a line item to an existing supplier invoice. The supplier invoice must have an upload connected before line items can be added.

**Scope:** `supplier-invoices:write`

## Request body

- SupplierInvoiceLineItem
  - `id` string, uuid: Server-generated identifier. On update, include `id` to match an existing line item; omit it to add a new line item.
  - `description` string, required
  - `quantity` number, double
  - `unitPrice` number, double, required
  - `unitType` string
  - `taxRate` number, double, nullable
  - `projectRef` ProjectRef, nullable: Reference to a project. **Preview:** This field is in preview and may change or be removed before general availability. [Read the full preview policy](/reference/versioning#preview)
    - `id` string, uuid, nullable
    - `projectName` string
    - `projectNumber` string
  - `costCenterRef` CostCenterRef, nullable: Reference to a cost center tag value. Should be a valid dimension 1 tag value. **Preview:** This field is in preview and may change or be removed before general availability. [Read the full preview policy](/reference/versioning#preview)
    - `tagId` string, uuid, nullable
    - `tagName` string

## Response `200`

Line item added

- SupplierInvoiceLineItem
  - `id` string, uuid: Server-generated identifier. On update, include `id` to match an existing line item; omit it to add a new line item.
  - `description` string, required
  - `quantity` number, double
  - `unitPrice` number, double, required
  - `unitType` string
  - `taxRate` number, double, nullable
  - `projectRef` ProjectRef, nullable: Reference to a project. **Preview:** This field is in preview and may change or be removed before general availability. [Read the full preview policy](/reference/versioning#preview)
    - `id` string, uuid, nullable
    - `projectName` string
    - `projectNumber` string
  - `costCenterRef` CostCenterRef, nullable: Reference to a cost center tag value. Should be a valid dimension 1 tag value. **Preview:** This field is in preview and may change or be removed before general availability. [Read the full preview policy](/reference/versioning#preview)
    - `tagId` string, uuid, nullable
    - `tagName` string

## Other responses

- `400`: Validation or operation error
- `404`: Supplier invoice not found

## Changes

- **2026-11-03** `9395020f3da2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bokio/apis/company-api/changes/companies/:companyId/supplier-invoices/:supplierInvoiceId/line-items/post.md)

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
