# Reconcile bank payments

> Match booked EUR transfers to invoices, explain an outstanding balance and investigate unapplied receipts.


Open **Zahlungen** in the Desk. Select a UTF-8 camt.053.001.08 statement or camt.054.001.08 notification for the IBAN configured in the operator file, then select **Zahlungen abgleichen**. The maximum file size is 2 MiB.

A booked individual EUR credit matches when its structured RF creditor reference identifies one invoice and the amount fits the remaining balance. On the invoice, **Zahlungsstand** shows applied payments, credit notes and the amount still open. A €20.00 transfer against €30.35 leaves €10.35. Receiving the same payment by notification and later by statement counts it once.

| Import outcome | What it means |
|---|---|
| Zugeordnet | The transfer reduced the invoice receivable. |
| Zu klären | The money was posted to unapplied receipts. The review list shows the receipt ID, bank reference, booking date, amount and reason. Investigate missing references, unknown invoices and overpayments with the bank record. |
| Bereits importiert | The account-servicer reference, amount, booking date and normalized RF agree with a recorded receipt. |
| Übersprungen | The entry is pending, reversed, a return, or a debit. |

A conflicting reuse of a bank reference rejects the entire import. A wrong receiving account, unsupported credit currency, batch booking or missing bank identifier also rejects the file. The immutable receipt retains the importing credential’s name. Keep the original XML in your bank archive. For a recognized wallet reference, copy the receipt ID and use **Gebuchten Zahlungseingang zuordnen** on the matching account. Invoice overpayments and refunds require a separate finance workflow. [Prepaid accounts](../docs/prepaid/)

## Connect an ERP

billd stages a balanced booking with each sealed invoice or credit note. Set its `TELCO_ACCOUNTING_URL` and `TELCO_BOOKING_TOKEN` to reach accountingd or an ERP implementing the same interface. The receiving service registers a named `booking` key. For invoice settlement it accepts idempotent `POST /bookings` and serves the net account balance at `GET /receivables/{id}`. A durable posting queue retries journal writes after an outage.

An operator can upload raw XML at `POST /bank-imports` and page through unapplied receipts at `GET /payment-review`. Pass the returned `next` as `before` for the next 100 rows. Read an invoice settlement at `GET /settlements/{id}` using its UUID. Decimal amounts are strings. See the [accounting API](../schemas/accounting.openapi.yaml).

If the ERP serves enrolled prepaid subscriptions, it must also implement the wallet enrollment and cumulative charge commands on the accounting interface. billd waits for the funded and operator-covered totals before closing the usage period. [Prepaid settlement](../docs/prepaid/)

After reconciling the bank receipts, finance can [export the month to DATEV](../docs/finance-export/) and compare per-account turnover with the adviser.
