Event triggered when a new invoice is created except when created with status as pending. For pending invoices, this event is triggered when the invoice is closed.
{
"id": "ev_16B6QEBv9kQZYR2P",
"occurred_at": 1762406872,
"source": "admin_console",
"object": "event",
"api_version": "v2",
"event_type": "invoice_generated",
"webhook_status": "not_applicable",
"content": {
"invoice": {
"adjustment_credit_notes": [],
"amount_adjusted": 0,
"amount_due": 0,
"amount_paid": 1000,
"amount_to_collect": 0,
"...": "..."
}
}
}