Home / Servers / Stripe API / post_invoices_invoice_remove_lines

Bulk remove invoice line items

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

Bulk remove invoice line items Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. [POST /v1/invoices/{invoice}/remove_lines]

Name on the gateway: stripe_api__post_invoices_invoice_remove_lines · may change things.

Parameters

NameTypeDescription
invoice requiredstringinvoice parameter
expandarraySpecifies which fields in the response should be expanded.
invoice_metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
lines requiredarrayThe line items to remove.

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_remove_lines",
  "arguments": {
    "invoice": "…",
    "lines": []
  }
}

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 bulk remove invoice line items tool with invoice set to ….

More from Stripe API