Introducing OpenTelemetry for Chargebee SDKs — trace every API call in any telemetry tool.

Activate a business ruleset

Activates a business ruleset by setting its active attribute to true, so that Chargebee evaluates the rules it contains.

Impacts

Business ruleset

The ruleset active attribute is set to true. Applying the ruleset with Apply business rules evaluates the rules it contains, in their priority order, following the strategy in execute_mode.

Activating the ruleset does not activate its rules. A rule is evaluated through the ruleset only when the rule itself is also active.

Implementation Notes

Check the membership with List rules in a business ruleset before calling this operation, and activate any rule that is still switched off with Activate a business rule. Otherwise the ruleset goes live evaluating only part of its membership.

Sample Request

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/business_rulesets/{business-ruleset-id}/activate

Returns

Business ruleset object

The business ruleset after activation, with active set to true.