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.
blnk.Reconciliation.createMatchingRule
| Field | Description |
|---|---|
name | Name of the matching rule. |
description | Short description of what the rule does. |
criteria | Array of match criteria. Each entry sets how one field is compared. |
criteria[].field | Field to match: amount, currency, reference, description, or date. |
criteria[].operator | How to compare the field: equals or contains. |
criteria[].allowable_drift | Optional tolerance for amount (percentage) or date (seconds). |
Response shape
201 Created
| Field | Description |
|---|---|
rule_id | Unique ID for the rule. Store it to apply during reconciliation runs. |
name | Rule name you passed. |
criteria | The match criteria stored for the rule. |
created_at | When the rule was created. |
updated_at | When the rule was last updated. |
Related docs
How reconciliation works
Criteria, operators, and drift behavior.
Create matching rule
HTTP request and response schema.