Month-end close
Month-end close with an AI agent: a fixed order for a German ledger
A month-end close with an AI agent works when the agent is connected to the ledger and follows a fixed order: bank lines complete, receipts booked, open items, cash book, recurring invoices, depreciation and deferral lines, VAT figures, trial balance, and the period lock last. At jahresabschluss.io, Claude or ChatGPT work on the books of one German company through named tools, and the software already books several of these steps on its own. Below you find the order with its reasons, one worked month with example figures, a prompt you can reuse, and the limits.
Last reviewed: 2026-11-25
Who this page is for, and what you need
This page is for companies that keep double-entry books under the German Commercial Code (Handelsgesetzbuch, HGB): corporations such as GmbH, UG, AG and eG, partnerships such as OHG, KG and GmbH & Co. KG, and sole traders who draw up a balance sheet. Businesses with cash-basis accounting (Einnahmen-Überschuss-Rechnung, EÜR) can use most steps, but they have no deferrals.
You write to your assistant in English. The ledger stays German: account names, booking texts and every tax filing. The annual financial statements must be drawn up in German and in euro (Section 244 HGB). Claude or ChatGPT connect by sign-in at https://jahresabschluss.io/mcp, one connection for one company; the setup guide is linked at the end. Reading is always included. Booking needs the right that the consent page calls Buchen.
The nine steps, in order, each with its tool and its finish line
The order follows one rule: a step comes after everything its figures depend on. The tool names are the real names on our server.
1. Bank lines complete
list_bank_accounts with the fiscal year returns the statement balance and the ledger balance of each bank account. list_bank_transactions with status unbooked shows what is open. Done: no unbooked line is dated in the month, and each difference is EUR 0.00. Reason: a bank line is booked on its bank date, so every later figure depends on it.
2. Receipts booked
list_receipts shows each receipt with its state. For a waiting receipt the agent reads get_receipt_proposal and books with confirm_receipt after your yes. dismiss_receipt sets a duplicate aside. Done: no receipt of the month is waiting. Reason: at a company that draws up a balance sheet, expense and input VAT come from the receipt.
3. Open items
list_open_items with status overdue lists invoices past their due date with the amount still open, for customers (kind debitor) and for suppliers (kind kreditor). A payment that is booked but not assigned to its invoice is assigned with match_bank_transaction. Done: every invoice in the list of open items (offene Posten) is really unpaid.
4. Cash book
list_cash_book reads the Kassenbuch (cash book), and book_cash_entry records a missing cash movement. Done: the month has no gap. Cash receipts and cash payments must be recorded daily (Section 146(1) sentence 2 AO, the German Fiscal Code), so this step should find little.
5. Recurring invoices
list_invoice_subscriptions shows recurring invoices with their next date. list_invoice_drafts with status offen shows drafts that have no invoice number and no booking yet. Done: no draft of the month is left. Reason: revenue and output VAT enter the books when an invoice is issued, not when its draft is created.
6. Depreciation and deferral lines
list_fixed_assets reads the Anlagenverzeichnis (fixed-asset register), and list_accruals reads the register of Rechnungsabgrenzungsposten (prepaid expenses and deferred income). Depreciation (Abschreibung, in tax language AfA) and the deferral lines that are due are normally booked by the software, as the next section explains. The agent checks them and calls run_depreciation with granularity month only when a month is missing. Done: both are in the journal.
7. VAT figures
get_vat_return with the period, for example 2026-11, returns the figures of the Umsatzsteuer-Voranmeldung (advance VAT return). The agent reads them after steps 1 and 2, because both can still change them. With the booking right it runs the official check (check_tax_filing), prepares the filing (prepare_tax_filing) and hands you an approval link (request_tax_filing_approval). Done: the check has passed. You file in the app.
8. Trial balance and report
get_saldenliste with as_of set to the last day of the month returns the Saldenliste (trial balance) and a flag that says whether debits equal credits. list_journal_entries with an account number explains a movement. Done: the trial balance is balanced, and each large change against the previous month has a reason.
9. Lock the period
list_bookkeeping_periods shows each month as open, partially_finalized or finalized. finalize_bookkeeping_period sets the lock (Festschreibung) up to a date. It needs a right of its own, see below. Done: the month shows finalized. Reason for the last place: the lock covers every booking up to the date.
What the software does on its own, so the agent does not do it twice
- Bank lines: fetched on a schedule from connected bank accounts. An hourly run books complete proposals. Automatic booking is switched on by default, with a confidence threshold of 85 percent.
- Receipts: the Autopilot books a clear receipt when it arrives. Reverse charge, intra-EU acquisitions and import VAT always wait for a person.
- Receipt and payment: every 15 minutes a job attaches uploaded receipts to payment bookings that still lack one. This job books nothing.
- Depreciation: a nightly job books, once per calendar month, the depreciation of the completed months of the current fiscal year. It leaves locked months out and reverses nothing.
- Deferrals: when a booked receipt names a service period that ends after the fiscal year, the software creates the deferral for the part after the year end, above a minimum amount (EUR 50 by default). A nightly job books each release line that has fallen due and skips locked periods.
- Not automatic: spreading a cost month by month inside one fiscal year. For that the agent calls create_accrual with method straight_line and frequency monthly, after your yes.
So the agent reads first. run_depreciation books only the difference between the depreciation plan and what is already booked, which means a repeated call adds nothing.
German rules behind the close
Advance VAT return
The return is due by the tenth day after the end of each filing period, and the payment is due on the same day (Section 18(1) UStG, the German VAT Act). The period is the calendar quarter, or the calendar month if the tax for the previous calendar year was more than EUR 9,000 (Section 18(2) UStG, which has further rules, for example for new businesses). With a Dauerfristverlängerung (standing extension), the tax office extends both deadlines by one month on application (Section 46 UStDV, the VAT implementing regulation). get_entity_settings shows the period and the extension of your company, and list_tax_deadlines shows the dates.
Entries in good time
Entries must be made individually, completely, correctly, in good time and in order (Section 146(1) AO; Section 239(2) HGB uses similar words). The GoBD letter of the Federal Ministry of Finance of 28 November 2019 (principles for keeping books in electronic form) calls the recording of non-cash transactions within ten days unobjectionable (margin no. 47). Where the time between recording and booking goes beyond the end of the following month, the letter accepts this only if the transactions were recorded continuously, correctly and completely before (margin no. 52).
No silent changes
An entry must not be changed in a way that the original content can no longer be determined (Section 146(4) AO, Section 239(3) HGB). The GoBD letter names the Festschreibung as one way for software to ensure this (margin no. 110). As an example of what is not allowed, it describes pre-recorded entries and batch bookings that stay open until the annual financial statements are prepared, so that every input can be changed without a log (margin no. 109).
The period lock: what it does, and why it is a separate right
The lock closes the books up to and including a date, also for bookings from earlier months. After it, the ledger refuses a new or changed entry with a date inside the period, and the nightly depreciation and deferral runs leave locked months out. A wrong entry is then corrected by a reversal with a date in an open period.
A locked period can be opened again in the app only: a person with editing rights confirms with the second factor, and each reopening is written to the change register (Änderungsregister). No tool does this over the connection. That is why locking is a right of its own, called finalize. An agent that books can reverse its own booking. An agent that locks cannot take the lock back.
The sign-in connection of Claude or ChatGPT cannot carry this right. Its consent page offers reading, booking and e-mailing invoices. To let an agent lock, you create a key by hand in the app under “KI-Agent & API” and tick the lock right there. finalize_bookkeeping_period then takes the date and confirm=true, and our server tells the agent to name the date and to wait for your explicit yes. You can also lock in the app yourself. There the app first counts the unbooked bank lines and the open receipt proposals up to the date. Over the connection nobody runs this count for the agent, which is why steps 1 and 2 come first.
One worked month: November 2026
All figures are an example. An example GmbH with the chart of accounts SKR03 files its advance VAT return monthly. This is the agent's report after a first reading pass on 3 December 2026:
Month-end close November 2026 (example figures)
Bank 1200 statement 30 Nov EUR 27,318.44
ledger EUR 27,377.94
difference EUR -59.50 1 card line unbooked
Receipts 2 waiting for review
Open items 1 customer invoice overdue: EUR 3,570.00, 16 days
Cash book balance EUR 180.00, no gap in November
Depreciation November is booked: EUR 500.00
Deferral November line is booked: EUR 100.00
VAT preview output VAT EUR 7,980.00
input VAT EUR 3,150.00
payable EUR 4,830.00 due 10 December 2026
After the card receipt (EUR 50.00 net + EUR 9.50 VAT) is booked
and settled against the bank line:
Bank 1200 ledger EUR 27,318.44, difference EUR 0.00
VAT input VAT EUR 3,159.50, payable EUR 4,820.50The card line of EUR 59.50 was unbooked because the bank feed had marked it as a possible duplicate, and such a line is never booked automatically. It was a real second purchase. confirm_receipt booked its receipt as a supplier invoice with EUR 50.00 expense and EUR 9.50 input VAT, and book_bank_transaction with the ID of the receipt settled it against the bank line. The other waiting receipt was a supplier invoice that had been sent twice. After a yes, dismiss_receipt set it aside.
The depreciation (an asset of EUR 36,000.00 written off over 72 months) and the deferral line (a licence of EUR 1,200.00 for twelve full months) came from the software. The agent read them and changed nothing. The order mattered for the VAT line: the amount payable moved from EUR 4,830.00 to EUR 4,820.50 because one receipt was missing at the first reading. The return is filed in the app before 10 December 2026, and November is locked after that.
A close prompt you can reuse
Save this text where your AI program keeps standing instructions. After that you only write the month:
Month-end close for the month I name. Work in this order and stop as soon as I have to decide something. 1. Bank: statement balance against ledger balance for each account. List every unbooked line dated in the month. 2. Receipts: show each proposal that waits. Book after my yes. 3. Open items: overdue invoices with days overdue, and payments that are booked but not assigned to an invoice. 4. Cash book: entries of the month and the closing balance. 5. Recurring invoices: drafts of the month that are not issued. 6. Depreciation and deferrals: is the month booked? Do not run anything that is already booked. 7. VAT: figures of the month, read again after steps 1 and 2. 8. Trial balance at month end: is it balanced? Explain the largest changes and say which call each figure comes from. 9. Give me one list: done, open, my decisions. Do not lock the period. Do not prepare the VAT filing before I say so.
With a connection that can only read, the agent can deliver steps 1 to 8 as a report. Each booking is a separate call, and the prompt tells the agent to ask you first.
Limits, and what stays with a person
- Filing: the agent checks and prepares the advance VAT return. It never submits a return to the tax office itself. You file in the app with your certificate PIN.
- Lock: not available through the sign-in connection of Claude or ChatGPT. It needs a separately created key with the finalize right, or you lock in the app.
- Bank: the agent cannot connect a bank account, cannot change the bank details of a business partner and cannot pay anything.
- Reports: the trial balance, the journal and the open items are available over the connection. The BWA (Betriebswirtschaftliche Auswertung, the usual German monthly management report) and a running balance sheet or profit and loss account are in the app only.
- Payroll: the software does not run payroll. Payroll entries reach the books as a payroll journal that you import in the app.
- Judgement: is a cost private, is a purchase a fixed asset, will a customer still pay? You decide. The responsibility for the books stays with the company, and this page is not tax advice.
Frequently asked questions
Can an AI agent run the month-end close alone?
It can do the routine: read bank, receipts, open items and the trial balance, compare them and book after your yes. Decisions, the VAT return itself and the lock stay with a person. With a connection that can only read, the agent returns a list of open points and changes nothing.
Does German law require a monthly close?
The rules cited on this page do not use that term. They require entries in good time (Section 146(1) AO) and, for a company that files monthly, the advance VAT return by the tenth day after the month (Section 18(1) UStG). A close every month is one way to meet both.
Can Claude or ChatGPT lock the period?
Only with a key that you create by hand in the app with the finalize right, plus your explicit yes to the date. The sign-in connection carries reading, booking and e-mailing invoices, so there you set the lock in the app.
What happens if a receipt arrives after the month is locked?
The ledger refuses a booking with a date inside the locked period. The receipt can be booked with a date in an open period. If it has to be in the locked month, a person opens the period again in the app, and this is written to the change register.
Will the agent book depreciation twice if the nightly run already did?
No. run_depreciation books only the difference between the depreciation plan and what is already booked for the fiscal year, and a monthly run stops at the current month.
Can the agent give me the BWA?
No. The BWA and a running balance sheet are in the app. Over the connection the agent has the trial balance at any date of the fiscal year, the journal and the open items. A summary it builds from them is its own calculation.