Use this file to discover all available pages before exploring further.
Qualification rules define conditions that offers must satisfy before they can be recommended to a customer. Rules are evaluated during the qualification stage of a Decision Flow and can be scoped globally or to a specific segment, channel, category, sub-category, offer, or placement.
Array of scope assignments. Each item: { scope: "global"|"category"|"subcategory"|"channel"|"offer"|"creative", scopeId: "entity-UUID" }. When provided, overrides the legacy scope/scopeId fields. A rule can have multiple scope assignments simultaneously.
Soft-deletes a qualification rule by ID. The record is marked as deleted but retained in the database for audit purposes. The response includes warnings if the rule is still referenced by any Decision Flow’s draftConfig.
{ "deleted": true, "warnings": [ "Referenced by decision flow \"Credit Card NBA\" — it will skip this rule." ]}
This endpoint uses soft-delete — the record is not physically removed from the database. It is excluded from GET results by default. To include soft-deleted records, pass ?includeDeleted=true on the GET request.
Unlike most DELETE endpoints that return 204, this endpoint returns 200 with a body so it can communicate ghost-reference warnings. The API checks all Decision Flows in the tenant for references to this rule ID in their draftConfig.stages.filter.qualificationRuleIds array.
Qualification rules use soft-delete with audit snapshots. When a rule is deleted:
The deletedAt timestamp is set (record is retained).
An audit snapshot is captured with the full state before deletion.
Ghost reference warnings are returned if the rule is still referenced by any Decision Flow.
Updates also create audit snapshots via auditedUpdate, incrementing the rowVersion on each change. This provides a full change history for compliance and debugging.To include soft-deleted rules in GET responses, add ?includeDeleted=true to the query string.
Multi-scope rules are evaluated differently: global-scoped rules are evaluated in the Decision Flow’s Qualify node, while entity-scoped rules (offer, category, channel, creative) are automatically evaluated per-candidate during the recommend pipeline.
Qualification Rules
Learn more about configuring qualification rules in the platform UI.