Skip to main content
A reconciliation in End Close compares two sides of financial data and matches the records that belong together, for example Stripe payouts on Side A against bank deposits on Side B. Each side is one or more data streams, and rules decide which records match.

How a reconciliation fits with the other concepts

  • Sides. Side A and Side B each hold one or more data streams. Every record on those streams is a line in the reconciliation.
  • Rules. A reconciliation’s rules run in priority order and group records into matches.
  • Matches. A match holds records from both sides that account for each other. People can also match records by hand.
  • Exceptions. Unmatched lines that pass their overdue_at roll up into an exception per data stream.
  • Agents. End Close’s reconciliation agent writes and refines rules, and agents investigate exceptions.
A stream can belong to several reconciliations. A record’s match status is tracked per reconciliation, so the same bank line can be matched in one and still open in another.

Reconciliation fields

Reconciliation
Create one with POST /reconciliations, passing side_a_stream_ids and side_b_stream_ids. To change the escalation delay later, send escalation_delay_days to PATCH /reconciliations/{id}, or null to turn it off. Records already loaded are moved to the new delay too (see when a record becomes overdue).
cURL

Continuous and batch reconciliations

Change the run type

Change run_type on Configure in the app, or with PATCH /reconciliations/{id}. When a reconciliation changes from batch to continuous, End Close queues one run over the unmatched records already loaded, so they don’t wait for a run that no longer comes. A run already in progress finishes first. A change from continuous to batch starts no run.

Run a batch reconciliation

POST /reconciliations/{id}/run starts a background run of the matching engine over the reconciliation’s unmatched records and active rules. It’s the same run as Run in the app.
cURL
The call returns 202 with the queued run. Poll GET /reconciliations/{id}: the run shows as current_run while it’s pending or running, and as last_run once it has completed or failed. rule_summary on the run counts matches per rule as it goes. A reconciliation has at most one run in progress. If one is already pending or running, the call returns 409 with that run in the body so you can poll it instead. Continuous reconciliations return 422, because they have no on-demand run.

Adjustments

Sometimes the two sides of a match don’t balance to the cent: a bank fee, an FX rounding difference, a short payment. End Close balances the match with an adjustment record, a “plug” sized to the difference, so the match nets to zero. Adjustments come from:
  • a manual match where you ask for one (create_adjustment: true on POST /reconciliation_matches), with a reason that becomes the adjustment’s description;
  • a many-to-one rule that matches within a variance (rollup.tolerance), which books the difference as “Rule variance”;
  • approving a suggested fix in an exception review;
  • a write-off, where the plug offsets records that have no counterpart.
Adjustments live on the reconciliation’s own adjustments streams, one per side, with type adjustments. These streams belong to that reconciliation alone. A plug never lands on one of your real feeds, so it can’t show up as an unmatched line in another reconciliation that shares the feed. Deleting the reconciliation deletes its adjustments streams too.

Approvals

A reconciliation can require a second person to approve the matches people make by hand (maker-checker), and an admin to approve the large ones. Set this under Configure → Approvals in the app, or with PATCH /reconciliations/{id}. Only admins can change these settings in the app. A match’s amount is the larger of the two sides’ absolute totals; for a write-off, the total of the records written off. While a match waits for approval, its records stay unmatched, and matching rules leave them alone. In an exception review their lines show Waiting for approval. Approving does exactly what the match would have done when it was made, including any adjustment. Rejecting leaves the records unmatched. Matches made through the API (POST /reconciliation_matches) are not held: an API key has no person behind it to check.

The reconciliation agent

Each reconciliation has an agent that writes and refines its matching rules. It runs on its own when records are uploaded or matched by hand. Before it adds a rule, it tests the rule against a sample of your records. Rules it creates show source: "ai". GET /reconciliations/{id}/agent_status returns what it’s doing:

Periods in the app

The reconciliation page in the app shows matched and unmatched totals for each side over a period: All Time, Last 3 Months, This Month, This Week, or a custom date range. The period changes what you see, not what gets matched.

Reconciliation stories

A reconciliation story chains related reconciliations so you can follow money end to end, for example processor to clearing account, then clearing account to bank. The first link is the origin. Each later link is a continuation and names the shared data stream that connects it to the previous reconciliation. Manage stories with the /reconciliation_stories endpoints.

Rules and matches

How records on the two sides are paired.

Exceptions

Where unmatched, overdue lines go.

Matching rules

Write your first rules.

API reference

Reconciliation, run and story endpoints.