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

# Ledger

> See every invoice, credit note, payment and refund on a customer's account, their running balance, and record, edit, delete or export payments.

## Overview

The **ledger** is the financial history of a customer's account. Every invoice, credit note, payment and refund is recorded as a ledger entry, and together they give the customer's **balance**: how much they owe you, or how much credit they have.

* **Invoices** are debits: they add to what the customer owes.
* **Payments** and **credit notes** are credits: they reduce what the customer owes.
* **Refunds** reverse a payment.

A positive balance means the customer owes you money. A negative balance means they have credit, for example after you [cancelled a paid invoice](https://learn.nexudus.com/platform/finance/invoices/credits-refunds-and-cancellations.md#paid-invoices) or recorded a payment that isn't linked to an invoice. Credit is used to pay new invoices automatically.

## How to access

* **All customers**: go to **Finance → Ledgers**.
* **One customer**: open the customer and go to their **Ledger** tab. The tab shows the customer's current balance.
* **One invoice**: open the invoice and look at its **Payments** section.

![The Ledgers list](https://mintcdn.com/nexudus/Pe3pLOykvGoZdleH/images/platform/finance/finance-ledgers.png?fit=max\&auto=format\&n=Pe3pLOykvGoZdleH\&q=85\&s=d27a38944c87356e877cf24ad61e3d82)

The list shows each entry's description, customer, type, payment method, date, credit, debit and balance. Use the views to switch between **Payments & Refunds** and **Invoices & Credit notes**.

| Type | Meaning |
| - | - |
| **Invoice** | An invoice issued to the customer |
| **Credit note** | A credit note, for example from cancelling or crediting an invoice |
| **Payment** | Money received, or credit used to pay an invoice |
| **Cancellation/refund** | A payment reversed by a cancellation or refund |

![A customer's Ledger tab](https://mintcdn.com/nexudus/Pe3pLOykvGoZdleH/images/platform/finance/finance-customer-ledger.png?fit=max\&auto=format\&n=Pe3pLOykvGoZdleH\&q=85\&s=d6e1330195d07e35fda45a837f88e2b0)

## Record a payment

Record payments taken outside Nexudus, such as bank transfers, cash or checks, so the customer's balance and invoices are correct.

**1. Open the form**

In **Finance → Ledgers**, select **Add payment**. Or open the customer's **Ledger** tab, or the invoice, and select **Add payment**.

**2. Choose the customer and invoice**

Select the **Customer**, then the **Invoice** the payment is for.

**3. Enter the payment**

Enter a **Transaction reference** and **Transaction description**, the **Payment amount**, the **Payment method** and the **Transaction date**.

**4. Save**

Save the payment. The invoice is marked as paid once its payments cover its total.

![The Add payment form](https://mintcdn.com/nexudus/Pe3pLOykvGoZdleH/images/platform/finance/finance-ledger-add-payment.png?fit=max\&auto=format\&n=Pe3pLOykvGoZdleH\&q=85\&s=cb4848b58823f4c2a4f35980387d906c)

### Unallocated payments

If you don't choose an invoice, the payment is **unallocated**. It becomes credit on the customer's account, which is used automatically to pay their next invoices.

> [!WARNING]
>
> Link payments to an invoice wherever you can. If a customer paid for something outside Nexudus, create an invoice for it first, then record the payment against that invoice. That way you have a record of both the sale and the payment.

You can't add payments to voided invoices, or payments dated in a [locked period](https://learn.nexudus.com/platform/finance/invoices/invoice-settings.md#locked-period). Some locations don't allow cash payments.

## Edit a payment

Open the payment from the ledger. You can change its **Transaction reference**, **Transaction description** and **Transaction date**. The customer, invoice, amount and payment method can't be changed once the payment is saved: delete it and record it again instead.

## Delete entries

Tick the entries in the ledger and delete them from **Bulk actions**. Deleting can't be undone, so consider [exporting](#export-the-ledger) first.

* **Payments**: the invoice is recalculated, so it goes back to unpaid if the remaining payments don't cover it.
* **Credit used to pay an invoice**: the invoice goes back to unpaid, and the credit is returned to the credit note it came from.
* **Invoices** can't be deleted from the ledger. To correct an invoice, cancel, credit or refund it. See [Credits, refunds and cancellations](https://learn.nexudus.com/platform/finance/invoices/credits-refunds-and-cancellations.md).
* Entries dated in a [locked period](https://learn.nexudus.com/platform/finance/invoices/invoice-settings.md#locked-period) can't be deleted or changed.

Deleting a payment doesn't refund the customer. It only removes the record of the payment.

## Export the ledger

To export the ledger for all customers, go to **Finance → Ledgers**. For one customer, use their **Ledger** tab. Tick the entries and export them from **Bulk actions**.

The export includes customer names and IDs, transaction amounts, dates, references and IDs, payment gateway codes, the email address of the admin who recorded each payment, invoice references and ledger balances.

> [!TIP]
>
> Don't add payments just to make a balance look right. Find the entry that caused the difference and correct it, so the ledger stays a reliable record.

## Related

* [Invoices](https://learn.nexudus.com/platform/finance/invoices.md): the invoices behind each debit
* [Credits, refunds and cancellations](https://learn.nexudus.com/platform/finance/invoices/credits-refunds-and-cancellations.md): how credit notes and refunds are recorded
* [Payment gateways](https://learn.nexudus.com/integrations/payment-gateways.md): payments taken automatically
* [Financial accounts](https://learn.nexudus.com/platform/finance/financial-accounts.md): how charges and payments are categorised


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.