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

The number of billing cycles by which the subscription should be extended.

Default behavior

  • If the subscription's plan has billing_cycles set, that value is used.
  • If the plan's billing cycles attribute is not set, 1 is used.
subscription
Parameters for subscription
pass parameters as subscription[<param name>]

Returns

hosted_pageHosted page object
Resource object representing hosted_page