Javascript
import DodoPayments from 'dodopayments'; const client = new DodoPayments({ bearerToken: 'My Bearer Token', }); await client.subscriptions.changePlan('subscription_id', { product_id: 'product_id', proration_billing_mode: 'prorated_immediately', quantity: 0, });
Modify an existing subscription’s plan, enabling both upgrades and downgrades to different pricing tiers.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Subscription Id
Subscription plan changed