Skip to main content
Retrieves all active subscriptions for a specific customer, optionally filtered by product or resource.
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 of CustomerSubscription objects with:

Common Use Cases

Check what plan(s) a customer currently has access to.
For products with multiple subscription products, get all active subscriptions.
Show the customer their current subscription in your app.

Example: Check Customer Access