Swap Subscription Plan Variations
Beta release
This is pre-release documentation for an API in public beta and is subject to change.
In cases where a customer wants to switch one subscription type for another, such as upgrading to a new or premium subscription tier, you can swap the plan variation for a customer's subscription by using the SwapPlan endpoint.
In your request, include the subscription_id
to update the path. In the request body, include the ID of the new plan variation as the new_plan_variation_id
, as well as a list of phases
containing an ordinal
and an order_template_id
corresponding to those in the new plan variation.
The response returns the current Subscription
object containing a new SWAP_PLAN
action. The customer remains subscribed to the original plan variation until the end of the current billing cycle, at which time the new plan variation replaces the original variation. If the customer is in the middle of a billing cycle and you want to subscribe them to a new plan variation effective immediately, you must cancel the current subscription
and create a new subscription
with the desired plan variation.
If you need more assistance, contact Developer Support or ask for help in the Developer Forums.