Query
Parameters
Input parameters for retrieving active subscriptions
Return Type
Returns an array ofCustomerSubscription objects with:
| Field | Type | Description |
|---|---|---|
subscriptionId | String | Unique subscription ID |
status | SubscriptionStatus | ACTIVE or IN_TRIAL |
startDate | DateTime | When subscription started |
currentBillingPeriodEnd | DateTime | Current period end |
plan | Plan | The subscribed plan |
addons | [SubscriptionAddon] | Applied addons |
prices | [Price] | Subscription pricing |
trialEndDate | DateTime | Trial end (if applicable) |
Common Use Cases
Determine current access
Determine current access
Check what plan(s) a customer currently has access to.
Multi-product access
Multi-product access
For products with multiple subscription products, get all active subscriptions.
Display current plan
Display current plan
Show the customer their current subscription in your app.
Example: Check Customer Access
Related Operations
- Get Subscription - Get single subscription details
- List Subscriptions - Query all subscriptions with filters
- Entitlements State - Get customer entitlements
