maesn
For product and engineering teams

Posting patterns: How to write invoices, payments and journal entries into your customers’ general ledger

When your product sends financial data into a customer’s accounting system, it has to decide how that data is recorded: as an invoice, a booking proposal, a payment or a journal entry, in detail or as a summary and on which accounts.

Lennart Svensson, CTO and Co-Founder at maesn
Lennart Svensson
CTO and Co-Founder ·
An invoice on the left and a ledger account with debit and credit entries on the right, connected by three lines
The problem

A posting pattern is a product decision

A posting pattern is the rule that decides which records your integration creates for a transaction, at what level of detail and on which general ledger accounts. The records are invoices, booking proposals, payments and journal entries.

Most teams never make this decision on purpose. They send what the API accepts and move on.

The customer’s accountant sees the result. Sales arrive as plain revenue, so nobody can tell who still owes money. Card payments come in as single entries when the accountant wanted one per payout. The accountant fixes it by hand at month-end and stops trusting what your product sends.

How your integration records transactions is therefore a product decision, not a technical detail.

A worked example

One invoice, three dates and two VAT rates

A single invoice can require several entries in the books. A company leases a coffee machine to a client and sends an invoice on 15 October with three lines:

  • the monthly leasing fee of €1.000 for 15 October to 14 November
  • a one-off service visit for €100
  • a carton of coffee beans for €20

The service visit and the delivery of the beans follow on 4 November. The client pays the full amount, €1.330,40 including VAT, on 1 November.

Example invoice15 October to 14 November
15 Oct1 Nov14 Nov
  1. Leasing service period
  2. Invoice issued
    15 Oct
  3. Payment received
    1 Nov
  4. Service visit and beans
    4 Nov
October
€500 revenue
November
€620 revenue
The example invoice on a timeline. The service period crosses the month boundary, and the payment falls on a date of its own.

The revenue belongs to two months. The lease covers part of October and part of November. To keep the numbers simple, this example splits it evenly: €500 per month. The service visit and the beans are one-off and count in November, the month they are provided. That puts €500 in October and €620 in November.

The invoice carries two VAT rates. In Germany the lease and the service visit are taxed at the standard rate of 19%, the coffee beans at the reduced rate of 7%. The accounting system records each rate separately, usually through its own revenue account or tax code.

The payment has its own date. The client pays on 1 November, after the invoice and before the service visit, and that one payment settles the whole invoice.

One common way to record this uses a deferral: the November revenue is parked first and released later. Each step moves the same amount twice, as a debit on one account and a credit on another.

VAT appears as one line of €210,40: €209,00 at 19% and €1,40 at 7%. Which tax account and which period it falls into depends on the country and on the company’s VAT method.

  • 15 October, the invoice. Debit receivable €1.330,40, credit leasing revenue €500, deferred income €620 and VAT €210,40. The receivable is the money the client still has to pay. Deferred income is a holding account for revenue that is earned later.
  • 1 November, the payment. Debit bank €1.330,40, credit receivable €1.330,40. The invoice was an open item, an unpaid invoice the ledger tracks against the client, and the payment closes it.
  • November, the release. Debit deferred income €620, credit leasing revenue €500, service revenue €100 and goods revenue €20.

The result in the general ledger is the same in every system: €500 in October, €620 in November. The route differs. Dynamics 365 Business Central can take the invoice as one document and spread the revenue through a deferral template, if the customer has set one up.

For DATEV Rechnungswesen, the invoice usually arrives already split by month, as separate booking lines. Your integration has to know which route the customer’s system takes.

The reduced rate for coffee from Annex 2 of the German VAT Act, deferral templates from Microsoft’s Business Central documentation, both retrieved 20 November 2026.

The four records

Invoices, booking proposals, payments and journal entries

An integration can create four kinds of records in an accounting system. Invoices and payments record who owes money and when it was paid. Journal entries move amounts directly between general ledger accounts. Booking proposals are copies of invoices or bills whose original already exists elsewhere.

The rule that carries most decisions

Whatever is still owed, by a customer or to a supplier, is written as an invoice or bill, and the payment is written against it later. Where a system has its own record for invoices or payments, that record is usually the better choice.

