Skip to main content
Version: v2.8.0

Remove Subscription Seats

Remove seats from a Subscription. Seats can only be removed if they are unassigned. To unassign seats use the update many method to set the granteeId of each seat to null.

Code Sample

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

const salable = new Salable('{{API_KEY}}');

await salable.subscriptions.removeSeats('{{SUBSCRIPTION_UUID}}', { decrement: 2 });

Parameters

subscriptionId (required)

Type: string

The uuid of the Subscription the seats will be removed from

config (required)

Type: ISubscriptionRemoveSeatsParams

OptionDescription
decrementThe number of seats to be removed