Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Billing


1. Overview

Billing turns what a customer owes into invoices. It reads the charges on their orders and subscriptions, works out what is billable up to a given date, and produces invoices you can review before anything reaches the customer.

That review step is the shape of the whole domain. Younium generates invoices as drafts, in a batch, so a billing run can be checked, corrected and re-run before it is committed. Posting is the point of no return: the invoice takes its number, the accounting entries are made, revenue recognition is updated, and the document goes to the customer. After that a mistake is corrected with a credit invoice rather than an edit.

Everything an invoice contains traces back to a charge defined in Products & Pricing and sold on an order. Posting feeds revenue recognition, and the resulting balance is settled through payments.


2. Core Concepts

Invoice

An invoice belongs to an account, sits in a batch, and holds one or more lines.

Field
Description

Invoice number

Assigned when the invoice is posted. A draft has none

Invoice type

Invoice (a debit invoice), Credit, On account, or On account credit

Status

Where the invoice has reached (see below)

Account

The account being invoiced

Invoice date

The date on the document, and the date checked against the accounting period

Due date / Payment term days / Payment term

When payment is due, and the term it was derived from

Days past due

How far overdue the invoice is

Subtotal Amount, Tax Amount, Total Amount, Total Rounding Amount

The invoice totals

Settled amount / Balance amount

How much has been paid and how much is outstanding, each also available in base currency

Currency / Exchange rate

The invoice currency and the rate to base currency

Tax included

Whether the amounts are inclusive of tax

Date of posting

When the invoice was posted

Settled Date / Last Payment Date

When the invoice was settled, and when it last received a payment

Your reference, Our reference, Buyer reference, Your order number

References carried from the order onto the document

Notes

Free text on the invoice

OCR number

The payment reference, where OCR numbers are enabled

Payment method

Invoice, Stripe or GoCardless

Online payment link / Online payment status

The link a customer can pay through, and where that payment has reached

Electronic invoice status

Where the invoice has reached in e-invoicing, where that is configured

Invoice delivery method / Sent

How the invoice is delivered, and whether it has been sent

Last Reminder Date / No. of Reminders / Disable invoice reminder

Reminder history, and a switch to exclude this invoice from reminders

Accounts receivable

The receivable account the invoice posts to

External ERP Id / External CRM Id

Identifiers used when matching the invoice in a connected system

Orders

The order numbers of the orders invoiced on the invoice, each listed once. Read-only

Alongside these, Younium derives a set of flags you can filter and report on — whether an invoice is a draft, cancelled, overdue, awaiting payment, partially paid, paid, overpaid, refunded, awaiting refund, or credited.

An invoice also carries its credit and debit linkage, so either side of a credit note can be traced from the other. Is Credited is true once any credit note has been issued against the invoice — this is the field to filter on to keep credited invoices out of an ageing or collections report. Credit invoices lists the credit notes issued against the invoice, and Debit invoices, on a credit note, lists the invoice it credits. An invoice can be credited by more than one credit note, so both are lists of linked invoices rather than a single reference.

Note on filtering invoices by order: Orders lists the order number rather than a particular order version, so filtering on Orders contains an order number finds the invoices raised for every version of that order. Lines that are not tied to a charge, such as on-account lines, add nothing to the list, so an invoice made up only of those lines has an empty Orders value. Orders is available as a column in invoice tables and reports, and the order's Invoices tab uses it to list the invoices of all versions of the order.

Note on filtering by Days past due: Days past due is worked out from Due date and Status at the moment you read it, rather than stored on the invoice, so it cannot itself be used as a filter condition when querying invoices. Filter on Status and Due date instead — for invoices at least 30 days overdue, that means Status equal to Posted and Due date on or before the date 30 days ago. The direction runs opposite to the day count: more days overdue means an earlier due date.

Note on credited invoices and ageing: A credit note does not change the status of the invoice it credits — the original stays Posted or Settled. Days-overdue, ageing, and payment-speed reporting should filter on Is Credited to exclude credited invoices from the population, rather than relying on status alone.

Invoice status

Status
Meaning

Draft

Generated but not final. Can be edited, re-run or cancelled. Has no invoice number and no accounting effect

Posted

Final. Numbered, accounted for, sent, and open for payment

Settled

Paid in full — see Payments

Cancelled

A draft that was discarded. Any usage or measurement it had claimed is released for billing again

Note on correcting a posted invoice: Only a draft can be cancelled. Once an invoice is posted it stays posted, because its number, its accounting entries and the customer's copy all exist. A posted invoice is corrected with a credit invoice, which leaves both documents in the record — which is what an audit expects.

