stripe.finalizeInvoice to finalize a draft Stripe invoice so it can be collected or sent.
Example
automations/stripe-finalize-invoice.automation.ts
Inputs
invoiceId is required. Finalization locks key invoice fields and creates the provider state needed for collection. idempotencyKey is optional.
Inputs use camel case and accept compatible signals. Automate.ax converts provider fields to Stripe’s wire format. Metadata keys remain unchanged.
Output
Returns the finalized Stripe Invoice. Output fields use camel case. Nested Stripe decimal fields such asquantityDecimal are lossless strings.