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

Deactivate a business ruleset

Deactivates a business ruleset by setting its active attribute to false. The ruleset and its rule memberships are retained, but Chargebee stops evaluating it.

Use this operation to switch off a whole group of rules in one call, without changing the rules themselves.

Impacts

Business ruleset

The ruleset active attribute is set to false and Chargebee stops evaluating it. The rules it contains and their priorities are retained, and each rule keeps its own active value, so a rule that belongs to another active ruleset is still evaluated there.

Implementation Notes

The rules in the ruleset are not deactivated. They can still be applied on their own with Apply business rules using rule_id. To switch off an individual rule everywhere, use Deactivate a business rule.

Sample Request

Sample Result[JSON]

URL Format

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

Returns

Business ruleset object

The business ruleset after deactivation, with active set to false. Its rules and their priorities are retained, and each rule keeps its own active value.