> For the complete documentation index, see [llms.txt](https://developers.cryptopay.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.cryptopay.me/guides/invoices/how-to-handle-unresolved-invoices/invoice-refunds.md).

# Invoice refunds sequence

| Invoice status | Invoice status context | Condition                                                                                                                                                                | Refund                                                                                                   |
| -------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
| `unresolved`   | `underpaid`            | `paid_amount` is less than `pay_amount`                                                                                                                                  | A full transaction amount will be refunded                                                               |
| `unresolved`   | `overpaid`             | `paid_amount` is greater than `pay_amount`                                                                                                                               | An extra amount will be refunded after that the original invoice amount will be credited to your account |
| `unresolved`   | `paid_late`            | A transaction has been sent to a destination wallet address after the validity time period which is 10 minutes for fiat invoices and 2 hours for cryptocurrency invoices | A full transaction amount will be refunded                                                               |

Navigate to the [Invoice statuses](/guides/invoices/invoice-statuses.md) section to get more information about invoice statuses.

## Underpaid

{% tabs %}
{% tab title="Refund to external address" %}

<figure><img src="https://files.cryptopay.me/b2b/git_book_files/10_Invoices_Refund_Seq_01.svg" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Refund to your cryptocurrency account" %}

<figure><img src="https://files.cryptopay.me/b2b/git_book_files/10_Invoices_Refund_Seq_02.svg" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Paid late

{% tabs %}
{% tab title="Refund to external address" %}

<figure><img src="https://files.cryptopay.me/b2b/git_book_files/10_Invoices_Refund_Seq_03.svg" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Refund to your cryptocurrency account" %}

<figure><img src="https://files.cryptopay.me/b2b/git_book_files/10_Invoices_Refund_Seq_04.svg" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Overpaid

{% tabs %}
{% tab title="Refund to external address" %}

<figure><img src="https://files.cryptopay.me/b2b/git_book_files/10_Invoices_Refund_Seq_05.svg" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
