> ## Documentation Index
> Fetch the complete documentation index at: https://fastflowpe.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Subscription Transactions

> Use this GET endpoint to retrieve transactions associated with a recurring subscription.

Use the internal `subscription_id` returned by the subscription initialize API.

Use the API key in the `x-api-key` header. Do not send it in the `Authorization` header.

> [!TIP]
>
> **Quick Reference**
>
> **Required:** `subscription_id`
>
> **Optional Request Parameters:** `limit`, `page_no`, `cursor_id`
>
> **Returns:** Subscription transactions and pagination details
>
> **Method:** `GET`

## Endpoint

```http theme={"dark"}
GET https://api.fastflowpe.com/merchant/recurring/subscription/{subscription_id}/transactions
```

## Request Headers

**x-api-key** `string` *required*

Your secret merchant API key issued by FastFlowPe.

**Accept** `string` *required*

Must be `application/json`.

## Path Parameters

**subscription\_id** `string` *required*

Internal FastFlowPe subscription UUID returned by the subscription initialize API.

Example:

`550e8400-e29b-41d4-a716-446655440000`

## Request Parameters

**limit** `integer`

Number of transactions to return.

Default: `20`

Minimum: `1`

Maximum: `100`

**page\_no** `integer`

Page number used for page-based pagination.

Default: `1`

Minimum: `1`

**cursor\_id** `string`

Transaction ID used for cursor-based pagination.

Use the `cursor_id` returned in `pagination.next_cursor`.

> [!NOTE]
>
> If both `page_no` and `cursor_id` are provided, `page_no` takes precedence.

```bash cURL theme={"dark"}
curl --location 'https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1' \
--header 'Accept: application/json' \
--header 'x-api-key: <your-x-api-key>'
```

```python Python theme={"dark"}
import requests

url = "https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1"
headers = {"Accept": "application/json", "x-api-key": "<your-x-api-key>"}

response = requests.get(url, headers=headers)
print(response.json())
```

```javascript Node.js theme={"dark"}
const response = await fetch("https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "x-api-key": "<your-x-api-key>",
  },
});
console.log(await response.json());
```

```java Java theme={"dark"}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1"))
    .header("Accept", "application/json")
    .header("x-api-key", "<your-x-api-key>")
    .GET()
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```go Go theme={"dark"}
package main

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

func main() {
    req, _ := http.NewRequest("GET", "https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1", nil)
    req.Header.Set("Accept", "application/json")
    req.Header.Set("x-api-key", "<your-x-api-key>")

    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```php PHP theme={"dark"}
<?php
$ch = curl_init("https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Accept: application/json",
    "x-api-key: <your-x-api-key>",
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

```ruby Ruby theme={"dark"}
require 'net/http'
require 'uri'

uri = URI('https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&page_no=1')
request = Net::HTTP::Get.new(uri)
request['Accept'] = 'application/json'
request['x-api-key'] = '<your-x-api-key>'

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
puts response.body
```

Replace `YOUR_SUBSCRIPTION_UUID` with the internal `subscription_id` returned by `/merchant/recurring/subscription/initialize`.

## Cursor Pagination Request

Use the `cursor_id` returned in `pagination.next_cursor` to fetch the next set of transactions.

```bash cURL theme={"dark"}
curl --location 'https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID' \
--header 'Accept: application/json' \
--header 'x-api-key: <your-x-api-key>'
```

```python Python theme={"dark"}
import requests

url = "https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID"
headers = {"Accept": "application/json", "x-api-key": "<your-x-api-key>"}

response = requests.get(url, headers=headers)
print(response.json())
```

```javascript Node.js theme={"dark"}
const response = await fetch("https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "x-api-key": "<your-x-api-key>",
  },
});
console.log(await response.json());
```

```java Java theme={"dark"}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID"))
    .header("Accept", "application/json")
    .header("x-api-key", "<your-x-api-key>")
    .GET()
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```go Go theme={"dark"}
package main

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

func main() {
    req, _ := http.NewRequest("GET", "https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID", nil)
    req.Header.Set("Accept", "application/json")
    req.Header.Set("x-api-key", "<your-x-api-key>")

    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```php PHP theme={"dark"}
