Skip to main content

Cancel a subscription

You can cancel a subscription with its associated subscriptionUuid.


The second argument to subscriptions.cancel represents when you want the subscription to cancel.

nowImmediately cancels the Subscription
endCancels the Subscription at the end of it's billing period
import { Salable } from '@salable/node-sdk';

const salable = new Salable('your-salable-api-key');
await salable.subscriptions.cancel('your-subscription-uuid', 'end');