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

Delete a business rule draft

Deletes the draft version of a business rule, permanently discarding every change that has not been released. The released version of the rule is not affected.

Use this operation to abandon a revision you no longer want to release, and to leave the rule serving its released version unchanged.

Prerequisites & Constraints

Impacts

Business rule

The unreleased changes are discarded and the rule no longer has a draft. latest_version, released_at, released_by, and active are unchanged, and Chargebee keeps evaluating the released version.

The next call to Update a business rule draft starts a fresh draft from the released version.

Implementation Notes

Review the draft with Retrieve a business rule draft before calling this operation, because the unreleased changes cannot be recovered afterwards.

Sample Request

Sample Result[JSON]

URL Format

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

Returns

Business rule object

The business rule after its draft was discarded, describing the released version that remains in effect.