# 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 %}


---

# 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://developers.cryptopay.me/guides/invoices/how-to-handle-unresolved-invoices/invoice-refunds.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.
