Skip to main content
POST
Create a reconciliation match

Authorizations

X-API-KEY
string
header
required

Headers

Idempotency-Key
string

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.

Maximum string length: 255

Body

application/json
reconciliation_id
string
required
record_ids
string[]
required

IDs of records to match together

create_adjustment
boolean

If true and the records do not balance, creates an adjustment record so the match nets to zero. With records on both sides the adjustment is a credit on the side with the lower total. With records on one side only it is an offsetting entry on the other side, mirroring the selection's amount and direction. The record lives on the reconciliation's own adjustments stream for that side (a data stream of type adjustments, bound to this reconciliation alone), not on one of its feeds.

adjustment_reason
string

Description for the adjustment record

Response

Match created

A reconciliation match represents a group of records that have been matched together. Endclose supports many-to-one matching, so a single match can contain a large number of records — to retrieve them, use GET /v1/records?reconciliation_match_id={id}.

id
string<uuid>
status
string
group_key
string
reconciliation_id
string<uuid>
reconciliation_rule_id
string<uuid>
created_at
string<date-time>
record_count
integer

Total number of records in this match