---
updatedAt: 2025-08-18T06:38:09.000Z
agentTools:
  projectIndex: https://snaprefund.readme.io/llms.txt
---

# Get subscriptions list

Retrieves a paginated list of subscriptions with filtering options

> 📘 API Refs
>
> * **Staging**: [List subscriptions](https://snaprefund.readme.io/reference/publicapisubscriptionscontroller_getsubscriptions)

## Request parameters

| Name            | Type   | Description                                                            | Required |
| :-------------- | :----- | :--------------------------------------------------------------------- | :------- |
| limit           | number | Maximum number of subscriptions to return (default: 20, max: 100)      | no       |
| starting\_after | string | Cursor for pagination - ID of the last subscription from previous page | no       |
| status          | string | Filter by subscription status (see enum values below)                  | no       |
| customer\_id    | string | Filter by Stripe customer ID (must start with "cus\_")                 | no       |

### Status Filter Values

* `incomplete`
* `incomplete_expired`
* `trialing`
* `active`
* `past_due`
* `canceled`
* `unpaid`
* `paused`
* `unpaid_paused`

## Response body

### Success Response (200 OK)

| Field      | Type   | Description                  |
| :--------- | :----- | :--------------------------- |
| data       | array  | List of subscription objects |
| pagination | object | Pagination information       |

### Subscription Object Structure

| Field              | Type   | Description                             |
| :----------------- | :----- | :-------------------------------------- |
| id                 | string | Subscription ID                         |
| status             | string | Current subscription status             |
| customer           | object | Customer information                    |
| plan               | object | Plan information                        |
| currentPeriodStart | string | Current billing period start (ISO 8601) |
| currentPeriodEnd   | string | Current billing period end (ISO 8601)   |
| createdAt          | string | Subscription creation date (ISO 8601)   |

### Customer Object Structure

| Field            | Type   | Description        |
| :--------------- | :----- | :----------------- |
| stripeCustomerId | string | Stripe customer ID |
| email            | string | Customer email     |
| name             | string | Customer name      |

### Plan Object Structure

| Field         | Type   | Description            |
| :------------ | :----- | :--------------------- |
| stripePriceId | string | Stripe price ID        |
| name          | string | Plan name              |
| amount        | number | Plan amount in cents   |
| currency      | string | Currency code          |
| interval      | string | Billing interval       |
| intervalCount | number | Billing interval count |

### Pagination Object Structure

| Field      | Type    | Description                               |
| :--------- | :------ | :---------------------------------------- |
| limit      | number  | Applied limit per page                    |
| hasMore    | boolean | Whether more results are available        |
| nextCursor | string  | Cursor for next page (if hasMore is true) |

## Response

```json
{
  "data": [
    {
      "id": "sub_ExampleSubscription789",
      "status": "active",
      "customer": {
        "stripeCustomerId": "cus_ExampleCustomerID123",
        "email": "john.doe@example.com",
        "name": "John Doe"
      },
      "plan": {
        "stripePriceId": "price_ExamplePriceID456",
        "name": "Premium Auto Insurance",
        "amount": 4999,
        "currency": "usd",
        "interval": "month",
        "intervalCount": 1
      },
      "currentPeriodStart": "2024-01-01T00:00:00.000Z",
      "currentPeriodEnd": "2024-02-01T00:00:00.000Z",
      "createdAt": "2024-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {
    "limit": 10,
    "hasMore": true,
    "nextCursor": "sub_ExampleSubscription789"
  }
}
```

## Pagination Usage

To retrieve the next page of results, use the `nextCursor` value from the pagination object as the `starting_after` parameter:

```http
GET /api/public/subscriptions?limit=10&starting_after=sub_ExampleSubscription789
```

## Error Responses

* **400 Bad Request**: Invalid pagination parameters or filter values
* **401 Unauthorized**: Invalid or missing authorization token
* **403 Forbidden**: Insufficient permissions

## Notes

1. **Default Limit**: If not specified, the API returns 20 subscriptions per page
2. **Maximum Limit**: You cannot retrieve more than 100 subscriptions in a single request
3. **Cursor-based Pagination**: Uses cursor-based pagination for consistent results
4. **Filtering**: Multiple filters can be combined (e.g., filter by both status and customer\_id)
5. **Sorting**: Results are returned in descending order by creation date