Change subscription plan
POST/subs/upgrade
Changes the plan of an active subscription. The cost is calculated as the difference between the new plan price and the remaining value of the current plan.
Price formula:
remaining_value = (old_plan_price / old_plan_days) × remaining_days
upgrade_price = new_plan_price - remaining_value
After the plan change, the subscription gets a new period starting from now. If upgrade_price <= 0 — the plan change is not allowed.
Request
Responses
- 200
- 400
- 401
- 402
- 403
- 404
- 429
- 503
Plan changed
Invalid request
Invalid credentials
Insufficient balance
Plan does not belong to this integration
Not found
Rate limit exceeded
Service temporarily unavailable