Remove seats
Only unassigned seats can be removed.
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.
- Node SDK
- Fetch
- cURL
import { Salable } from '@salable/node-sdk';
const salable = new Salable('your-salable-api-key', 'v2');
await salable.subscriptions.removeSeats('your-subscription-uuid', {
decrement: 2,
});
await fetch("https://api.salable.app/subscriptions/your-subscription-uuid", {
method: "PUT",
headers: {
"x-api-key": "your-salable-api-key",
version: "v2"
},
body: JSON.stringify({
decrement: 2
});
})
curl
-XPUT
-H 'x-api-key: your-salable-api-key'
-H 'version: v2'
-d '{ "decrement": 2 }'
'https://api.salable.app/subscriptions/your-subscription-uuid/seats'
caution
Ensure that the number of seats being removed doesn't take the number of active seats below the minimum set on the plan.