<?php
$ch = curl_init("https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Accept: application/json",
    "x-api-key: <your-x-api-key>",
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

```ruby Ruby theme={"dark"}
require 'net/http'
require 'uri'

uri = URI('https://api.fastflowpe.com/merchant/recurring/subscription/YOUR_SUBSCRIPTION_UUID/transactions?limit=20&cursor_id=YOUR_CURSOR_ID')
request = Net::HTTP::Get.new(uri)
request['Accept'] = 'application/json'
request['x-api-key'] = '<your-x-api-key>'

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
puts response.body
```

## Response

A successful request returns the transactions associated with the subscription along with pagination details.

```json Success theme={"dark"}
{
  "status": "success",
  "status_code": 200,
  "message": "Subscription transactions fetched successfully",
  "detail": null,
  "data": {
    "subscription_id": "550e8400-e29b-41d4-a716-446655440000",
    "transactions": [
      {
        "transaction_id": "a21d82fc-41a3-4eb8-987e-612b5cb29a12",
        "cycle_number": 2,
        "attempt_number": 1,
        "amount": "499.00",
        "status": "SUCCESS",
        "failure_code": null,
        "remark": "Recurring payment completed",
        "created_at": "2026-10-04T11:25:42.123456"
      }
    ],
    "pagination": {
      "limit": 20,
      "has_next": true,
      "total_pages": 3,
      "page_no": 1,
      "next_cursor": {
        "cursor_id": "a21d82fc-41a3-4eb8-987e-612b5cb29a12"
      }
    }
  },
  "meta": null
}
```

```json Not Found theme={"dark"}
{
  "status": "error",
  "status_code": 404,
  "message": "Subscription not found",
  "detail": null,
  "data": null,
  "meta": null
}
```

```json Authentication Error theme={"dark"}
{
  "detail": "No authorization/ x-api-key header provided."
}
```

**status** `string`

Indicates whether the request succeeded or failed.

**status\_code** `integer`

HTTP-style status code associated with the response.

**message** `string`

Human-readable message describing the result of the request.

**detail** `object`

Additional response information when available.

This may be `null`.

**data.subscription\_id** `string`

Internal FastFlowPe subscription UUID whose transactions were requested.

**data.transactions** `array`

List of recurring payment transactions associated with the subscription.

**data.transactions\[].transaction\_id** `string`

Unique FastFlowPe transaction ID for the recurring payment attempt.

**data.transactions\[].cycle\_number** `integer`

Billing cycle number associated with the transaction.

**data.transactions\[].attempt\_number** `integer`

Attempt number for the transaction within the billing cycle.

**data.transactions\[].amount** `string`

Amount associated with the recurring transaction.

**data.transactions\[].status** `string`

Current status of the recurring transaction.

Example: `SUCCESS`

**data.transactions\[].failure\_code** `string`

Failure code returned when the recurring transaction fails.

This may be `null` for successful transactions.

**data.transactions\[].remark** `string`

Human-readable remark describing the recurring transaction result.

**data.transactions\[].created\_at** `string`

Timestamp when the transaction record was created.

**data.pagination** `object`

Pagination information for the transaction list.

**data.pagination.limit** `integer`

Maximum number of transactions requested for the current response.

**data.pagination.has\_next** `boolean`

Indicates whether more transactions are available.

**data.pagination.total\_pages** `integer`

Total number of available pages.

**data.pagination.page\_no** `integer`

Current page number when page-based pagination is used.

This value is `null` when cursor-based pagination is used.

**data.pagination.next\_cursor** `object`

Cursor information used to fetch the next set of transactions.

This value is `null` when no additional transactions are available.

**data.pagination.next\_cursor.cursor\_id** `string`

Transaction ID to pass as `cursor_id` in the next cursor-based pagination request.

**meta** `object`

Optional response metadata.

This may be `null`.

## Cursor Pagination Response

When cursor-based pagination is used, `page_no` is returned as `null`.

```json theme={"dark"}
{
  "pagination": {
    "limit": 20,
    "has_next": false,
    "total_pages": 3,
    "next_cursor": null,
    "page_no": null
  }
}
```

> [!NOTE]
>
> The subscription must belong to the merchant associated with the supplied `x-api-key`.
>
> If the subscription belongs to another merchant, it is returned as not found.

> [!TIP]
>
> Use page-based pagination for simple page navigation. Use `cursor_id` when you want to continue fetching transactions from the last returned transaction.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.