Update a Subscription's Plan (DEPRECATED)
This method is deprecated. Please use the Change Plan method.
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
The uuid
of the new Plan the Subscription will be moved 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