Skip to content

feat: sync invoice after credit note is issued or marked as void - #181

Merged
ignaciodob merged 1 commit into
mainfrom
ignaciodobronich/billing-3004-invoice-remained-out-of-sync-after-a-credit-note
Oct 6, 2026
Merged

ignaciodob merged 1 commit into
mainfrom
ignaciodobronich/billing-3004-invoice-remained-out-of-sync-after-a-credit-note

Conversation

@ignaciodob

Copy link
Copy Markdown
Contributor

Orb doesn't emit an invoice.* webhook when a credit note is issued or voided, so the stored invoice could stay stale until some later invoice event refreshed it.

credit_note.issued and credit_note.marked_as_void now fetch the parent invoice (credit_note.invoice_id) from the Orb API after upserting the credit note.

@ignaciodob ignaciodob self-assigned this Oct 6, 2026
@ignaciodob
ignaciodob merged commit b4fc7b7 into main Oct 6, 2026
2 checks passed
@ignaciodob
ignaciodob deleted the ignaciodobronich/billing-3004-invoice-remained-out-of-sync-after-a-credit-note branch October 6, 2026 20:14
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.17.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants