---
title: "Add a line item to a payable"
method: POST
path: "/payables/{payable_id}/line_items"
tags: ["Payable line items"]
---

# Add a line item to a payable

`POST /payables/{payable_id}/line_items`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/payables/{payable_id}/line_items`
- Auth: HTTP bearer

Add a new line item to a specific payable.

The `subtotal` and `total` fields of line items are automatically calculated based on the `unit_price`,
 `quantity`, and `tax` fields, therefore, are read-only and appear only in the response schema. The field
  `ledger_account_id` is required **only** for account integration, otherwise, it is optional.

Related guide: [Add line items to a payable](https://docs.monite.com/accounts-payable/payables/line-items#add-line-items-to-a-payable)

See also:

[Manage line items](https://docs.monite.com/accounts-payable/payables/line-items)

[Collect payables](https://docs.monite.com/accounts-payable/payables/collect)

## Path parameters

- `payable_id` string, required

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body

- LineItemRequest
  - `accounting_tax_rate_id` string, uuid: ID of the tax rate reference used for accounting integration. May be used to override auto-picked tax rate reference in accounting platform in case of any platform-specific constraints.
  - `description` string: Description of the product.
  - `ledger_account_id` string, uuid: ID of the account record used to store bookkeeping entries for balance-sheet and income-statement transactions.
  - `name` string: Name of the product.
  - `quantity` number, double: The quantity of each of the goods, materials, or services listed in the payable.
  - `tax` integer: VAT rate in percent [minor units](https://docs.monite.com/references/currencies#minor-units). Example: 12.5% is 1250.
  - `unit` string: The unit of the product
  - `unit_price` integer: The unit price of the product, in [minor units](https://docs.monite.com/references/currencies#minor-units). For example, $12.50 is represented as 1250.

## Response `201`

Successful Response

- LineItemResponse
  - `id` string, uuid, required
  - `accounting_tax_rate_id` string, uuid: ID of the tax rate reference used for accounting integartion. May be used to override auto-picked tax rate reference in accounting platform in case of any platform-specific constraints.
  - `description` string: Description of the product.
  - `ledger_account_id` string, uuid: ID of the account record used to store bookkeeping entries for balance-sheet and income-statement transactions.
  - `name` string: Name of the product.
  - `ocr_set_quantity_to_one` boolean: Indicates whether the item's `unit_price` and `quantity` were adjusted by OCR.
  - `payable_id` string, uuid, required
  - `quantity` number, double: The quantity of each of the goods, materials, or services listed in the payable.
  - `subtotal` integer: The subtotal (excluding VAT), in [minor units](https://docs.monite.com/references/currencies#minor-units).
  - `tax` integer: VAT rate in percent [minor units](https://docs.monite.com/references/currencies#minor-units). Example: 12.5% is 1250.
  - `tax_amount` integer: Tax amount in [minor units](https://docs.monite.com/references/currencies#minor-units). For example, $12.50 is represented as 1250.
  - `total` integer: The actual price of the product.
  - `unit` string: The unit of the product
  - `unit_price` integer: The unit price of the product, in [minor units](https://docs.monite.com/references/currencies#minor-units). For example, $12.50 is represented as 1250.
  - `was_created_by_user_id` string, uuid: ID of the user who created the tag.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `406`: Not Acceptable
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/monite/apis/monite-3.md) - [All operations](https://skmtc.dev/monite/apis/monite-3/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-3/revisions/c13be6f83ce9?raw)
