> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.alphax.asia/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.alphax.asia/_mcp/server.

# List a route's transactions

GET https://public-api.alphax.com/v1/payment-routes/{routeId}/transactions

Money that has moved through this route. Newest first by default.

Reference: https://docs.alphax.asia/api-reference/swap-api/payment-routes/list-payment-route-transactions

## Authentication

- `X-API-Key` header (required) — Your partner API key.

## Servers

- `https://public-api.alphax.com` (Production server, default)
- `https://public-api.demo.alphax.asia` (Staging (sandbox) server)

## Request

### Path parameters

- `routeId` (string, required) — A payment route ULID.

### Query parameters

- `page` (integer, optional)
- `limit` (integer, optional)
- `type` (enum, optional) — Filter by direction.
  - Allowed values: `Credit`, `Debit`
- `orderBy` (enum, optional)
  - Allowed values: `createdAt`, `amount`
- `orderDirection` (enum, optional)
  - Allowed values: `ASC`, `DESC`

### Headers

- `X-Company-Id` (string, required) — The company you are acting for (a company ULID).

## Response

### 200

OK

- `transactions` (list of object, optional)
  - `type` (enum, optional) — Which product the movement belongs to.
    - Allowed values: `PaymentRoute`, `Card`, `PaymentAcceptance`, `Account`
  - `transaction` (object, optional)
    - `id` (string, optional)
    - `direction` (enum, optional)
      - Allowed values: `Credit`, `Debit`
    - `amount` (string, optional)
    - `currency` (string, optional)
    - `description` (string, optional)
    - `counterpartyName` (string, optional, nullable)
    - `createdAt` (datetime, optional)
  - `data` (object or map from string to any, optional) — Type-specific detail.
    - PaymentRouteTransactionData
      - `routeId` (string, optional)
      - `routeType` (enum, optional) — `onramp` takes fiat in and pays stablecoin out. `offramp` takes stablecoin in and pays fiat out.
        - Allowed values: `onramp`, `offramp`
      - `incomingAmount` (string, optional)
      - `convertedAmount` (string, optional)
      - `totalFees` (string, optional)
      - `depositAddress` (string, optional)
      - `sourceTxHash` (string, optional) — Off-ramp only.
      - `destinationTxHash` (string, optional)
      - `senderName` (string, optional) — On-ramp only.
      - `senderBankRoutingNumber` (string, optional) — On-ramp only.
      - `source` (object, optional)
        - `paymentRail` (string, optional)
        - `currency` (string, optional)
        - `fromAddress` (string, optional)
      - `destination` (object, optional)
        - `paymentRail` (string, optional)
        - `currency` (string, optional)
        - `bankName` (string, optional)
        - `accountOwnerName` (string, optional)
        - `accountLast4` (string, optional)
        - `routingNumber` (string, optional)
- `pagination` (object, optional)
  - `currentPage` (integer, optional)
  - `totalPages` (integer, optional)
  - `perPage` (integer, optional)

## Examples

**Response**

```json
{
  "transactions": [
    {
      "type": "PaymentRoute",
      "transaction": {
        "id": "01KZ2TXN4Q8N7YB3D5F6G7H8J9",
        "direction": "Credit",
        "amount": "99.10",
        "currency": "USD",
        "description": "[payment route] 100.00 USDT",
        "counterpartyName": "string",
        "createdAt": "2024-01-15T09:30:00Z"
      },
      "data": {}
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 3,
    "perPage": 10
  }
}
```

**SDK Code**

```python
import requests

url = "https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions"

headers = {
    "X-Company-Id": "01KZ2WJKWVFPCVAB6MY106QRZV",
    "X-API-Key": "<apiKey>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions';
const options = {
  method: 'GET',
  headers: {'X-Company-Id': '01KZ2WJKWVFPCVAB6MY106QRZV', 'X-API-Key': '<apiKey>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-Company-Id", "01KZ2WJKWVFPCVAB6MY106QRZV")
	req.Header.Add("X-API-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Company-Id"] = '01KZ2WJKWVFPCVAB6MY106QRZV'
request["X-API-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions")
  .header("X-Company-Id", "01KZ2WJKWVFPCVAB6MY106QRZV")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
    'X-Company-Id' => '01KZ2WJKWVFPCVAB6MY106QRZV',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Company-Id", "01KZ2WJKWVFPCVAB6MY106QRZV");
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Company-Id": "01KZ2WJKWVFPCVAB6MY106QRZV",
  "X-API-Key": "<apiKey>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://public-api.alphax.com/v1/payment-routes/01KZ2RT4Q8N7YB3D5F6G7H8J9K/transactions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```