Documentation Index
Fetch the complete documentation index at: https://vowena.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
migration_target field on all active subscriptions under the old plan. Each subscriber must individually call accept_migration or reject_migration - the migration is never automatic.
Parameters
| Name | Type | Description |
|---|---|---|
merchant | Address | The merchant’s Stellar address. Must own both plans. |
old_plan_id | u64 | The plan ID to migrate subscribers from. |
new_plan_id | u64 | The plan ID to migrate subscribers to. |
Authorization
Return value
None (void).
Events emitted
| Event | Topics | Data |
|---|---|---|
mig_req | old_plan_id, new_plan_id | Migration details |
Error cases
| Code | Name | Description |
|---|---|---|
| 11 | MerchantMismatch | The old and new plans belong to different merchants. |
| 7 | PlanInactive | The new plan is not active. |
Examples
- SDK
- Soroban CLI
Requesting a migration does not move anyone. It sets a pending flag on each subscription. Subscribers can continue to be billed on the old plan until they explicitly accept or reject. This ensures subscribers always have full control.