# Payment Statuses

**Active** – the invoice has been created and is waiting for payment.

**Completed** – the invoice was successfully processed: the payer sent the funds, and goodPayments transferred it to the merchant’s wallet.

**Overpaid** – the payer sent an amount exceeding the invoice total. The received funds are forwarded to the merchant's address in full.

**Underpaid** – the payer sent an amount less than the invoice total. The received funds are forwarded to the merchant's address in full.

**Canceled** – the invoice was manually canceled.

**Timeout** – the invoice expired before the payment was completed.

**Error** – the invoice could not be processed due to a technical issue or an invalid operation (e.g., blockchain error, transfer failure, or the payer sent a different token than the one specified in the invoice).

**AML: illicit funds** – the incoming transaction did not pass the AML check. Once this status is assigned, goodPayments returns the received funds to the sender's address, the invoice is closed, and no further processing takes place.


---

# 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://goodpayments.gitbook.io/docs/user-guide/payment-statuses.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.
