Renew subscription for a custom period
POST/subs/renew/custom
Renews an existing subscription for a specified number of days. The price and traffic are calculated proportionally from the current plan.
Price formula:
total_price = (plan_price_usd / plan_days) × custom_days
additional_bytes = (plan_traffic_limit_bytes / plan_days) × custom_days
If the subscription has already expired, the new period starts from now. If it's still active, the new period is added to the current end date.
Request
Responses
- 200
- 400
- 401
- 402
- 404
- 422
- 429
- 503
Subscription renewed
Subscription is frozen
Invalid credentials
Insufficient balance
Subscription not found
Invalid request parameters
Rate limit exceeded
Service temporarily unavailable