Skip to main content
Version: v1.7.0

Change Plan

Update the subscription to a new plan.

Code Sample

const { SalableApi } = require('@salable/node-sdk');

const salable = new SalableApi('API-KEY');

const subscription = await salable.subscriptions.changePlan(
'41cf33a2-136e-4959-b5c7-73889ab94eff',
'2dc7b9ab-e3bc-4151-9443-07ddffd7350d'
);

Parameters

newPlanId (required)

Type: string

The uuid of the Plan the Subscription is moving to

subscriptionId (required)

Type: string

The uuid of the Subscription that is being moved

Return Type

For more information about this request see our API documentation on Subscription Object