The four records and when to use each
RecordYou sendUse it whenTypical mistake
Invoice or billA document with customer or supplier, lines, tax and due dateSomeone owes money for a sale or purchase, e.g. a B2B invoice with payment termsLeaving it as a draft, so it never counts in the books and no payment can be matched to it
Booking proposalA copy of an invoice or bill that exists elsewhere, usually with the documentThe system only books the document and does not hold the original, as with DATEV Unternehmen OnlineTreating it as booked: it reaches the books only after it has been reviewed and released
PaymentA payment linked to one or more invoices or billsMoney arrives for an invoice or leaves for a billNo link to the invoice, so it stays open and someone has to match it by hand
Journal entryDebit and credit lines directly on accountsAmounts with no record of their own: payouts, fees, summaries, shifting revenue between monthsUsing it for everything, so customer and supplier balances stay empty

Invoices and bills stay on the customer’s or supplier’s account as an open item until they are paid, like the coffee machine invoice until 1 November. Many systems accept them as drafts first, and a draft does not count until it is approved. A payment linked to the invoice closes the open item, in full or in part.

Booking proposals are the typical workflow with DATEV Unternehmen Online. Your integration sends the data and the document, and the accountant reviews and posts it. Our guide to integrating with DATEV Unternehmen Online covers the details.

Journal entries write account movements directly onto general ledger accounts, with debits and credits that balance. In some systems, such as DATEV Rechnungswesen, a journal line can also go to a customer or supplier account and so record an invoice or payment. Others, such as Xero, do not allow that.

Xero on the accounts that take no manual journals, among them Accounts Receivable and Accounts Payable, retrieved 20 November 2026.

The level of detail

Detail posting or one summary posting per day

The coffee machine invoice is a single document. An online shop or a payment provider can produce thousands of card payments a day. For that volume your integration has a choice: post every payment as its own entry (detail posting), or add them up and post one entry per day or per payout (summary posting).

Which is right depends on whether the money is still owed. An invoice with payment terms has to be posted on its own, because a payment will later be matched to exactly that invoice. A card payment is paid the moment it happens, so nothing has to be matched later and summarising is safe.

Detail posting lets the accountant find every single payment in the accounting system. Summary posting keeps the general ledger lean and needs far fewer API calls, which matters where the system limits requests or processes writes in batches.

Worked example

Over one week, an online shop takes 1.200 card payments worth €48.000. The card provider holds on to the money until the end of the week, then keeps €720 as its fee and transfers the remaining €47.280 to the shop.

Posted one by one, the sales alone are 1.200 entries. As a summary, the week takes three lines: sales of €48.000, the fee of €720 and the payout of €47.280.

While the card provider holds the money, it sits on a clearing account. The sales go in, the fee and the payout go out and the account ends at zero.

A summary has a single date, so all its revenue lands in one month. If a payout covers sales from late October and early November, split the sales into two entries at the month boundary, so each month keeps its own revenue.

The individual payments stay in the system they came from. In Germany the GoBD, the rules for proper digital bookkeeping, allow summarised entries in the general ledger as long as they can be traced back to their individual items.

If that system is your product, the payments have to stay available, or at least exportable, for as long as the customer must keep their records.

Maesn writes what your product sends: individual invoices, bills and payments, or a summary as a journal entry. Whether to summarise, and how, stays a decision for your product.

Summarised entries from the GoBD letter of the German Federal Ministry of Finance of 28 November 2019, retrieved 20 November 2026.

Between two events

Clearing accounts hold money between two events

A clearing account is a holding account for money on its way. Whenever money arrives in two steps, or passes through someone else, the clearing account holds it in between, and once both steps are posted it returns to zero.

Clearing accountOne week of card payments
InSales €48.000
OutPayout €47.280 + Fee €720
Balance after the payout€0
The clearing account in the card example. What goes in equals what goes out, and the balance after the payout is zero.

Three situations need one in almost every integration that moves money:

  • Payouts. A payment provider collects the money, keeps its fee and pays out the rest later, as in the card example.
  • Card spending before the receipt. An employee pays with a company card today. The receipt, which shows what was bought and how much VAT it contains, arrives next week. Until then the amount waits in clearing.
  • Money in transit. A transfer leaves one bank account on Friday and reaches the other on Monday.

The zero balance is the check. If something is left over, an entry is missing or has the wrong amount, and the size of the difference usually shows where to look: €720 left over after the card payout points to the missing fee. A clearing account for company cards that grows every month means receipts are not coming back.

Use one clearing account per source: one per payment provider, per card programme and per bank route. With a shared account, a leftover could belong to any of them and someone has to search several statements to find out.

Which accounts to use is decided in the customer’s chart of accounts, so your integration has to know the right one for each source before it writes anything. That makes clearing accounts part of onboarding from the first connection.

