Skip to main content

Get subscriptions

Get all subscriptions for your salable organisation. The response uses cursor pagination.

tip

You can group returned subscriptions by their owner by providing the owner param. Useful for listing a customer's subscriptions in an account area in your app.

import { initSalable } from '@salable/node-sdk';

const salable = initSalable('your-salable-api-key', 'v3');
await salable.subscriptions.getAll({
owner: 'owner-id',
});