Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Bulk remove invoice line items


Bulk remove invoice line items

POST / v1 / invoices /:id / remove_lines

Removes multiple line items from an invoice. This is only possible when an invoice is still a draft.

Parameters

  • lines array of objects Required The line items to remove.
  • invoice _ metadata map Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

Returns

The updated invoice without the removed line items is returned upon success. Otherwise, this call raises an error.

Response

Bulk update invoice line items

POST / v1 / invoices /:id / update_lines

Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.

Parameters

  • lines array of objects Required The line items to update.
  • invoice _ metadata map Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata. For type=subscription line items, the incoming metadata specified on the request is directly used to set this value, in contrast to type=invoiceitem line items, where any existing metadata on the invoice line is merged with the incoming data.

Returns

The updated invoice is returned upon success. Otherwise, this call raises an error.

Response

Last verified 2026-09-24

Is this helpful?