The accounts

Chart of accounts mapping: Your integration checks, the accountant decides

Your integration reads the customer’s chart of accounts and checks every account before it writes. Which account a transaction lands on is the decision of the customer’s accountant.

In practice, your integration reads the chart, the tax codes and dimensions such as cost centres during onboarding. The customer or their accountant assigns each of your categories once, and your product stores that mapping per connection. Revenue at 19%, revenue at 7%, payment fees and every clearing account all need an assignment.

If the accountant later deactivates an account, the next write to it should stop with a clear message before it reaches the accounting system. Our article on chart of accounts mapping covers onboarding flows, defaults and changes over time in depth.

When something is wrong

Corrections are updates in an open period and reversals in a locked one

A wrong amount, a wrong account, an invoice sent twice: how your integration corrects a mistake depends on whether the system allows changes to a posted record and whether the month is already closed.

Changing a record. Some systems let you update an invoice after it is posted. QuickBooks Online takes two shapes of update. In a full update, writable fields omitted from the request body are set to NULL, while a sparse update changes only the fields you send.

Many other systems do not allow changes to a posted invoice at all, even in an open month. There the correction is a credit note that cancels the invoice, followed by a new one.

Locked months. At month-end close, the accountant checks the books and closes the month. After that the month is usually locked and nothing in it can be changed. In DATEV this lock is called Festschreibung (period finalisation): once a posting batch is finalised, neither the batch nor a single entry in it can be deleted or changed.

A correction then takes two entries. A reversal repeats the original entry with debit and credit swapped, which cancels it, and a new entry carries the correct values. Both stay visible in the books, and both are dated in a month that is still open, usually the current one.

A write that changes an entry in a locked month is usually rejected, either right away or once the system processes it.

Retries must not post twice. A request times out, the integration cannot tell whether the accounting system received it and sends the invoice again. Now the invoice is in the books twice and the customer’s receivable has doubled.

An idempotency key guards against this: each business event carries a unique ID, and a second request with the same ID creates nothing new.

Without such a key, the integration first has to find out whether the record already arrived, for example by searching for its invoice number. With maesn you send one idempotency-key header and a retried write is safe: maesn returns the stored answer instead of creating a second invoice or journal entry.

Full and sparse updates from Intuit’s invoice reference, finalised posting batches from DATEV’s help centre, both retrieved 20 November 2026.

Closing the loop

Payments written against open items reconcile in the accounting system

When each payment is linked to the invoice it pays, the accounting system reconciles it by itself, and month-end close only has to deal with the exceptions.

When the client’s €1.330,40 for the coffee machine invoice arrives on 1 November, the accountant wants to see that invoice marked as paid. If your integration sends the payment with a link to the invoice, the system closes the open item, and if the client paid only part, it keeps the rest open. The customer’s balance is right the same day.

AR reconciliation means making sure every invoice that looks unpaid in the books really is unpaid. With the link in place, the system does that work, which is what makes it possible to auto-post payments at scale, hundreds a day, without anyone touching them.

Without the link, the money still shows up in the bank account, but the invoice stays open and someone has to match the two by hand at month-end.

Reconciliation also runs the other way. Many customers pay by bank transfer, and the accountant then marks the invoice as paid directly in the accounting system. Your product was not involved, so it still treats the invoice as open and may send a payment reminder for an invoice that was settled last week.

Your product therefore needs the payments that were recorded in the accounting system. Some systems push an event when a payment is recorded, many push nothing at all. With maesn you subscribe to one webhook for payment events, which are live on some systems and available on request on others.

Where no event is available yet, your product polls for new payments. Our page on payment reconciliation shows the full flow.

Key facts

Each accounting system accepts its own set of records

Every accounting system has its own rules for what your integration can send. Some hold invoices themselves and accept them directly, along with payments and journal entries. Others only do the bookkeeping and take invoices as booking proposals. Some confirm a write right away, others only report back once it has been processed.

The same posting pattern therefore looks different from one system to the next. A sales invoice goes in as an invoice in one system and as a booking proposal with the document attached in another. Its payment is linked to the invoice in one system and written as a booking line in the next.

Which records eight systems accept
SystemInvoicesBooking proposalsPaymentsJournal entries
DATEV Unternehmen OnlineNoYesNoNo
DATEV RechnungswesenNoNoNoYes
Lexware OfficeYesYesYesNo
XeroYesYesYesYes
Exact OnlineYesYesYesYes
Dynamics 365 Business CentralYesYesYesYes
QuickBooks OnlineYesOn requestOn requestYes
sevdeskYesYesYesNo

