# Transaction  Statuses

***

This section provides a reference for all possible transaction statuses and how to handle them. You will also receive webhook updates whenever a status changes, and you can consult this guide when using the transaction lookup APIs.

### Status Codes

| Status Code       | Description                                                                                                                                                                                                                 |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 10                | Initial state. No payment detected yet. Transaction is marked as unpaid.                                                                                                                                                    |
| **0**             | Pending transaction. Payment detected but awaiting final confirmation.                                                                                                                                                      |
| **1 / 2 / 3 / 4** | Treated as **Success**. Indicates the payment has been successfully received.                                                                                                                                               |
| **101**           | Partial payment received. The order remains open, and the user can send additional payment to complete it.                                                                                                                  |
| **1011**          | Partial payment closed by the merchant. No further payments are accepted. can be close by this api:[ handling partial cases](/developer-guides/api-reference/payins/rocketfuel-ui-integration/handling-partial-payments.md) |
| **201**           | Payment amount less than order value (**Underpaid**). *Enabled only if the merchant opts into handling such cases. Write us at <contact@rocketfuel.inc> to enable this feature.*                                            |
| **202**           | Payment amount greater than order value (**Overpaid**). *Enabled only if the merchant opts into handling such cases. Write us at <contact@rocketfuel.inc> to enable this feature.*                                          |
| **-1**            | Transaction rejected or failed.                                                                                                                                                                                             |
| 19                | **Timed Out** transaction.                                                                                                                                                                                                  |

***

### Timed Out Transactions

A **Timed Out** transaction occurs when a payment cannot be confirmed within the expected timeframe. This can happen due to network congestion, delays in confirmation, or other technical reasons.

**Key Points:**

* Status code for timed-out transactions: **19**
* These transactions are not marked as successful.
* A **webhook event** is triggered whenever a transaction moves to this status.
* Depending on your system, you can treat this as a failed payment or allow the user to retry the payment.

### Partial Payment Use Cases

1. **Allow Completion of Partial Payment**
   * User makes a partial payment and can send additional payment(s) to complete the order.
   * If the remaining amount is not received within the allowed time, the transaction moves into a final **Partial** state, and a refund can be requested by the shopper.
2. **Do Not Allow Partial Payments**
   * If the first payment is partial, no further payments are accepted.
   * A **Refund** button is displayed to the user immediately. (check the screenshot below)<br>

     <figure><img src="/files/4cSA6ViYCtwpN9CkrzR5" alt=""><figcaption></figcaption></figure>

***

### Force Refund Use Case

To enable this feature, contact us at <_contact@rocketfuel.inc>.\_

* Merchants can trigger a **force refund** to immediately close a transaction and refund the user.
* No further payments are accepted once the refund is initiated.
* This is useful when merchants do not want to handle incomplete or partial payments.


---

# 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://docs.rocketfuel.inc/developer-guides/api-reference/payins/rocketfuel-ui-integration/transaction-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.
