Create a reconciliation rule
Authorizations
Headers
Optional. Send the same key when retrying a write you are not sure landed: the first response is returned again (with Idempotent-Replayed: true) instead of writing twice. A key used for a different request is refused with 422; one whose first request is still running gets 409. A refused or failed request does not use up its key. Keys are per environment and kept for 7 days.
255Body
Response
Rule created
A rule tree with group nodes (AND/OR) and condition leaf nodes. Conditions compare a field on one side to a field on the other side. On a many_to_one rule only AND-combined eq conditions without tolerances are accepted: amount eq amount is satisfied by the rollup itself (the group total is compared to the Side B amount), and every other condition segments the Side A groups by its key and requires the Side B record to carry the same value in its value field (for example metadata.operator eq metadata.operator keeps each operator's batches with that operator's payout). OR groups, other operands and tolerances are rejected on many_to_one rules; to accept a group total that differs by a small amount, set rollup.tolerance.
Lower values run first
Field keys on the grouped side (Side A, or Side B when rollup.side is 'b') to group records by before matching. The first key is the primary axis: in rollup.group_by_kind 'date' mode it must be a date field; in 'identifier' mode it can be any field (e.g. a batch id in metadata). Additional keys further segment Side A — in date mode each segment matches only Side B records with the same value for those fields; in identifier mode they form a composite cohort key and do not constrain the Side B record. To require the Side B record to share a value in either mode, add an eq condition to filters.
Match cardinality. 'one_to_one' matches single records on each side. 'many_to_one' rolls up multiple records on one side to match a single record on the other side — requires the rollup field to be set. The grouped side is Side A by default; set rollup.side to 'b' to group Side B.
one_to_one, many_to_one Required when cardinality is 'many_to_one'. Configures how records on the many side are aggregated before matching.
Optional human-readable description of what this rule matches
When true, a match this rule finds is not finalized automatically. Its records stay unmatched and a human_review exception opens for the match; a person approves or rejects it in the app. A rejected match is not proposed again by the same rule.
Origin of the rule. 'user' = created manually via the API or UI. 'ai' = created by the AI rules engine. 'default' = built-in rule seeded on older reconciliations (no longer created).
user, ai, default Active rules are used by the reconciliation engine. Proposed rules are awaiting review from a cold start.
active, proposed AI confidence rating. Only present on AI-generated rules from cold start.
high, medium, low How many sample records this rule matched during dry-run evaluation (e.g. '42/50'). Only present on AI-generated rules from cold start.