#msms-InvoiceLineItemDeletion

1 messages · Page 1 of 1 (latest)

keen onyx
#

Is that Invoice Line Item attached to an Invoice? Billed already? Then you can't delete it. API Reference also mentioned

Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.

upbeat jasper
#

The invoice item is attached to a draft invoice of a subscription

keen onyx
#

Then yes it should be deletable

upbeat jasper
#

It tells me { type: 'StripeInvalidRequestError', raw: { message: "Can't delete an invoice line item that was generated by a subscription", type: 'invalid_request_error' } }