Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now
Idempotency Supported
Try in API ExplorerThis API generates a hosted page URL to extend the billing cycle of a subscription.
Sample Request
URL Format
POST https://[site].chargebee.com/api/v2/hosted_pages/extend_subscription
Input Parameters
optional, integer, min=1, max=500
Expiry (in days) for the link generated. No expiry will be set if this is not specified.
optional, integer, min=1
The number of billing cycles by which the subscription should be extended.
Default behavior
- If the subscription's plan has
billing_cyclesset, that value is used. - If the plan's billing cycles attribute is not set,
1is used.
Returns
hosted_pageHosted page object
Resource object representing hosted_page