stripe.onInvoiceFinalized to run an automation when Stripe finalizes an invoice.
Example
automations/stripe-on-stripe-invoice-finalized.automation.ts
account defaults to the project binding.
Trigger data
Returns the complete Stripe Event envelope withtype: "invoice.finalized". The typed data.object contains the Stripe resource for this event.
Automate.ax verifies Stripe’s signature against the exact request body before accepting an event. Event fields use camel case, while metadata keys remain unchanged. Stripe doesn’t guarantee event delivery order, so use id, resource IDs, and timestamps when coordinating related events.
See On Stripe event for the shared envelope and delivery behavior.