Invoice events
What data you get for invoice.created, .finalized, .finalization_failed, .sent, .paid, .payment_failed, .payment_action_required, .overdue, .updated, .uncollectible, .void, and .creditnote.updated.
Fires as an invoice moves through its lifecycle — created, finalized, paid, failed, overdue, voided, or adjusted by a credit note.
Each event arrives as an event object.
The examples on this page show its data.object.
Prop
Type
{
"id": "in_01J9ABCDEFGHJKMNPQRSTV",
"object": "invoice",
"number": "INV-2026-000123",
"subscription_id": "sub_01J8XYZABCDEFGHJKMNPQR",
"customer_id": "cus_01J8XYZABCDEFGHJKMNPQR",
"customer_name": "Somchai Jaidee",
"customer_email": "somchai@example.com",
"line_items": [
{
"product_name": "Pro plan",
"description": "Pro plan — monthly",
"unit_amount": 150000,
"quantity": 1,
"amount_total": 150000,
"currency": "thb"
}
],
"total": 150000,
"amount_due": 150000,
"amount_paid": 150000,
"amount_remaining": 0,
"currency": "thb",
"status": "paid",
"status_transitions": {
"finalized_at": 1785000000,
"paid_at": 1785006005,
"voided_at": null,
"marked_uncollectible_at": null
}
}All twelve events share this shape — the full invoice. Only status and the matching
status_transitions field change (finalized_at, paid_at, voided_at,
marked_uncollectible_at).
Status changes
An invoice starts as draft and becomes open when it's finalized. From open it can
become paid, void or uncollectible, and an uncollectible invoice can still become
paid or void. paid and void are final.
| Request | Allowed from | Result |
|---|---|---|
POST /invoices/{id}/finalize | draft | open, invoice.finalized |
POST /invoices/{id}/pay | draft, open | A draft is finalized first, then charged. A paid invoice is returned unchanged; a void one is refused with 409. |
POST /invoices/{id}/mark_paid | open, uncollectible | paid, invoice.paid. A draft is refused with 400 E4228 (invoice.not_finalized); a paid invoice is returned unchanged. |
POST /invoices/{id}/void | open, uncollectible | void, invoice.void. A paid invoice is reduced with a credit note instead; a draft is deleted. |
POST /invoices/{id}/send | open with collection_method: send_invoice | Emails the customer the invoice's payment link and sends invoice.sent; the status does not change. A Stripe-billed invoice is sent by Stripe. Anything else is refused with 409 invoice.finite_state. |
POST /invoices/{id}/mark_uncollectible | open | uncollectible, invoice.uncollectible (at Stripe too for a Stripe-billed invoice). Anything else is refused with 409 invoice.finite_state. |
invoice.sent also fires when finalizing emails the invoice: a subscription's
send_invoice invoice, or a one-off one with auto_advance on. Each customer address is
emailed an invoice once, so retrying send sends no second email and no second event.
Failed payments
- A failed finalization leaves the invoice a
draftand setslast_finalization_errorto the error'scode(such asE4202),typeandmessage. It's cleared when the invoice is finalized, and it's never set for a failed payment. When a provider such as Stripe hosts the invoice and reports the failure, you also getinvoice.finalization_failed. invoice.payment_failed— an automatic payment attempt failed.next_payment_attemptshows when the next retry is planned, and a subscription the invoice renews moves topast_due.invoice.payment_action_required— the customer must authenticate the payment, for example with 3-D Secure, on an off-session renewal. It's sent together withinvoice.payment_failed, a retry is still planned, and the subscription moves topast_due.
A subscription with billing thresholds is checked against them in every billing period, not only the first, and gets an early invoice when a threshold is reached.
Every timestamp on this page, including those in status_transitions and
next_payment_attempt, is in Unix seconds.
invoice.creditnote.updated carries the invoice (with recomputed totals), not the
credit note itself. See Credit note events for
credit_note.*, which is a different event.