Comparisons that must all match. At least one is required.
Criterion
fieldstringrequiredbody
amount, currency, date, reference, or description.
operatorstringrequiredbody
equals, greater_than, less_than, or contains. Anything else returns 400 with RECON_RULE_INVALID. amount matches with equals, greater_than, and less_than. date matches with those same three. On one-to-one and one-to-many, greater_than means the external date is later. On many-to-one, it means the ledger created_at is later. currency, reference, and description match with equals and contains. An operator that does not match that field is stored and then never matches.
allowable_driftnumberbody
On equals, a fraction from 0 to 1 for amount (0.01 is 1%), or seconds for date. On contains, it is divided by 100 and applied to the longer string when neither value includes the other. See Matching rules.
Response
rule_idstringrequired
Id of the rule. Pass it in matching_rule_ids when you start a run.
namestringrequired
Name of the rule.
descriptionstring
What the rule is for.
criteriaobject[]required
The criteria that were stored. Each criterion also includes value and pattern. Matching does not read them.
created_atstringrequired
When the rule was created.
updated_atstringrequired
When the rule was last changed. Same as created_at on create.