Retrieve a paginated list of subscriptions. Supports filtering by customer, plan, and status.
cURL
curl --request GET \ --url https://api.example.com/v1/subscriptions
{ "data": [ { "id": "<string>", "customer_id": "<string>", "plan_id": "<string>", "subscription_status": "<string>", "currency": "<string>", "billing_cadence": "<string>", "billing_period": "<string>", "start_date": "<string>", "current_period_start": "<string>", "current_period_end": "<string>", "created_at": "<string>", "updated_at": "<string>" } ], "total": 123, "limit": 123, "offset": 123, "has_more": true }
20
10
"cust_a1b2c3d4e5f6g7h8i9j0"
"plan_a1b2c3d4e5f6g7h8i9j0"
"ACTIVE"
"CANCELLED"
"INCOMPLETE"
"EXPIRED"
"PAUSED"
"DRAFT"
Show subscription properties
curl --request GET \ --url 'https://api.flexprice.io/v1/subscriptions?limit=20&customer_id=cust_a1b2c3d4e5f6g7h8i9j0' \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "sub_x1y2z3a4b5c6d7e8f9g0", "customer_id": "cust_a1b2c3d4e5f6g7h8i9j0", "plan_id": "plan_a1b2c3d4e5f6g7h8i9j0", "subscription_status": "ACTIVE", "currency": "usd", "billing_cadence": "IN_ADVANCE", "billing_period": "MONTH", "billing_period_count": 1, "start_date": "2024-03-20T00:00:00Z", "current_period_start": "2024-03-20T00:00:00Z", "current_period_end": "2024-04-20T00:00:00Z", "created_at": "2024-03-20T15:04:05Z", "updated_at": "2024-03-20T15:04:05Z" } ], "total": 1, "limit": 20, "offset": 0, "has_more": false }