Skip to content

Record receipts and purchase invoices

An ordinary purchase receipt or invoice is recorded as a voucher of its own, and the original file is attached to it. The receipt records the expense and its VAT. If the purchase is paid from the company’s account, the payment is recorded later from the bank statement. That is why the receipt is recorded as a liability that the statement row clears.

  • The receipt or invoice is a file (PDF, image or other), or the agent finds it in the place described in the home’s AGENTS.md.
  • You know how the purchase was paid: from the company’s account, with the company’s card or with your own money.
  1. Ask the agent.

    Record the invoice lasku-ohjelmistolisenssi-2026-03.pdf. It is paid from the company’s account.

  2. The agent archives the file. The program recognises the same file later, so the agent notices if the receipt has already been recorded.

  3. The agent previews the entry. It keeps the details read from the receipt (amount, receipt date, description) apart from its own proposal (expense account, counter-account, VAT treatment). The program builds the VAT lines with the rate in force on the receipt’s date. The preview also says whether the receipt is attached (attachment_present) and warns, naming the receipt, when the attachment is missing. The preview stores nothing. If a detail that decides the VAT treatment is missing, the agent asks you for it.

  4. Check and approve. The agent shows the details read from the receipt, its proposal and the resulting postings. For example, a software licence of €124.00 (including VAT 25.5 %) that is paid from the company’s account:

    Account Debit Credit
    7690 Atk-laite- ja ohjelmistokulut (IT hardware and software) €98.80
    1763 Arvonlisäverosaaminen (VAT receivable) €25.20
    2700 Ostovelat (trade payables) €124.00

    Check that the amount and date match the receipt, the expense belongs to the company, the account and VAT treatment are right, and the counter-account matches how the purchase was paid:

    How the purchase was paid Counter-account
    from the company’s account or with the company’s card 2700 Ostovelat (trade payables)
    with your own money 2740 Muut lyhytaikaiset velat (other short-term liabilities; the company’s debt to you)
    in cash from the company’s till 1900 Käteisvarat (cash)

    The bank account 1910 is not the counter-account of a receipt, because only the statement rows are recorded to the bank account. That way its balance matches the statement.

  5. The agent seals the voucher exactly as you saw it. If something changed in between, the program refuses and the agent shows a new preview. If the same receipt is recorded again, the program returns the same voucher (replayed=true) and does not create a new one.

Commands the agent runs
Terminal window
aggountant artifact attach --file receipt.pdf
aggountant voucher list --attachment-ref <identifier>
aggountant capture-receipt record --dry-run < receipt.json
aggountant capture-receipt record --approved-preparation-hash <hash> < receipt.json

The program replies sealed receipt voucher #N (replayed=false).

When the purchase is also on the bank statement

Osio nimeltä “When the purchase is also on the bank statement”

A purchase paid from the company’s account or with the company’s card shows on both the receipt and the bank statement, and each is recorded once. The receipt gives the expense: the amount goes to the expense account and VAT against trade payables 2700, with the receipt attached to the voucher. The statement row gives the payment: in the bank statement import the row is recorded against trade payables 2700 without VAT, and it clears the receipt’s liability.

If you paid with your own money and the company pays you back, the same goes for account 2740: the receipt is recorded as a debt to you, and the repayment row on the statement clears it.

For example, the €124.00 software licence recorded above is paid from the account three days later. The statement row is recorded like this:

Account Debit Credit
2700 Ostovelat (trade payables) €124.00
1910 Pankkitili (bank account) €124.00

After the two vouchers the expense and the VAT receivable are in the books once, the bank account has gone down by the payment, and the trade payables balance is back to zero. The order does not matter: if the statement is imported before the receipt has been found, the row is still recorded to 2700, and the receipt recorded later clears it.

When you see how the month went at the end of the month, check that the bank account balance matches the statement’s closing balance and that the trade payables balance is only the sum of invoices not yet paid. If the same purchase was recorded as an expense from the statement row and also as a payable from the receipt, the bank balance matches, but the receipt’s amount stays in trade payables.

In the practice month you go through this with the real program.

When the bank statement has a payment for which no receipt can be found, the agent looks for it in the places described in the home’s AGENTS.md. aggountant’s own automatic receipt search is not in use yet, but the agent can search with its own tools wherever you have given it access. If the receipt is not found, the agent names the transaction as open and tells you what is missing. Then get the receipt from the seller or from your online shop account and give it to the agent.

A purchase is not recorded from a receipt without its attachment unnoticed: the program refuses to seal a receipt that has no attachment, because a sealed voucher cannot gain its evidence later. If the receipt is lost for good, tell the agent why. The reason is written into the voucher’s description as [liite puuttuu: reason] (“attachment missing”), and you approve it in the preview like the rest of the entry.

  • Domestic purchases, reverse-charge purchases and VAT-exempt purchases are recorded this way. The program does not handle partial deduction rights or imports here.
  • Outside consultation for an unusual receipt is not in use. The agent asks you or your bookkeeper.
  • The program does not link a receipt to its statement row. They meet on account 2700 or 2740, and the account’s balance tells whether something was left uncleared.

The limitations are described in full on What is ready and what is not.

  • CAPTURE_PREPARATION_CHANGED: something changed after the preview. The agent makes a new preview, and you approve again.
  • CAPTURE_ATTACHMENT_REQUIRED: the receipt has no attachment. The agent archives the receipt and records it again, or you tell why there is no receipt (When a receipt cannot be found).
  • PERIOD_CLOSING: the month’s close is waiting for your approval. If the receipt belongs to this month, reject the close and record the receipt. Otherwise record it in the next open month.
  • PERIOD_SEALED: the month is closed. Record the receipt in the next open month.
  • Other codes are explained on Error codes.