Update seat count
Add seats
All seats created will be unassigned. To assign the seats to grantees, see updating seats. Ensure that the number of seats being added doesn't take the number of active seats above the maximum set on the subscription's plan.
- Node SDK
- Fetch
- cURL
import { initSalable } from '@salable/node-sdk';
const salable = initSalable('your-salable-api-key', 'v3');
await salable.subscriptions.updateSeatCount('your-subscription-uuid', {
increment: 2,
});
await fetch("https://api.salable.app/subscriptions/your-subscription-uuid", {
method: "POST",
headers: {
"x-api-key": "your-salable-api-key",
version: "v3"
},
body: JSON.stringify({
increment: 2
});
})
curl
-XPOST
-H 'x-api-key: your-salable-api-key'
-H 'version: v3'
-d '{ "increment": 2 }'
'https://api.salable.app/subscriptions/your-subscription-uuid/seats'
Remove seats
Only unassigned seats can be removed from a subscription. Ensure that the number of seats being removed doesn't take the number of active seats below the minimum set on the subscription's plan.
- Node SDK
- Fetch
- cURL
import { initSalable } from '@salable/node-sdk';
const salable = initSalable('your-salable-api-key', 'v3');
await salable.subscriptions.updateSeatCount('your-subscription-uuid', {
decrement: 2,
});
await fetch("https://api.salable.app/subscriptions/your-subscription-uuid", {
method: "POST",
headers: {
"x-api-key": "your-salable-api-key",
version: "v3"
},
body: JSON.stringify({
decrement: 2
});
})
curl
-XPOST
-H 'x-api-key: your-salable-api-key'
-H 'version: v3'
-d '{ "decrement": 2 }'
'https://api.salable.app/subscriptions/your-subscription-uuid/seats'
danger
If you are receiving payment for your subscription, do not modify subscriptions directly through Stripe. Always manage them through the Salable API/SDKs to avoid issues.