Get All Subscriptions
Returns a list of all the subscriptions created by your Salable organization.
Code Sample
import { initSalable } from '@salable/node-sdk';
const salable = initSalable('{{API_KEY}}', 'v3');
const subscription = await salable.subscriptions.getAll();
Parameters
options
Type: GetSubscriptionOptions
| Option | Type | Description | Required |
|---|---|---|---|
| status | string | The status of the subscription, e.g. "ACTIVE" "CANCELED" | ❌ |
| string | The email of who purchased the subscription | ❌ | |
| owner | string | The owner of the subscription | ❌ |
| cursor | string | Cursor value, used for pagination | ❌ |
| take | number | The number of subscriptions to fetch. Default: 20 | ❌ |
| productUuid | string | Filter subscriptions by product | ❌ |
| planUuid | string | Filter subscriptions by plan | ❌ |
| sort | string | Sorts by expiryDate field. Default ('asc'). Enum: 'asc' | 'desc' | ❌ |
Return Type
For more information about this request see our API documentation on Subscription Object