LedgerBee Developer
  • Getting started
  • Conventions
  • Products
  • API Reference
Subscriptions
    OverviewAssign a subscriptionData modelLifecycle & statusesBilling & cadenceProrationChange flowsParent & childWebhooks
Products & Pricing
Billing documents
WebhooksMCP (AI agents)
Customer Portal
Subscriptions

Billing & cadence

A subscription's cadence and billing direction determine when it bills and which period each invoice covers. These are computed by the billing engine — there is no public endpoint to call; you predict the behavior.

Cadence

A cadence is an interval unit × a count. There is no monthly / quarterly enum — quarterly is month × 3, half-yearly month × 6, annual month × 12 (or year × 1).

IntervalCadence
dayDaily.
weekWeekly.
monthMonthly. Quarterly = month × 3; half-yearly = month × 6.
yearAnnual. Equivalent to month × 12.

Advance vs. arrears

billingDirection (set at assign) decides where in the period the charge sits:

DirectionWhen the invoice is issuedCovers
advanceat the start of the periodthe period about to begin
arrearsat the end of the periodthe period just completed

Next billing date

The engine tracks each schedule's nextBillingDate and a recurring job seeks it: when the date is reached, an invoice is issued for that period and the date advances by the cadence. A nextBillingDate far in the past (e.g. a back-dated start) produces multiple catch-up invoices, one per elapsed period, until the schedule is current.

Invoice date and due date

The invoice date is always the date the run issues it — a legal requirement, not the period start. The payment due date is invoiceDate + paymentTerms (the customer's terms). So an advance invoice issued on the 1st for July is dated the 1st even though it covers the whole month ahead.

Send-offset (prebill)

Operators can configure a lead time so an advance invoice is issued a few days before the period starts (prebill). This offset is operator-configured and not a public API field; it shifts the issue date earlier but not the period it covers.

Last modified on June 14, 2026
Lifecycle & statusesProration
On this page
  • Cadence
  • Advance vs. arrears
  • Next billing date
  • Invoice date and due date
  • Send-offset (prebill)