---
title: "Creates a InvoiceItem resource."
method: POST
path: "/invoice_items"
tags: ["InvoiceItem"]
---

# Creates a InvoiceItem resource.

`POST /invoice_items`

Creates a InvoiceItem resource.

## Request body

- InvoiceItem — A line item from an invoice.
  - `id` string — Unique identifier for this line e.g. "quickbooks-34-1" Note that no particular pattern in this field is guaranteed, only that this field is unique
  - `integration` string — The key of the integration source e.g. "quickbooks", or "xero"
  - `srcId` string — Unique identifier for the invoice line, from the source 3rd party integration
  - `invoiceId` string — The Boss Insights identifier for the invoice that this line belongs to Note that no particular pattern in this field is guaranteed, only that this field is unique
  - `description` string, nullable — Description of the line item
  - `quantity` number, nullable — Number of items for the line
  - `unitPrice` integer, nullable — Unit price of the item in cents
  - `itemId` string, nullable — Unique identifier for the item, from the source 3rd party integration
  - `itemName` string, nullable — Name of the item
  - `lineAmount` integer, nullable — Amount for the line item in cents

## Response `201`

InvoiceItem resource created

- InvoiceItem — A line item from an invoice.
  - `id` string — Unique identifier for this line e.g. "quickbooks-34-1" Note that no particular pattern in this field is guaranteed, only that this field is unique
  - `integration` string — The key of the integration source e.g. "quickbooks", or "xero"
  - `srcId` string — Unique identifier for the invoice line, from the source 3rd party integration
  - `invoiceId` string — The Boss Insights identifier for the invoice that this line belongs to Note that no particular pattern in this field is guaranteed, only that this field is unique
  - `description` string, nullable — Description of the line item
  - `quantity` number, nullable — Number of items for the line
  - `unitPrice` integer, nullable — Unit price of the item in cents
  - `itemId` string, nullable — Unique identifier for the item, from the source 3rd party integration
  - `itemName` string, nullable — Name of the item
  - `lineAmount` integer, nullable — Amount for the line item in cents

## Other responses

- `400` — Invalid input
- `422` — Unprocessable entity

---

[API](https://skmtc.net/bossinsights/apis/boss-insights.md) · [All operations](https://skmtc.net/bossinsights/apis/boss-insights/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bossinsights/boss-insights/revisions/d08a107895ad/schema)
