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

Enable or disable subscription entitlements

Idempotency Supported

Enables or disables specific subscription_entitlements for a subscription.

Sample Request

To enable/disable features for a subscription

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/subscriptions/{subscription-id}/subscription_entitlements/set_availability

Input Parameters

is_enabled
required, boolean

Specifies whether the subscription_entitlements are to be enabled or disabled.

subscription_entitlements[0..n]
Parameters for subscription_entitlements. Multiple subscription_entitlements can be passed by specifying unique indices.
pass parameters as subscription_entitlements[<param name>][<idx:0..n>]

Returns

Subscription entitlement object
Resource object representing subscription_entitlement