# Transaction status

A successful transaction must contain the following parameters in the response:

| **Parameter** | **Required Value / Format**      | **Description**                                              |
| ------------- | -------------------------------- | ------------------------------------------------------------ |
| status        | `"SUCCESS"`                      | Indicates overall success of the operation.                  |
| approvalCode  | *Present*                        | Authorization code received from the processing system.      |
| description   | `"approved"`                     | Human-readable response status.                              |
| actionCode    | `"0"`                            | High-level response code (0 typically means approved).       |
| responseCode  | `"00"`                           | Detailed response code.                                      |
| rrn           | `string(12)`, must not be `"-1"` | Retrieval Reference Number (RRN). Must be a 12-digit string. |

#### Transaction Status Definitions

The table below defines the possible values for the `status` parameter:

| **Status Value**              | **English Translation** | **Ukrainian Description** | **Technical Context**                                                                                                        |
| ----------------------------- | ----------------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| SUCCESS                       | Success                 | Успіх                     | Transaction completed successfully.                                                                                          |
| FAIL                          | Failure                 | Помилка                   | Transaction failed (e.g., declined by issuer, system error).                                                                 |
| PENDING                       | Pending                 | На проведенні             | Transaction is currently being processed or awaiting final confirmation.                                                     |
| REQUIRED\_3DS                 | 3DS Required            | Проведення 3DS            | The transaction requires customer authentication via 3D Secure.                                                              |
| DESIRED\_THREEDS\_MODE\_ERROR | Desired 3DS Mode Error  | Бізнес помилка...         | Business Error: Occurs when the card does not support 3DS, but the merchant set `desiredThreeDSMode = MUST` (requiring 3DS). |


---

# 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.merchant.alb.ua/en/dictionary/transaction-status.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.