On request means the system supports the record and maesn makes it available on request.

Some systems confirm only after processing. DATEV is the best-known example: writes run as booking proposals or posting batches, and the system confirms them only once they have been processed. The other six systems in the table confirm a write immediately.

For such a write, the call answers with a task ID, and maesn can close the loop with a webhook: when the system produces the outcome, you get an event telling you whether the write succeeded or failed. More on asynchronous processing.

With maesn, your product sends its records in one data model, and maesn translates them into the format each system expects. Your product decides which records to send and needs no separate integration for every system.

The decision

The right posting pattern per use case

Which pattern fits depends mostly on what your product does. Anything someone still has to pay goes in as an invoice or bill, with the payment linked to it later. High volumes of payments that are already settled go in as summaries, through a clearing account.

Posting pattern, clearing account and mapping effort per use case
Use caseYour product writesClearing accountMapping
AR automation and collectionsInvoices created in your product go in as invoices. Where they already exist in the accounting system, your product writes payments against them. Fees and interest go in as separate invoices or journal entries, depending on who charges themWhen payments first land on a collection account and are passed on after feesSimple: receivables, fees and interest
AP automation and paymentsSupplier invoices as bills, each payment run written against them. Protection against duplicates matters most, because the biggest risk is a bill landing twicePossibly, for money that has left in a payment run and is not on the bank statement yetMost work: every bill needs an expense account, a tax code and often a cost centre
Expense and spend managementCard payments to a clearing account as they happen, moved to the expense account once the receipt arrives, one entry per expense. The monthly card bill as one entryYes, per card programmeTakes work: your expense categories have to match the customer’s chart of accounts
Billing and payment providersInvoices to business customers with payment terms one by one. Payments that are settled immediately, like card payments, summarised per payoutYes, one per provider, carrying sales, fees and payoutModerate: revenue per VAT rate, fees and the clearing accounts
Before you build

Decide the posting pattern before the first write

A posting pattern is cheapest to choose before the first customer connects. Once hundreds of customers have invoices in their books without open items, or payments that are not linked to them, fixing it means a migration in every one of those ledgers, each with its own accountant and its own locked periods.

Write down the pattern per transaction type, the clearing accounts per payment source and the correction path per system, then build against that list.

FAQ

Frequently asked questions

Should my integration write invoices or journal entries?

Write an invoice or bill whenever money is still owed, by a customer or to a supplier, as long as the system has an invoice record. That gives the accounting system something to match the payment against. Keep journal entries for amounts with no record of their own, such as payouts, fees and shifting revenue between months.

Which software automates AR journal entries and posts them directly to the ERP?

AR automation platforms do this through an accounting integration that writes payments, fees and adjustments into the customer's ERP. With a unified API such as maesn, one integration covers 30+ ERP and accounting systems: the platform builds one integration, and maesn translates its records into each customer's system.

How do I book an invoice whose service period spans two months?

Split it by month. The share of the service that falls into each month counts as that month's revenue, either through the system's deferral feature or through separate entries per month. One-off items count in the month they are delivered. A lease from 15 October to 14 November is split between October and November.

Can payments be posted to the general ledger automatically?

Yes, as long as each payment is linked to the invoice it settles: through a payment record in most systems, or in DATEV Rechnungswesen through a booking with the same invoice number. The accounting system then closes the open item, and month-end close only has to handle the exceptions. Without that link, someone matches the payment by hand.

How do I automate AR reconciliation with an ERP?

Link every payment to its open invoice, and run fees and payouts through a clearing account that returns to zero after each payout. Payments recorded directly in the accounting system also need to reach your product, through webhooks or polling, so it never chases an invoice that is already paid.

What is summary posting, and is it allowed?

Summary posting records many paid transactions as one entry per day or per payout. It is common for card and payment provider volumes, and acceptable as long as every single transaction can still be traced in the system it came from. In Germany, the GoBD require exactly that.

How do I correct an entry after the period is locked?

Post a reversal and a new entry instead of changing the original. Once a month is locked, most systems reject changes, and in DATEV finalised entries (Festschreibung) cannot be changed at all. The reversal cancels the original entry, the new entry carries the correct values and both stay visible in the books.

Decide the posting pattern once, write it into 30+ systems.

With maesn, your product sends its invoices, payments and journal entries in one data model, and maesn translates them into the format each accounting system expects.