> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fynn.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Documents and payments

> The document list, the document view, paying with a stored payment method or by invoice, instalment plans and the customer balance.

The **Documents** section lists every document of the customer with date, number, payment method, status and amount: invoices, cancellation invoices, invoice corrections and credit notes. A document that corrects another one sits underneath the document it corrects. Drafts never appear, so a document shows up only once it has been finalised.

Every row opens the document view. The section is called **Documents** and its address is `/documents/:id`, because what sits here is not only invoices.

## The document view

![Document view of a paid invoice with invoice recipient, line items, VAT and download](https://mintcdn.com/fynnsubscriptionbilling/tv50Rqhs2iBwmkcc/images/customer-portal/en/rechnung-bezahlt.png?fit=max\&auto=format\&n=tv50Rqhs2iBwmkcc\&q=85\&s=7d4c281a817855b6ef68d29f5bf79a58)

A paid invoice with the recipient block, its line items and its attachments.

The heading names the kind of document and the amount, for example "Invoice for €1,404.20", with the document number underneath, ready to copy. A cancellation reads **Cancellation invoice**, a correction **Invoice correction** and a credit note **Credit note**. A customer therefore knows at first glance what they are holding.

Above it stand the sender, the issue date and the due date. Once the document is paid it carries the payment date as a badge.

### Invoice recipient

The **Invoice recipient** block is the address printed on the document: company, contact, postal address, VAT id, cost centre and PO number. It comes from the document itself and is not kept up to date afterwards.

> [!NOTE]
>
> When a customer moves, their old invoices do not change. An invoice records who was supplied at that time, and that state stays put. The current address is under [Billing details](https://docs.fynn.eu/en/guide/customer-portal/account-data.md).

### Line items and VAT

The line items show quantity, unit price, net amount and the period billed. Discounts appear as their own amount on the line, and the net amount is already the discounted one.

Below the items, every VAT rate gets a line of its own, for example `VAT 19%` and under it `VAT 7%`. An invoice with two rates states both separately instead of collapsing them into one tax total. A line at 0% names the reason the document itself carries, such as reverse charge. Without a stored reason only the rate is shown.

> [!NOTE]
>
> The line items are not there to recompute the invoice total. The invoice totals are what counts, and only those appear on the PDF.

### Attachments

The files belonging to the document are listed underneath: the PDF and, if you issue electronic invoices, the XML file. The PDF carries the document number as its file name, for example `R26-01000053.pdf`, and does so for credit notes and cancellation invoices alike. After the download it therefore already sits under its number in the accounting folder.

![Document view on a phone](https://mintcdn.com/fynnsubscriptionbilling/tv50Rqhs2iBwmkcc/images/customer-portal/en/rechnung-bezahlt-mobil.png?fit=max\&auto=format\&n=tv50Rqhs2iBwmkcc\&q=85\&s=c3261bb4a25c5800f3bb4152c360d13a)

The same invoice on a phone.

## Documents that belong together

Every document names the documents that belong to it, in both directions: the invoice carries its cancellation invoice and its credit note, the cancellation invoice carries the invoice it reverses. Each entry shows type, number, date, amount and status, and each entry opens that document.

A customer holding a credit note therefore sees at once which invoice is behind it, instead of matching numbers by hand.

## Status

| Status | Meaning |
| - | - |
| Open | Not paid yet and not yet due. |
| Overdue | The due date has passed. The portal counts days in the customer's time zone. |
| Collection in progress | A collection is running. The payment provider has not answered yet. |
| Paid | The incoming payment has been recorded. |

## Paying

Next to the document stands what is still to be done: the heading names the task, and underneath sit the customer's payment methods. The page opens on the payment method attached to the document, and the customer can pick another one.

If they pick a method Fynn can collect with, the button carries the outstanding amount, for example **Pay €1,404.20**. With **Pay by invoice** there is no button but the payment details: the customer transfers the money themselves.

### With a stored payment method

The customer picks one of their payment methods and Fynn starts the collection. The invoice then reads **Collection in progress**, not paid. Only a confirmed receipt makes it paid. A green tick before the payment provider has answered would make a returned direct debit look like a settled invoice.

A stored payment method needs no further approval by the customer, because it was authorised when it was stored.

### While a collection is running

A collection already under way is shown on the invoice: with the payment method, the time it started and, for SEPA direct debit, the day the collection is expected. For card and PayPal that day is left out, because those are charged right away. During that time the page asks the customer explicitly not to pay on top.

A second attempt is refused while the first one is with the payment provider. The customer therefore cannot pay twice.

### Pay by invoice

If the document is on **Pay by invoice**, the page shows the **Payment details** block without any further action: payee, IBAN, BIC, payment reference and amount, each ready to copy, plus a GiroCode for the banking app.

![Document view with instalment plan, payment details, GiroCode and the switch between next instalment and full remaining amount](https://mintcdn.com/fynnsubscriptionbilling/tv50Rqhs2iBwmkcc/images/customer-portal/en/beleg-ratenplan.png?fit=max\&auto=format\&n=tv50Rqhs2iBwmkcc\&q=85\&s=c939f4844d1b4a37629ea7392b347178)

The payment details with the GiroCode and the switch between instalment and remaining amount.

What is stated is always the amount still open, never the invoice total. A partly paid invoice therefore leads to a transfer of the remainder, and a settled invoice names neither bank details nor a GiroCode, because there is nothing left to transfer.

The payment reference is the one shown on the page and nothing else: the invoice number for an invoice without a payment plan, the reference of the instalment for an instalment. Your payment matching recognises incoming money by exactly that string, which is why it is also in the GiroCode.

> [!TIP]
>
> The GiroCode is only generated when the sales channel has bank details on file and an amount is still open.

> [!NOTE]
>
> "Pay by invoice" is the name of the payment method. The money that arrives afterwards is a bank transfer. Keeping the two apart saves you questions as soon as a customer reads both on one page.

## Instalment plan

If an invoice belongs to a payment plan, the view shows the instalments with number, date, amount and status. What is due is the next open instalment, not the whole invoice: the heading then reads "Pay instalment 1 of 3", and beside it stands how many instalments are paid.

The customer switches between **Next instalment** and **Full remaining amount** themselves. Amount, payment reference and GiroCode change with it, the rest of the page stays put. Invoices without a plan do not show the section.

## Payments

The **Payments** section lists every payment attempt with date, payment method, the invoice it belongs to and its status, returns and refunds included. Each row carries two amounts: the amount that was to be collected and the amount that actually moved. On a refund or a partial capture they differ, which is exactly why both are there.

## Balance

The balance summarises what is open and what has been credited:

| Figure | Meaning |
| - | - |
| Open amount | Sum of open items, credit notes counted negative |
| Of which overdue | The part whose due date has passed |
| Credit | The customer's credit balance |
| Ageing | The open amount split into not due, 1 to 30, 31 to 60 and over 60 days |

> [!WARNING]
>
> The open amount and the credit are two separate figures and are not netted against each other. Whether a credit is applied to a given invoice is decided per document during billing.

The endpoints for documents, payments and balance are in the [API reference](https://docs.fynn.eu/v2-customer-api/customer-billing.md).
