> For the complete documentation index, see [llms.txt](https://aliniex.gitbook.io/alix-pay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aliniex.gitbook.io/alix-pay/api-reference/alix-card-api/cards/get-cards-transactions.md).

# Get card's transactions

<mark style="color:green;">`GET`</mark> /api/v2/cards/{cardId}/transactions

#### **Headers**

| Param        | Value                                                                                                                   |
| ------------ | ----------------------------------------------------------------------------------------------------------------------- |
| access-token | It is accessToken  has returned from the [api Access Token](/alix-pay/api-reference/alix-card-api/auth/access-token.md) |

#### **PATH Params**

| Param  | Value          |
| ------ | -------------- |
| cardId | The id of card |

#### **Query Options**

| Param    | Value               | Default                  |
| -------- | ------------------- | ------------------------ |
| type     | TransactionType     | TopupCard \| Consumption |
| status   | TransactionStatus   |                          |
| from     | YYYY-MM-DD HH:MM:SS |                          |
| to       | YYYY-MM-DD HH:MM:SS |                          |
| page     | integer             | 1                        |
| pageSize | integer             | 10                       |

#### **Response**&#x20;

{% tabs %}
{% tab title="200" %}

```json
{
    "success": true,
    "message": "Your request has been successful",
    "errorCode": 0,
    "data": {
        "totalPage": 2,
        "items": [
            {                
                "id": "f9bdccc2-af4e-4120-9f86-fe4e393cfb70",                
                "type": "Consumption",                
                "fee": 0.54,                
                "amount": 3.62,                
                "balanceBefore": 0,                
                "balanceAfter": 0,                
                "description": "PAYOO-HIGHLANDS 00258  DNI VN",                
                "status": "Completed",                
                "createdAt": 1755741365,                
                "feeDetails": [
                    {                        
                        "feeType": "AlixFee",                        
                        "amount": 0.04                    
                    },                    
                    {                        
                        "feeType": "AuthorizationFee",                        
                        "amount": 0.5                    
                    }                
                ]            
            }
        ]
    }
}
```

{% endtab %}

{% tab title="400" %}

<pre class="language-json"><code class="lang-json">{
    "success": false,
    "message": "The QR code is invalid. Please check and try again",
    "data": null,
    "errorCode": 32
}
<strong>
</strong>
</code></pre>

{% endtab %}
{% endtabs %}

#### Transaction Statuses

| Enum Value  | Description                           | Notes                                                     |
| ----------- | ------------------------------------- | --------------------------------------------------------- |
| `Pending`   | The transaction is pending processing | The transaction has been initiated but not yet completed  |
| `Rejected`  | The transaction has been rejected     | The transaction was declined due to errors or invalidity  |
| `Completed` | The transaction has been completed    | The transaction was successfully processed                |
| `Review`    | The transaction is under review       | The transaction requires further review before completion |

#### Transaction Types

| Enum Value    | Description                      | Notes                                                       |
| ------------- | -------------------------------- | ----------------------------------------------------------- |
| `ApplyCard`   | Request to apply for a new card  | Initiates the process of issuing a new card                 |
| `TopupCard`   | Top-up funds to the card         | Adds funds to the card's balance                            |
| `UnlockCard`  | Unlock a previously locked card  | Restores the card to active status for use                  |
| `SuspendCard` | Suspend the card                 | Temporarily disables the card from being used               |
| `Consumption` | Card usage for purchases         | Represents a transaction for goods or services              |
| `Refund`      | Refund of a previous transaction | Returns funds to the card due to a reversal or cancellation |

#### Fee Types

| Enum Value         | Description                | Notes |
| ------------------ | -------------------------- | ----- |
| `ApplePay`         | ApplePay's processing fee  |       |
| `GooglePay`        | GooglePay's processing fee |       |
| `AuthorizationFee` |                            |       |
| `AlixFee`          |                            |       |
| `SettlementFee`    |                            |       |
| `ATMFee`           |                            |       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://aliniex.gitbook.io/alix-pay/api-reference/alix-card-api/cards/get-cards-transactions.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.
