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

Deactivate a business rule

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

Use this operation to switch a rule off temporarily. Because nothing is discarded, you can switch it back on later with Activate a business rule.

Impacts

Business rule

The rule active attribute is set to false. Chargebee stops evaluating the rule, including when it is reached through a business ruleset that contains it. The rule versions and ruleset memberships are retained.

Implementation Notes

To stop evaluating every rule in a ruleset at once, deactivate the ruleset with Deactivate a business ruleset instead of deactivating its rules one by one.

Sample Request

Sample Result[JSON]

URL Format

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

Returns

Business rule object

The business rule after deactivation, with active set to false. Its versions and ruleset memberships are retained.