> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# invoice_items_update

> Update an invoice line. A line cannot be moved to another customer or another invoice; its `frozen_fields` lists what has stopped being editable.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.stripe.com/v1/invoiceitems/{invoiceitem}"}</code></div>

```python stripe_invoice_items_update.py theme={null}
from charter.packs import stripe

result = await stripe.invoice_items_update.ainvoke({"invoiceitem": ...})
```

## Path parameters

<div className="reference-table">
  | Field                                                               | Type     | Description                           |
  | ------------------------------------------------------------------- | -------- | ------------------------------------- |
  | `invoiceitem` <span className="required" title="required">\*</span> | `string` | The ID of the invoice line to update. |
</div>

## Body

<div className="reference-table">
  | Field          | Type                                                                                        | Description                                                                                                                                                                                          |
  | -------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `amount`       | `integer`                                                                                   | The amount in the smallest currency unit. Negative reduces what the invoice is due. Cents, not dollars: \$15.00 is 1500, and 15 puts fifteen cents on the invoice. Multiply a decimal amount by 100. |
  | `description`  | `string`                                                                                    | What this line says on the invoice.                                                                                                                                                                  |
  | `quantity`     | `integer`                                                                                   | How many units this line bills. <span className="field-constraints">≥ 0</span>                                                                                                                       |
  | `pricing`      | [InvoiceItemPricing](/charter/charter/packs/stripe/invoiceitems/objects#invoiceitempricing)         | An existing price to bill, named as `pricing.price`.                                                                                                                                                 |
  | `priceData`    | [InvoiceItemPriceData](/charter/charter/packs/stripe/invoiceitems/objects#invoiceitempricedata)     | A price created inline for this line.                                                                                                                                                                |
  | `period`       | [InvoiceItemPeriod](/charter/charter/packs/stripe/invoiceitems/objects#invoiceitemperiod)           | The service period this line covers.                                                                                                                                                                 |
  | `discountable` | `boolean`                                                                                   | Whether invoice-level discounts apply to this line.                                                                                                                                                  |
  | `discounts`    | [SubscriptionDiscount](/charter/charter/packs/stripe/subscriptions/objects#subscriptiondiscount)\[] | Coupons or promotion codes applying to this line alone.                                                                                                                                              |
  | `metadata`     | map of `string`                                                                             | Set of key-value pairs attached to the line.                                                                                                                                                         |
  | `taxBehavior`  | [PriceTaxBehavior](/charter/charter/packs/stripe/invoiceitems/objects#pricetaxbehavior)             | Whether the amount includes tax. Once set to inclusive or exclusive it cannot be changed.                                                                                                            |
  | `taxCode`      | `string`                                                                                    | The tax code for what is being billed.                                                                                                                                                               |
</div>
