# Credit notes and refunds (/en/features/invoices/credit-notes-and-refunds)

Lower an issued invoice with a credit note, give money back as a refund, as customer credit or outside XPay, and see what refunding an invoice payment does.

An issued invoice is never edited. When the amount needs to come down, because the customer returned an item, you agreed a discount afterwards or you billed too much, you issue a credit note.

A credit note lowers the invoice without changing it. It has its own number and its own PDF, and the invoice keeps a record of it.

## What a credit note does [#what-a-credit-note-does]

A credit note works on the amount in two steps:

1. **It first lowers what the customer still owes.** Nothing moves. The amount remaining on the invoice goes down.
2. **Anything beyond that was already paid, and goes back to the customer.** You choose how.

So the same action covers both cases:

| The invoice is | A credit note                                                                                             |
| -------------- | --------------------------------------------------------------------------------------------------------- |
| Not paid yet   | Lowers the amount remaining. If it covers everything that remains, the invoice becomes **Paid**.          |
| Part paid      | Lowers the amount remaining first. If the credit is larger than that, the rest goes back to the customer. |
| Paid in full   | Goes back to the customer in full.                                                                        |

## How the paid part goes back [#how-the-paid-part-goes-back]

When part of a credit note was already paid, the form shows **Give back** with three choices. You can use one or split the amount across them. Together they must add up to the paid part.

| Choice              | What happens                                                                                                  |
| ------------------- | ------------------------------------------------------------------------------------------------------------- |
| **Refund**          | The money goes back to the card or wallet the customer paid with. It is a real refund from your XPay balance. |
| **Customer credit** | The customer keeps it as credit, used on their next invoice. No money moves.                                  |
| **Outside XPay**    | You returned it yourself, such as cash. XPay records it and moves no money.                                   |

**Refund** needs an online payment on the invoice to refund. If the customer paid you in cash or by transfer, there is nothing for XPay to refund, so choose **Customer credit** or **Outside XPay**.

**Refund** through a credit note works on invoices in EGP. In another currency, on a **paid** invoice, [refund the payment](#refund-a-payment) itself and XPay writes the credit note for you. On an **open** invoice, give the paid part back as **Customer credit** or **Outside XPay**.

## Issue a credit note [#issue-a-credit-note]

<Steps>
  <Step>
    ### Open the invoice [#open-the-invoice]

    Open an issued invoice and click **Issue credit note**. You can credit an invoice that is **Open**, **Paid** or **Uncollectible**. A draft is edited directly, and a void invoice cannot be credited.
  </Step>

  <Step>
    ### Choose what to credit [#choose-what-to-credit]

    Under **What to credit**:

    * **Items.** Set the quantity to credit for each item. The item's tax is credited in proportion.
    * **Amount.** Type one amount before tax. It is added to the credit note as one line.

    The **Credit note preview** shows the total, how much of it lowers what is owed and how much goes back to the customer.
  </Step>

  <Step>
    ### Choose how the paid part goes back [#choose-how-the-paid-part-goes-back]

    If part of the credit was already paid, split it between **Refund**, **Customer credit** and **Outside XPay** until the full amount is assigned.
  </Step>

  <Step>
    ### Add a reason and a memo [#add-a-reason-and-a-memo]

    Pick a **Reason**: **Duplicate**, **Fraudulent**, **Order change**, **Product unsatisfactory** or **Other**. A **Memo** is printed on the credit note.
  </Step>

  <Step>
    ### Click Issue credit note [#click-issue-credit-note]

    The credit note gets its number and appears under **Credit notes** on the invoice. If the invoice has an email address, the customer is emailed the credit note with its PDF. You can switch that email off with **Credit note** in your settings.
  </Step>
</Steps>

All credit notes on an invoice together cannot be more than its total. The part the customer paid with their credit can only go back as **Customer credit**. You cannot issue a credit note while an online payment on the invoice is in progress.

## Refund a payment [#refund-a-payment]

You can also refund a payment directly. Open the invoice, find the payment under **Payments**, and click **Refund**. The same refund is available from the payment's own page in **Transactions**.

What happens to the invoice depends on its status:

* **The invoice is paid.** The refund first returns anything the customer paid above the invoice. For the rest, XPay writes the credit note for you, so the invoice shows why money left.
* **The invoice is still open.** The refund takes that payment back. The amount refunded is owed again, other payments still count, and no credit note is written. If you meant to lower the invoice, issue a credit note instead.

A refunded payment stays in the list with the amount refunded shown on it.

Refunds follow the same rules as any XPay refund. See [Refunds](/features/transactions/refunds).

## Void a credit note [#void-a-credit-note]

You can void a credit note only while its invoice is still **Open**, and only if the credit note gave nothing back to the customer. The invoice goes back to what it was before the credit. This cannot be undone.

## Who can do this [#who-can-do-this]

Issuing a credit note needs permission to manage invoices. A credit note that refunds money also needs permission to issue refunds. See [Who can do what](/features/invoices/settings#who-can-do-what).

## Where to next [#where-to-next]

<Cards>
  <Card icon="<RotateCcw />" title="Refunds" href="/features/transactions/refunds">
    How refunds work across XPay and when they reach the customer.
  </Card>

  <Card icon="<CreditCard />" title="Getting paid" href="/features/invoices/getting-paid">
    Customer credit and how it is used on the next invoice.
  </Card>

  <Card icon="<Bell />" title="Manage and follow up" href="/features/invoices/manage-and-follow-up">
    Edit or void an invoice that has no payment yet.
  </Card>

  <Card icon="<Users />" title="Team and roles" href="/features/account-and-operations/team-and-roles">
    Decide who on your team can refund.
  </Card>
</Cards>