resourceId scoping: when resourceId is not provided, this query returns only global subscriptions — subscriptions provisioned without a resource ID (i.e. for products with the “single active subscription” type). It does not return subscriptions attached to a resource. Pass a resourceId to retrieve active subscriptions for a specific resource-backed product instance.Performance: for runtime use cases (e.g. checking a customer’s current plan in your app), consider using getActiveSubscriptionsList via the Edge SDK instead. It serves results from a local cache and is significantly faster than this GraphQL query. See Fetching subscriptions — methods compared.Query
Parameters
GetActiveSubscriptionsInput
required
Input parameters for retrieving active subscriptions
Return Type
Returns an array ofCustomerSubscription objects with:
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
