Skip to main content
Version: Node SDK

Update Subscription Seat Count

Add seats

Increase a subscription's seat count. If the subscription's plan has a max seat limit you will not be able to exceed this. All created seats will be unassigned, to assign them use the [./subscriptions/manage-seats.md](manage seats) method.

Code Sample

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

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

await salable.subscriptions.updateSeatCount('d18642b3-6dc0-40c4-aaa5-6315ed37c744', { increment: 2 });

Parameters

subscriptionUuid (required)

Type: string

The UUID of the Subscription

Options (required)

Type: { increment: number, proration?: string }

OptionTypeDescriptionRequired
incrementnumberThe number of seats to be created
prorationstringcreate_prorations: Will cause proration invoice items to be created when applicable (default). none: Disable creating prorations in this request. always_invoice: Always invoice immediately for prorations.

Return Type

For more information about this request see our API documentation on Subscription Seat Object

Remove seats

Decrease a subscription's seat count. If the subscription's plan has a minimum seat limit you will not be able to go below this. Only unassigned seats can be removed, to unassign seats use the [./subscriptions/manage-seats.md](manage seats) method.

Code Sample

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

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

await salable.subscriptions.updateSeatCount('d18642b3-6dc0-40c4-aaa5-6315ed37c744', { decrement: 2 });

Parameters

subscriptionUuid (required)

Type: string

The UUID of the Subscription

Options (required)

Type: { decrement: number, proration?: string }

OptionTypeDescriptionRequired
decrementnumberThe number of seats that will be removed
prorationstringcreate_prorations: Will cause proration invoice items to be created when applicable (default). none: Disable creating prorations in this request. always_invoice: Always invoice immediately for prorations.

Return Type

For more information about this request see our API documentation on Subscription Seat Object