Reconciliation
Create matching rule
Create a reconciliation matching rule with the TypeScript SDK.
POST
Create matching rule
Use
blnk.Reconciliation.createMatchingRule to create a matching rule.
Call the method
blnk.Reconciliation.createMatchingRule
| Field | Type | Description |
|---|---|---|
name | string | Name of the matching rule. |
description | string | Short description of what the rule does. |
criteria | object[] | Array of match criteria. Each entry sets how one field is compared. |
criteria[].field | string | Field to match: amount, currency, reference, description, or date. |
criteria[].operator | string | How to compare the field: equals or contains. |
criteria[].allowable_drift | number | Optional tolerance for amount (percentage) or date (seconds). |
Save the rule ID
Use
response.data.rule_id in matching_rule_ids when you start reconciliation.Related docs
How reconciliation works
Criteria, operators, and drift behavior.
Create matching rule
HTTP request and response schema.