Parameters
Authorization
accept_migration() call, the old subscription cancellation, and the new token.approve() for the target plan.
Return value
u64 - the new subscription ID on the target plan.
Events emitted
Error cases
Examples
- SDK
- Soroban CLI
The new subscription inherits the subscriber’s billing history context but starts fresh on the new plan’s terms. The old subscription is permanently cancelled. The new allowance is calculated based on the new plan’s
price_ceiling and max_periods.