Invoice line

Each line is a billable portion of one charge on an order: its quantity, the service period it covers, its discounts and its tax. Lines can be linked to the usage or measurement data they were billed from. Once a usage record has been billed onto a line, Younium marks it Processed and locks it: a processed usage record can no longer be edited or deleted, and processed status is never something you set directly — Younium sets it automatically once the usage is billed.

On a draft invoice, notes and custom fields can be updated across many lines at once. Whether lines that come to zero appear on the finished document is controlled by the invoice settings below.

Invoice batch

A batch is one billing run. Every invoice generated together shares the batch's invoice date and its target dates, which is what makes a run reviewable as a unit rather than invoice by invoice.

Field
Description

Batch number

Assigned when the batch is created

Target date

The date billed up to, when it is the same for every charge type

Target date oneoff, Target date recurring in advance, Target date recurring in arrears, Target date usage, Target date measured

Separate target dates per charge type, when they differ

Invoice date

The date on every invoice in the batch

Invoices / Open drafts

How many invoices the batch holds, and how many are still drafts

Error messages

Problems encountered while generating or posting, recorded per account

Posting a batch posts every draft in it, after checking that the accounting period for the invoice date is open. A batch can only be cancelled while none of its invoices is posted; cancelling it cancels the drafts inside.

Note on target dates versus the invoice date: The target date decides what is billed — everything billable up to that date. The invoice date is the date on the document and the one that determines which accounting period the invoice falls into. They are set separately because you often bill a period that has already ended.

Invoice proposal

Proposals are a planning step before a batch. Younium scans the billable charges for accounts or orders and proposes what would be invoiced, so you can see the shape of a run before creating any drafts. You then convert the proposals you want into a batch of draft invoices.

Proposals can be regenerated for all active accounts, for selected accounts, or for selected orders, replacing what was there before. Where the underlying orders have changed since a proposal was made, the out-of-date proposals can be regenerated on their own.

A proposal is not an invoice and has no accounting effect.


3. Generating Invoices

You can bill in three ways: a batch across accounts, a single order, or a selection of charges. All three produce draft invoices in a batch.

Before generating, Younium checks that target dates are supplied for every charge type in scope, and that the accounting period for the requested invoice date is open. Only one billing run per legal entity proceeds at a time, so two people cannot bill the same charges twice.

Problems found while generating do not stop the run. They are recorded against the account they affect and shown with the batch's progress, so one account with a missing tax template does not block everyone else's invoices.

Credit invoices

A credit invoice corrects a posted one. You select the lines to credit from the posted invoice and, optionally, give the credit its own date. Younium warns where a selection of lines is likely to produce an unintended result.

Base currency amounts on a credit. Each credit line carries the exchange rate of the line it credits, so a credit of an invoice whose lines have different rates — for example a change-order invoice with a line at the new rate and a reversal at the original rate — keeps each line at its own rate. The credit's Total Amount in base currency is the sum of its lines' totals in base currency plus its Total Rounding Amount in base currency, so it always agrees with the credit's subtotal, tax and rounding. Balance amount in base currency follows from it.

When Use total rounding is on and the credit's rounding is the exact opposite of the credited invoice's rounding (as on a credit of every line), the credit reuses the credited invoice's rounding in base currency with the sign reversed, so a full credit nets to zero against the original in base currency. Any other rounding is converted at the credited invoice's exchange rate.

On-account invoices

An on-account invoice bills an amount that is not tied to charges on an order — a prepayment or an amount held against the account.

An on-account invoice can be credited in the same way as any other posted invoice: select the lines to credit and, optionally, give the credit its own date. The credit note reverses the amounts, links back to the original invoice, and carries over the accounts receivable, recognised revenue and tax template used on the credited line, so it posts with the same accounting treatment as the original. Because on-account lines are not tied to a charge, the line-selection warning described under Credit invoices, which depends on charge service periods, does not apply to them.

Invoice fees

An invoice fee template defines a reusable fee — a card surcharge, a paper-invoice fee, a processing fee — that Younium adds to invoices automatically when they are generated, instead of a one-off charge being added to each invoice by hand. A fee template is self-contained: it carries its own tax template and financial account, so fees do not appear in the product catalogue or in product revenue reporting.

A template is assigned to an account, or to an order that is invoiced separately. Younium picks one set of templates per invoice, in this order:

Priority
Source
Applies when

1

Templates chosen for an invoice preview

Previewing an order's invoices

2

Templates assigned to the order

The order is invoiced separately and has templates

3

Templates assigned to the account

Otherwise

