Skip to main content
Version: Node SDK

Get All Plans

Returns a list of plans with cursor based pagination.

Code Sample

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

const salable = initSalable('{{API_KEY}}', 'v3');

const plans = await salable.plans.getAll();

Parameters

options

Type: GetAllPlansOptionsV3

ParameterTypeDescriptionRequired
cursorstringCursor value, used for pagination
takenumberThe number of subscriptions to fetch. Default: 20
sortasc | descDefault asc - sorted by slug
archivedbooleanDefault response returns both archived and unarchived plans
productUuidstringFilter plans by product

Return Type

For more information about this request see our API documentation on get all plans.