Update Invoice Item

View as Markdown
Update a floating invoice item. Only floating items (not yet attached to an invoice) can be updated. Once an item is swept into an invoice, it becomes immutable. For priced items, updating quantity will recalculate the amount using the price's pricing model (tiered, package, per-unit, etc.). For amount-only items (no price_id), you can update quantity, unit_amount, or amount directly. Use cases: - Update quantity as usage accumulates (e.g., SMS metering) - Correct description before invoice generation - Adjust amount for custom pricing Works for both User and API Key authentication. Account access is automatically validated via endpoint dependency.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

external_idstringRequired
account_idstringRequired

Request

This endpoint expects an object.
quantitydouble or nullOptional
descriptionstring or nullOptional
unit_amountdouble or nullOptional
amountdouble or nullOptional

Response

Successful Response
idstring
invoice_idstring or null
descriptionstring or null
quantitydouble
amountinteger
currencystring
metadatamap from strings to any or null
created_atdatetime
updated_atdatetime
priceobject or nullOptional
product_namestring or nullOptional
prorationbooleanOptionalDefaults to false
period_startdatetime or nullOptional
period_enddatetime or nullOptional
subscription_idstring or nullOptional
subscription_item_idstring or nullOptional
tier_breakdownlist of objects or nullOptional

Errors

422
Unprocessable Entity Error