# 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="https://3848983471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8mHp6Xvui6hSl3fbco11%2Fuploads%2FpDEVKRsOskUy1kbqByhR%2Fview_invoice.png?alt=media&#x26;token=c2290fc4-4146-431a-9bb1-7b6e1dfcb959" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3848983471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8mHp6Xvui6hSl3fbco11%2Fuploads%2FBNB2RFGrfmTAjmkW0uFG%2Frevert_to_draft.png?alt=media&#x26;token=a3dd0f40-c6bd-4a66-b7b1-5e9cccc8b49f" 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="https://3848983471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8mHp6Xvui6hSl3fbco11%2Fuploads%2FWOR2oxCLAEQFLQ2eLwdy%2Fedit_invoice.png?alt=media&#x26;token=bc53c5b8-bcb7-4cb2-a7d1-f3e449070cb1" 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="https://3848983471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8mHp6Xvui6hSl3fbco11%2Fuploads%2FHn3OcJ4uH6VdnaNNPC9D%2Fpayments.png?alt=media&#x26;token=9166e595-b22e-44a0-8bd7-de875dec402c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3848983471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8mHp6Xvui6hSl3fbco11%2Fuploads%2FRBMVF3Xoq7O1ut8kRDce%2Fdelete_payment_allocation.png?alt=media&#x26;token=a91ec0f2-daad-4739-a2d3-b9ba327b862c" 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.

***
