Skip to content

docs(webhooks): document invoice.ready_to_finalize webhook - #565

Merged
annvelents merged 1 commit into
mainfrom
docs/invoice-ready-to-finalize-webhook
Aug 24, 2026
Merged

docs(webhooks): document invoice.ready_to_finalize webhook#565
annvelents merged 1 commit into
mainfrom
docs/invoice-ready-to-finalize-webhook

Conversation

@chuckulele

Copy link
Copy Markdown
Contributor

Description

Documents the invoice.ready_to_finalize webhook, which exists in lago-api (Webhooks::Invoices::ReadyToFinalizeService) but was missing from the OpenAPI spec.

This event signals that a draft invoice is ready to be finalized (taxes are resolved). It fires either when the draft is created and no tax provider call is pending (Invoices::SubscriptionService), or once the tax provider returns taxes for the draft invoice (Invoices::ProviderTaxes::PullTaxesAndApplyService).

The payload uses the same serializer includes as invoice.drafted (customer, subscriptions, billing_periods, fees, credits, applied_taxes, error_details), so the spec references the same InvoiceObjectExtended schema.

Changes

  • Add src/webhooks/invoice_ready_to_finalize.yaml (modeled on invoice_drafted.yaml)
  • Wire it into src/openapi.yaml webhooks section
  • Rebuild bundled openapi.yaml

npm run test (redocly bundle + redocly lint + spectral lint) passes with no new warnings.

@annvelents
annvelents merged commit 796923c into main Aug 24, 2026
3 checks passed
@annvelents
annvelents deleted the docs/invoice-ready-to-finalize-webhook branch August 24, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants