Skip to main content

Get seats

Get the list of seats that are on the provided subscription. One common usage of this data is to show your users the list of people on their team. Seats that have a status of CANCELED are not included in the response. The response uses cursor pagination.

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

const salable = new Salable('your-salable-api-key', 'v2');
const seats = await salable.subscription.getSeats('your-subscription-uuid');

Get seat count

Obtain the aggregate count of seats, as well as the amount that are assigned or unassigned. This data can be used in many ways, one common usage is to show your users how many of their remaining seats are available to be filled. Seats that have a status of CANCELED are ignored in the count.

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

const salable = new Salable('your-salable-api-key', 'v2');
const count = await api.subscriptions.getSeatCount('your-subscription-uuid');