Api reference
List customer subscriptions
Retrieve all subscriptions for a specific customer
Related endpoints
GET /customers/{customerId}/invoices— List customer invoicesGET /customers/{customerId}/orders— List customer ordersGET /customers/{customerId}/payments— List customer paymentsPUT /customers/external/batch— Batch upsert customers by external IDPOST /customers— Create a new customerGET /customers— List customersGET /customers/{id}— Get customer by IDPATCH /customers/{id}— Update customer details
Common errors
401 unauthenticated— missing, malformed, or revoked API key.404 resource_missing— the referenced resource does not exist or is not visible to your key.
Pagination
Offset-based with limit (default 25, max 100) and offset. The response pagination block includes total and hasMore. See the pagination guide for SDK auto-paging helpers.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
customerId*string
Customer ID
Format
uuidQuery Parameters
limit?integer
Maximum number of records to return (1-100)
Default
20Range
1 <= value <= 100starting_after?string
Cursor for pagination - return records after this ID
Format
uuidending_before?string
Cursor for pagination - return records before this ID
Format
uuidstatus?string
Filter by subscription status
Value in
"active" | "canceled" | "past_due" | "trialing" | "paused"Response Body
application/json
application/json
application/json
curl "https://api.revkeen.com/v2/customers/cus_abc123/subscriptions" \ -H "x-api-key: $REVKEEN_API_KEY"{
"object": "list",
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"price_id": "5eff5d89-979e-4e4f-aa76-6cbbbf11362c",
"status": "string",
"current_period_start": "string",
"current_period_end": "string",
"cancel_at_period_end": true,
"canceled_at": "string",
"trial_end": "string",
"created_at": "string",
"updated_at": "string"
}
],
"has_more": true
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}