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.


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.
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.
- Leasing service period
- Invoice issued15 Oct
- Payment received1 Nov
- Service visit and beans4 Nov
€500 revenue
€620 revenue
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.
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.
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.
| Record | You send | Use it when | Typical mistake |
|---|---|---|---|
| Invoice or bill | A document with customer or supplier, lines, tax and due date | Someone owes money for a sale or purchase, e.g. a B2B invoice with payment terms | Leaving it as a draft, so it never counts in the books and no payment can be matched to it |
| Booking proposal | A copy of an invoice or bill that exists elsewhere, usually with the document | The system only books the document and does not hold the original, as with DATEV Unternehmen Online | Treating it as booked: it reaches the books only after it has been reviewed and released |
| Payment | A payment linked to one or more invoices or bills | Money arrives for an invoice or leaves for a bill | No link to the invoice, so it stays open and someone has to match it by hand |
| Journal entry | Debit and credit lines directly on accounts | Amounts with no record of their own: payouts, fees, summaries, shifting revenue between months | Using 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.
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.
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.
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.
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.
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.
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.
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.
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.
| System | Invoices | Booking proposals | Payments | Journal entries |
|---|---|---|---|---|
| DATEV Unternehmen Online | No | Yes | No | No |
| DATEV Rechnungswesen | No | No | No | Yes |
| Lexware Office | Yes | Yes | Yes | No |
| Xero | Yes | Yes | Yes | Yes |
| Exact Online | Yes | Yes | Yes | Yes |
| Dynamics 365 Business Central | Yes | Yes | Yes | Yes |
| QuickBooks Online | Yes | On request | On request | Yes |
| sevdesk | Yes | Yes | Yes | No |
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 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.
| Use case | Your product writes | Clearing account | Mapping |
|---|---|---|---|
| AR automation and collections | Invoices 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 them | When payments first land on a collection account and are passed on after fees | Simple: receivables, fees and interest |
| AP automation and payments | Supplier invoices as bills, each payment run written against them. Protection against duplicates matters most, because the biggest risk is a bill landing twice | Possibly, for money that has left in a payment run and is not on the bank statement yet | Most work: every bill needs an expense account, a tax code and often a cost centre |
| Expense and spend management | Card 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 entry | Yes, per card programme | Takes work: your expense categories have to match the customer’s chart of accounts |
| Billing and payment providers | Invoices to business customers with payment terms one by one. Payments that are settled immediately, like card payments, summarised per payout | Yes, one per provider, carrying sales, fees and payout | Moderate: revenue per VAT rate, fees and the clearing accounts |
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.
Frequently asked questions
Should my integration write invoices or journal entries?
Which software automates AR journal entries and posts them directly to the ERP?
How do I book an invoice whose service period spans two months?
Can payments be posted to the general ledger automatically?
How do I automate AR reconciliation with an ERP?
What is summary posting, and is it allowed?
How do I correct an entry after the period is locked?

State of Accounting API Connectivity 2027: Data on 31 Systems
How 31 accounting and ERP systems handle API access: OAuth, credential lifetimes, revocation, webhooks and ledger data. Collected in October and November 2026.
Lennart Svensson · 24 Nov 2026
Lexware Office Partnership Guide: Public API or Partner Route
The Lexware Office Public API runs on an API key from the XL plan. Reaching every plan takes a technology partnership. How Lexware's qualification works.
Dr. Themo Voswinckel · 24 Nov 2026
How to Integrate with Tripletex: One Session Token to Send
Tripletex combines two tokens into a third, puts the company in the username field and numbers new journal lines by row. What that means when you build.
Lennart Svensson · 24 Sept 2026Decide 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.