Rules

📏 Rules

Rules are a set of conditions checked against processed events (e.g., transactions).
They enable real-time monitoring by triggering alerts when specified thresholds are met or exceeded.

Rules can be customized to reflect each Member’s risk appetite and operational requirements.

🔄 Lifecycle

  • Create Rule: Define the logic and thresholds for triggering alerts.
  • Update Rule: Adjust thresholds or rule logic based on changing requirements.

🛠️ Creating a Rule

Send a POST request to: POST /api/v1/rules


📘 Field Descriptions

FieldTypeDescription
idstringUnique identifier for the rule.
namestringDescriptive name of the rule.
definitionobjectRule logic configuration block. Contains the template and parameters.
definition.templatestringType of rule logic used (e.g., MonthlyTurnoverPercentage).
definition.percentageThresholdnumberThreshold percentage used for triggering the rule.
definition.timePeriodstring (ISO 8601)Time window for evaluating the rule (e.g., PT48H = 48 hours).
definition.entityExternalTypesstring[]List of applicable entity types (e.g., END_USER, MEMBER_LEGAL_ENTITY).
definition.entityTypestringTypes of Entity: INDIVIDUAL or BUSINESS
definition.counterpartiesCountThresholdintegerThreshold of the counterparties which should trigger the alert (equal or more)
statusstringCurrent status of the rule: ENABLED or DISABLED.
categoriesstring[]Tags or classification labels for the rule (e.g., HIGH_VALUE_VOLUMES).
alertobjectSettings related to alert generation for the rule.
alert.raiseNewAfterstring (ISO 8601)Specify when the new alert for the same rule should be triggered, if the alert for this rule and specific entity is still open(e.g., PT24H).
alert.quietPeriodstring (ISO 8601)Specify the time when the alert for the specific entity and rule should not be triggered if there was the same alert created and resolved (e.g., PT24H).
alert.eventsOrderedBystringField used to order evaluated events, typically DATE.
createdAtinteger (timestamp)Timestamp when the rule was created (in milliseconds).
updatedAtinteger (timestamp)Timestamp when the rule was last updated (in milliseconds).

🚨 Behavior

When an event (like a transaction) meets the rule’s conditions:

  • An alert is triggered
  • Details of the event and matched rule are logged for review

Rules can be adapted over time to reflect updated compliance policies or operational risk thresholds.