# Invoice line items

Section: Invoices and payments. Part of the [API reference](https://developer.yoprint.com/reference.md). Web page: https://developer.yoprint.com/reference/invoice-line-items/

This page and all 6 operation pages, in 2 files: https://developer.yoprint.com/llms/invoice-line-items.txt (operations 1 to 4), https://developer.yoprint.com/llms/invoice-line-items-2.txt (operations 5 to 6)

The lines of an invoice: billed sales order lines, shipping fees, discounts and one tax line.

## Operations (6)

- [Add a line to an invoice](https://developer.yoprint.com/reference/invoice-line-items/v2-invoice-item-create.md): `POST /v2/api/store/{team_slug}/v2/invoice/{unique_key}/item`. Adds one line to an invoice and recalculates it.
- [Add, change and remove invoice lines at once](https://developer.yoprint.com/reference/invoice-line-items/v2-invoice-item-bulk.md): `POST /v2/api/store/{team_slug}/v2/invoice/{unique_key}/item/bulk`. Applies several line changes to one invoice in one transaction: all of them are saved, or none.
- [List the lines of an invoice](https://developer.yoprint.com/reference/invoice-line-items/v2-invoice-item-index.md): `GET /v2/api/store/{team_slug}/v2/invoice/{unique_key}/item`. Returns every line of an invoice: billed sales order lines, shipping fees, discounts and the tax line.
- [Get an invoice line](https://developer.yoprint.com/reference/invoice-line-items/v2-invoice-item-show.md): `GET /v2/api/store/{team_slug}/v2/invoice/item/{unique_key}`. Returns one invoice line: `product` (kind and fields; for `order_item`, `_meta.parent` holds the sales order line), `pricing`, `quantity`, `tax`, `position`, `lock_version` and `auto_invoice_managed`.
- [Update an invoice line](https://developer.yoprint.com/reference/invoice-line-items/v2-invoice-item-update.md): `PUT /v2/api/store/{team_slug}/v2/invoice/item/{unique_key}`. Changes one invoice line and recalculates the invoice.
- [Remove a line from an invoice](https://developer.yoprint.com/reference/invoice-line-items/v2-invoice-item-destroy.md): `DELETE /v2/api/store/{team_slug}/v2/invoice/item/{unique_key}`. Removes one line from an invoice and recalculates it.
