bunny-billing
Invoice, payment, and credit-note handling in Bunny. Covers the invoice state machine (DRAFT, PREPARING, READY, NOT_DUE, DUE, UNPAID, PROCESSING_PAYMENT, PAID, VOIDED, FAILED, MERGED, QUEUED, CONSOLIDATED), the credit-note lifecycle (DRAFT → READY → APPLIED / PARTIALLY_APPLIED), how invoices are generated by the cron vs invoiceGenerateNextPeriod, the void-vs-credit-vs-refund decision, the Payment + PaymentApplication model with multi-invoice application (paymentApplyToInvoices, paymentApplyToAccount), crediting (invoiceCredit, invoiceAddCredit, creditNoteCreate / creditNoteIssue / creditNoteApplyToInvoices), refund via invoiceRefund, consolidation billing (invoiceMerge), tax retries (invoiceRetryTax, invoiceUpdateTaxes), invoice templates, and reconciliation against external accounting systems. Use when handling invoices, capturing payments, issuing refunds or credits, or reconciling Bunny against your books.
Pinned to revision ed962fe0b797, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.