---
title: "Create Invoice Line Item"
method: POST
path: "/invoices/{invoice_id}/invoice_line_items"
---

# Create Invoice Line Item

`POST /invoices/{invoice_id}/invoice_line_items`

## Request

- Base URL: `https://app.moderntreasury.com/api`
- URL: `https://app.moderntreasury.com/api/invoices/{invoice_id}/invoice_line_items`
- Auth: HTTP basic

Create a new invoice line item

## Path parameters

- `invoice_id` string, required

## Request body

- object
  - `name` string, required: Name of the line item, typically a product or SKU name.
  - `description` string: An optional free-form description of the line item.
  - `quantity` integer: The number of units of a product or service that this line item is for. Must be a whole number. Defaults to 1 if not provided.
  - `unit_amount` integer: The cost per unit of the product or service that this line item is for, specified in the invoice currency's smallest unit.
  - `unit_amount_decimal` string: The cost per unit of the product or service that this line item is for, specified in the invoice currency's smallest unit. Accepts decimal strings with up to 12 decimals.
  - `direction` 'debit' | 'credit': `debit` indicates that the counterparty owes the business money and increases the invoice's `total_amount` due. `credit` has the opposite intention and effect.
  - `metadata` string, json: Additional data represented as key-value pairs. Both the key and value must be strings. See [Metadata](ref:metadata).

---

[API](https://skmtc.dev/modern-treasury/apis/modern-treasury-api.md) - [All operations](https://skmtc.dev/modern-treasury/apis/modern-treasury-api/llms.txt) - [OpenAPI document](https://skmtc.dev/modern-treasury/apis/modern-treasury-api/revisions/e31c6638c72e?raw)
