# Edit an invoice

## **Before you begin**

You can only edit invoices while they are in **Draft** status.\
If you need to make changes to a finalized invoice, you must **revert it back to Draft** first.

You can only revert an invoice to Draft if:

* **No payments** are applied, and
* **No credit notes** are attached.

If payments are applied, you must **unlink or void** them before reverting.\
If a credit note is attached, it must be **voided** before changes can be made.\
See **Handling linked payments and credit notes** below.

Once reverted, you can edit the invoice as needed and finalize it again when ready.

***

## Revert an invoice to draft

{% hint style="warning" %}
Important note: You can only revert an invoice to Draft if no payments or credit notes are attached. See *Before you begin* for details.
{% endhint %}

If an invoice is finalized, you can revert it to **Draft** to make updates or corrections.

1. Go to **Billing** → **Invoices** and open the invoice.

<figure><img src="/files/nRqT2Mipb0sAWNQE9Ezw" alt=""><figcaption></figcaption></figure>

2. Click **Actions** → **Revert to draft.**

<figure><img src="/files/TetojCBF8wMApDDfR4CR" alt=""><figcaption></figcaption></figure>

The invoice will return to **Draft** status.\
The **Pay invoice** and **Send invoice** buttons will be replaced by an **Edit invoice** button.

3. Click **Edit invoice** to open the invoice editor and make your changes.

<figure><img src="/files/HSjMkyRiTmKrU2ZdtFKs" alt=""><figcaption></figcaption></figure>

**Once you’ve finished editing, you can:**

* Exit to keep the invoice in **Draft**, or
* Click **Finalize invoice** when you are ready to issue it again.

***

## Handling linked payments and credit notes

If the invoice has payments or credit notes applied, you must remove or void them before reverting the invoice.

#### **Payments**

1. Click the **payment allocation link** on the invoice.

<figure><img src="/files/TQfYeXfNlg4JXthFoekK" alt=""><figcaption></figcaption></figure>

2. Select **Delete** to unlink the payment.

<figure><img src="/files/r7v5ZO6R7KLhpJE5f94U" alt=""><figcaption></figcaption></figure>

After unlinking, you can locate the payment record separately and choose to:

* Refund it
* Void it
* Reapply it after the invoice is finalized again

#### **Credit notes**

If a partial credit note is attached, it must be **voided** before the invoice can be reverted or deleted.

To do this:

1. Open the credit note by clicking the **credit note number**.
2. Go to **Actions** → **Void credit note** and confirm.

#### **Next step**

After removing any linked payments or credit notes, return to the steps above to revert the invoice to Draft.

***

These steps ensure your financial records remain accurate and consistent across your billing and reporting.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.caspen.com/using-caspen/billing/invoices/edit-an-invoice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
