Update a Subscription's Plan
Update the subscription to a new plan.
Code Sample
import { Salable } from '@salable/node-sdk';
const salable = new Salable('{{API_KEY}}');
const subscription = await salable.subscriptions.updatePlan(
'{{PLAN_UUID}}',
'{{SUBSCRIPTION_UUID}}'
);
Parameters
newPlanId (required)
Type: string
Plan uuid
of the new plan you wish to update 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