import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const cancelSubscription = await client.v1.subscriptions.futureUpdate.cancelSchedule('x');
console.log(cancelSubscription.data);
{
"data": {
"id": "<string>"
}
}
Subscriptions
Cancel scheduled update
Cancels a scheduled subscription update, such as a future downgrade or plan change.
DELETE
/
api
/
v1
/
subscriptions
/
{id}
/
future-update
/
schedule
JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const cancelSubscription = await client.v1.subscriptions.futureUpdate.cancelSchedule('x');
console.log(cancelSubscription.data);