Skip to main content

Reactivate a subscription

If a subscription has been set to cancel at the end of its cycle it can still be reactivated. This will update the subscription's cancelAtPeriodEnd property to false meaning it will continue to renew.

info

A subscription cannot be reactivated if its status is already CANCELED.

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

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