Migrate Subscriptions
/rpy/be-plan/v1/plans/subscriptions/migrationMigrate Subscriptions to Another Plan
This endpoint allows you to migrate one or more subscriptions from an existing recurrence plan (from) to a new target plan (to). This is useful when updating the terms or pricing of an active subscription without interrupting service to the customer.
Usage Scenarios:
- Moving existing customers from a legacy plan to a newly structured or updated plan.
- Updating subscription pricing or billing frequency while preserving active subscriptions.
- Consolidating subscriptions under a single plan for easier management.
Notes:
- Both from and to plan IDs must be valid UUIDs and belong to the same seller.
- If the subscriptions list is not provided, all subscriptions linked to the source plan (from) will be migrated to the destination plan (to).
- The username header should be provided for audit and traceability purposes.
- Ensure that the destination plan has compatible settings to avoid issues during migration.
Header Parameters
User who is registering. This information may be used for auditing purposes.
Body application/json
Identifier of the original plan, that is, the original plan_id of the Subscription.
Identifier of the target plan, that is, the plan_id to which you want to migrate the Subscription.
List of Subscription identifiers that will be migrated to the destination Plan (to field). If this list is not informed, then the service will migrate all Subscriptions from the source Plan (from field) to the destination Plan (to field).
Response
Accepted
Identifier of the original plan, that is, the original plan_id of the Subscription.
Identifier of the target plan, that is, the plan_id to which you want to migrate the Subscription.
List of Subscription identifiers that will be migrated to the destination Plan (to field). If this list is not informed, then the service will migrate all Subscriptions from the source Plan (from field) to the destination Plan (to field).
Invalid Requisition
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Not Found
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Unprocessable Entity
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Internal server or service error
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.