Home / Servers / Stripe API / post_invoices_invoice_lines_line_item_id

Update an invoice's line item

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Update an invoice's line item Updates an invoice’s line item. Some fields, such as tax_amounts , only live on the invoice line item, so they can only be updated through this endpoint. Other fields, such as amount , live on both… [POST /v1/invoices/{invoice}/lines/{line_item_id}]

Name on the gateway: stripe_api__post_invoices_invoice_lines_line_item_id · may change things.

Parameters

NameTypeDescription
invoice requiredstringInvoice ID of line item
line_item_id requiredstringInvoice line item ID
amountintegerThe integer amount in cents (or local equivalent) of the charge to be applied…
descriptionstringAn arbitrary string which you can attach to the invoice item. The description…
discountablebooleanControls whether discounts apply to this line item. Defaults to false for…
discountsarrayThe coupons, promotion codes & existing discounts which apply to the line…
expandarraySpecifies which fields in the response should be expanded.
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
periodobjectThe period associated with this invoice item. When set to different values…
price_dataobjectData used to generate a new Price object inline.
pricingobjectThe pricing information for the invoice item.
quantityintegerNon-negative integer. The quantity of units for the line item. Use…
quantity_decimalstringNon-negative decimal with at most 12 decimal places. The quantity of units for…
tax_amountsarrayA list of up to 20 tax amounts for this line item. This can be useful if you…
tax_ratesarrayThe tax rates which apply to the line item. When set, the default_tax_rates on…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_invoices_invoice_lines_line_item_id",
  "arguments": {
    "invoice": "…",
    "line_item_id": "…"
  }
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the update an invoice's line item tool with invoice set to ….

More from Stripe API