Order templates replace the account's templates rather than adding to them. Younium adds one fee line per template, after all product lines are priced, and then totals the invoice including the fees.

Every fee is calculated from the invoice's totals before any fee is added, so a percentage fee never compounds on another fee. The fee is the template's Percent of the chosen Fee basis, plus the flat Amount for the invoice currency, limited to the Max fee amount where one is set. With a Fee basis of Total the fee includes tax, so Younium takes the tax out of the fee rather than adding it on top; with Subtotal tax is added to the fee.

Younium skips a template for an invoice when the invoice total before fees is zero or less, when the template's Value type needs a flat amount and none is defined for the invoice currency, or when the calculated fee is zero.

Note on supported integrations: Fee lines are added only when no accounting integration other than QuickBooks is active for posting invoices and no tax-calculation integration (Avalara or TaxJar) is active. On other tenants templates can still be configured and assigned, but no fee lines appear on invoices. Fee lines sent to QuickBooks use the template's External ERP id; posting fails if it is missing. See QuickBooks.

A template cannot be deleted while it is assigned to an account or an order, or set as the default for new accounts. An order accepts fee templates only on its latest version and only when it is invoiced separately. Adding or removing fees on an account or order is recorded in its log.

Settings

Setting
Description
Default

Name

Name of the template; also the product name on the fee line

Required

Description

Used as the invoice line description; the name is used if empty

Empty

Active

Only active templates are applied to invoices

Value type

Whether the fee is a Percent, an Amount or Both

Percent

Percentage applied to the fee basis; greater than 0 and up to 100

Empty

Fee basis

Subtotal or Total of the invoice before fees

Tax template

Tax treatment of the fee line

Required

Financial account

Account the fee line is booked to

Required

Product code

Product code for the fee

Empty

External ERP id

Identifier of the fee in the accounting system

Empty

Currency / Amount / Max fee amount

Per-currency flat amount and a cap on the total fee; the cap applies when a percentage is set, only one price per currency is allowed, and amounts cannot be negative

Fee lines carry the Is fee and Fee Template fields, and invoices carry Pre-fees subtotal, Pre-fees tax and Pre-fees total. Orders accept fee templates in order import, edit and change requests, and in the Data Management Tool.

Previewing invoices

An order's future invoices can be previewed without creating anything, optionally with the revenue they would generate. This is what quoting and cash-flow reporting use to show what an agreement will bill over its life.

For a charge that is aligned to the subscription and has already been billed up to the end of its current term, the preview keeps projecting it into future periods only while the order is Active — an active order is assumed to keep renewing for this purpose, whatever its Auto-renewal setting is set to. Once an order is no longer Active, for example after it has been cancelled, the preview stops projecting that charge beyond the term it has already billed, even if Auto-renewal was left switched on before cancellation.

Order discounts follow the same assumption. A discount whose end is set to align with the order is treated as running for as long as the projected renewals do, so the forecast shows discounted amounts for every projected renewal period rather than the full price. This applies to the invoice forecast only: the discount stored on the order keeps its current end date, and real invoicing, invoice previews and batch invoicing are unchanged. A discount with a specific end date is never extended past that date.

Note on forecast renewal vs. automatic renewal: Assuming an active order will keep renewing is specific to previewing and cash-flow reporting. It does not change whether Younium renews the subscription itself — that still depends on the Auto-renewal setting, described under Automatic renewal.


4. Posting Invoices

Posting finalises a draft. Younium assigns the invoice number, creates the accounting entries, updates revenue schedules, generates the document and any e-invoicing attachments, sends it according to the delivery method, and publishes the events integrations act on.

You can post one invoice, a selection, or a whole batch. Before each is posted, Younium confirms the accounting period is open and the invoice is still a draft, and prevents the same invoice being posted twice from two places at once.

A large batch posts in the background, so a run of thousands of invoices does not hold up the interface. Progress is reported on the batch, and an event is published when the batch completes. A batch can also be left for a scheduled run rather than posted immediately.

When the background run finishes, it reports how many invoices it posted and how many it could not. An invoice that fails to post stays a draft, with the reason recorded in the batch's error messages, so a run can complete without posting everything. Read the two counts rather than the run's completion alone to see whether the whole batch posted. The counts are also returned where the public API reports the status of a posting run, and are left blank when a run is still posting after the wait for it has timed out. An invoice posted by someone else while the run is under way is counted as posted by the run.

After posting, the invoice appears in Payments as outstanding until it is settled. Where the invoice's payment method is Stripe or GoCardless, collection can start automatically.


5. Working with Draft Invoices

