# Get Transactions List

The following APIs returns you a paginated list of transactions/orders. Each page has a maximum of `20` items. You can use `total_pages` from the response data as a reference to keep track of the pages.

{% openapi src="<https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FGZIhvJMToUafVUW9vM6H%2Fswagger-3.1.4.json?alt=media&token=79c5c131-7c7d-49b6-be76-227cb5125de1>" path="/transactions/" method="get" %}
[swagger-3.1.4.json](https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FGZIhvJMToUafVUW9vM6H%2Fswagger-3.1.4.json?alt=media\&token=79c5c131-7c7d-49b6-be76-227cb5125de1)
{% endopenapi %}

<mark style="color:green;">`GET`</mark> `/transactions`

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

### Supported arguments

| Param | Param Type | Type   | Required | Description                     |
| ----- | ---------- | ------ | -------- | ------------------------------- |
| page  | query      | Number | No       | Page number. Default value: `1` |

**Response**

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

```json
{
  "message": "string",
  "statusCode": 200,
  "data": [
    {
      "created": "string",
      "txn_id": "string",
      "order_id": "string",
      "order_item_id": "number",
      "title": "string",
      "txn_type": "number",
      "txn_type_label": "string",
      "country": "string",
      "amount_base": "number",
      "paid_amount": "number",
      "commission_base": "number",
      "related_to": "string",
      "reason": "string",
      "vatAmountBase": "number",
      "campaignFee": "number"
    }
  ],
  "total_pages": 0
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "message": "Bad Request. Wrong/Invalid params format.",
    "statusCode": 400 
}
```

{% endtab %}

{% tab title="401" %}

```
{
    "message": "UnAuthorized request. Invalid/Expired token",
    "statusCode": 401
}
```

{% endtab %}

{% tab title="403" %}

```
{
    "message": "Forbidden Request. Action not allowed or Rate Limit exhausted.", 
    "statusCode": 403
}
```

{% endtab %}

{% tab title="500" %}

```
{
    "message": "Internal Server Error",
    "statusCode": 500
}
```

{% endtab %}
{% endtabs %}
