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_16BibnXLkOity101",
"occurred_at": 1763646407,
"source": "admin_console",
"object": "event",
"api_version": "v2",
"event_type": "invoice_generated",
"webhook_status": "not_applicable",
"content": {
"invoice": {
"amount": 895,
"amount_adjusted": 0,
"amount_due": 0,
"amount_paid": 895,
"billing_address": {
"first_name": "Rachel",
"last_name": "Green",
"object": "billing_address"
},
"...": "..."
}
}
}