Confirm a bank-match
Record that bank-feed row(s) correspond to DualEntry transaction(s)/entry(s).
matching_status flips to matched, the pairing shows
up in the DualEntry reconciliation view, and the response returns the
match_group_id.
Pass singular fields for a 1:1 match, or financial_transaction_ids plus
transaction_ids/entry_ids for an M:N match.
Constraints (validated server-side and reported as 400 on failure):
- All bank-feed rows must be on the same financial account as the DualEntry targets’ bank/credit-card entries.
- Amounts must reconcile (sum of bank amounts equals net entry amount) in a single currency.
- All bank-feed rows must share the same sign; balance alone is not enough.
- No item may already be part of another match (call
/unmatches/first to redo a pairing).
Headers
Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.
255Body
Body for POST /matches/. Pair bank-feed row(s) with DualEntry target(s).
Use the singular fields for a 1:1 match, or the plural fields
(financial_transaction_ids + transaction_ids/entry_ids) for an M:N
match. Don't mix a singular field with its plural counterpart.