ChargebeeAPI
Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now

Extend Subscription

Idempotency Supported
Try in API Explorer

This 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

expiry
optional, integer, min=1, max=500

Expiry (in days) for the link generated. No expiry will be set if this is not specified.

billing_cycle
optional, integer, min=1

Number of billing cycles to extend. If not specified, plan's billing cycle will be used.

subscription
Parameters for subscription
pass parameters as subscription[<param name>]

Returns

hosted_pageHosted page object
Resource object representing hosted_page