Reconciliation
Create matching rule
Create a reconciliation matching rule with the Go SDK.
POST
Create matching rule
Use
client.Reconciliation.CreateMatchingRule to create a matching rule.
Call the method
client.Reconciliation.CreateMatchingRule
| Field | Type | Description |
|---|---|---|
Name | string | Name of the matching rule. |
Description | string | Short description of what the rule does. |
Criteria | []blnkgo.Criteria | Array of match criteria. Each entry sets how one field is compared. |
Criteria[].Field | blnkgo.CriteriaField | Field to match: CriteriaFieldAmount, CriteriaFieldCurrency, CriteriaFieldReference, CriteriaFieldDescription, or CriteriaFieldDate. |
Criteria[].Operator | blnkgo.ReconciliationOperator | How to compare the field: ReconciliationOperatorEquals or ReconciliationOperatorContains. |
Criteria[].AllowableDrift | float64 | Optional tolerance for amount (percentage) or date (seconds). |
Save the rule ID
Use
matchingRule.RuleID in MatchingRuleIDs when you start reconciliation.Related docs
How reconciliation works
Criteria, operators, and drift behavior.
Create matching rule
HTTP request and response schema.