stripe.deleteInvoiceItem to remove an item before its invoice closes.
automations/stripe-delete-invoice-item.automation.ts
Inputs
invoiceItemId is required. Stripe rejects deletion after the invoice closes. idempotencyKey is optional.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Delete a pending or draft Stripe invoice item.
stripe.deleteInvoiceItem to remove an item before its invoice closes.
import { automation, onDashboardRun } from "automate.ax"
import { stripe } from "automate.ax/stripe"
export default automation("Delete invoice item", () => {
onDashboardRun({ title: "Delete invoice item" })
stripe.deleteInvoiceItem({ invoiceItemId: "ii_123" })
})
invoiceItemId is required. Stripe rejects deletion after the invoice closes. idempotencyKey is optional.