# Add, edit or remove lines and let Pocket retotal tax

Line items are description, quantity and unit price. The folio retotals subtotal, tax and total the same way the host app does.

Canonical: https://pocketos.ai/products/rentalos/line-items

## What it does

rental_line_item_add / update / remove require confirm:true. An identical line needs allow_duplicate:true.
Only open or accepted rentals accept line writes. expected_description guards against a list that shifted under a double submit.
Discounts, CDW, cleaning and delivery cost have dedicated setters so you do not fake them as anonymous lines unless you want to.

## How it works

1. Preview the new totals.
2. Confirm.
3. Charge or refund the difference separately if a card already ran.

## How it works with AI

Connect ChatGPT, Claude, Grok or any MCP client to Pocket. The assistant uses the same garage you see in the app.

- Ask ChatGPT or Claude to add a line with rental_line_item_add
- Ask ChatGPT or Claude to update with rental_line_item_update
- Ask ChatGPT or Claude to remove with rental_line_item_remove

Pocket MCP: https://pocketos.ai/mcp

## Related

- [Rental folio](https://pocketos.ai/products/rentalos/rental-folio)
- [Sales tax](https://pocketos.ai/products/rentalos/sales-tax)
- [Folio discount](https://pocketos.ai/products/rentalos/folio-discount)

## Links

- https://pocketos.ai/pricing/app-signup
- https://pocketos.ai/mcp