While an invoice is a draft you can change its header fields and addresses, remove lines from it, or cancel it entirely. Cancelling releases any usage or measurement the invoice had claimed, so it can be billed on a later run.

A posted invoice's email can be resent, with attachments, without posting anything again.

Where a draft contains lines that come to zero — usage with no consumption, or a recurring charge that prices to nothing — Younium can warn you before you post, according to the zero-line settings below.


6. Invoice Settings

These are tenant-wide and control how invoices are numbered, presented, delivered and chased.

Totals and minimums

Setting
Description

Use total rounding / Total rounding account

Rounds the invoice total, and the account the rounding difference posts to

Minimum Invoicing Amount

Invoices below this total are not raised, so you are not sending documents that cost more to process than they collect

Zero-amount lines

Four settings decide whether a line that prices to zero appears on the finished invoice. The distinction between them is whether a quantity was recorded, which is what separates "nothing was used" from "usage was recorded and priced to nothing".

Setting
Description

Include zero amount lines for usage charges without any linked quantity

Shows usage lines where no consumption was recorded at all

Include zero amount lines for usage and measurement charges with linked quantity

Shows usage and measurement lines where a quantity was recorded but priced to zero

Hide usage and measurement lines with zero amount

Hides zero usage and measurement lines from the document

Hide recurring lines with zero amount

Hides zero recurring lines from the document

Payment references and QR codes

Setting
Description

Create OCR number

Generates a structured payment reference when the invoice is posted, so incoming payments can be matched automatically

OCR checksum method

The reference format: No checksum, Modulus 10, Modulus 11, FIK, Finnish reference number or Swiss reference

Swiss bank reference

The bank reference used on Swiss payment slips

Enable Swiss QR Code / Enable EPC QR Code

Adds a scannable payment slip to the invoice

Note on OCR numbers: Generating them requires the invoice number sequence to have no prefix, because the reference has to be numeric. Finnish reference numbers additionally require the current invoice number to be at least 100.

Documents and delivery

Setting
Description

Invoice template

The template used for the invoice document

Attach pdf to invoice

Attaches the PDF when the invoice is posted

Attach UBL to invoice / Attach Zugferd XML to invoice

Attaches the electronic invoice formats

Map only Order Product Charge Name to Electronic Invoice

Sends only the charge name as the line description on electronic invoices

Subject / Message

The email text used when an invoice is sent, with separate wording available for manual sends

Credits

Setting
Description

Re-open one-off charges for invoicing after credit

Makes a credited one-off charge billable again, rather than treating it as already invoiced

Reverse usage at credit

Releases the usage behind a credited line so it can be billed again

Allow manual credits in older service periods

Permits crediting a service period that has already passed

Reminders

Younium chases overdue invoices in two ways, and you can use either.

A global reminder sequence of up to five steps applies to every account. Each step has its own template, subject and message, and is timed either by days after the due date or by days since the previous reminder.

Setting
Description

Days after due date for first invoice reminder … fifth

When each reminder is sent, counted from the due date

Number of days from first reminder … fourth

When each reminder is sent, counted from the previous one

Use number of days since last reminder

Chooses which of the two timings applies

First invoice reminder template … Fifth invoice reminder template

The document for each step

Include credit invoice in reminders

Counts credit invoices when working out what is outstanding

Include cc when sending invoice reminders

Copies the account's cc addresses on reminders

An invoice setting group is a reminder sequence assigned to particular accounts, for customers who need different treatment from the default. Each step in a group has:

Field
Description

Reminder order

Where the step falls in the sequence. Each order is unique within the group

Days after due date / Number of days from previous reminder

When the step is sent

Template, Subject, Message

The document and email wording for the step

The first step in a group cannot be deleted or reordered, so a group always has a starting point. A group cannot be deleted while accounts still use it. Groups can also carry their own subject and message for sending the invoice itself, not just its reminders.

An individual invoice can be excluded from all of this with Disable invoice reminder.


7. How Billing Runs Are Started

Flow
Started by
Produces

Batch across accounts

Selecting accounts and target dates

A batch of draft debit invoices

Single order

Invoicing one order

A batch, usually of one invoice

From proposals

Generating proposals, then converting the ones you want

A batch of drafts

Credit invoice

Crediting lines on a posted invoice

A credit invoice in a batch

On-account invoice

Creating one against an account

An on-account draft

Posting a batch

Posting from the interface, or leaving it for a scheduled run

Posted invoices, accounting entries, documents sent, events published

Cancelling

Cancelling a draft or a batch

Cancelled drafts, with usage released

Last updated

Was this helpful?