RevKeen Docs
Api reference

List customer subscriptions

Retrieve all subscriptions for a specific customer


Related endpoints

  • GET /customers/{customerId}/invoices — List customer invoices
  • GET /customers/{customerId}/orders — List customer orders
  • GET /customers/{customerId}/payments — List customer payments
  • PUT /customers/external/batch — Batch upsert customers by external ID
  • POST /customers — Create a new customer
  • GET /customers — List customers
  • GET /customers/{id} — Get customer by ID
  • PATCH /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.

GET
/customers/{customerId}/subscriptions
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

Formatuuid

Query Parameters

limit?integer

Maximum number of records to return (1-100)

Default20
Range1 <= value <= 100
starting_after?string

Cursor for pagination - return records after this ID

Formatuuid
ending_before?string

Cursor for pagination - return records before this ID

Formatuuid
status?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"
  }
}