- A context is a single reconciliation you care about — for example, “our main bank account vs. our books.” It sets the scope: which systems are compared, which rules apply, and over what period.
- A source is one of the systems feeding numbers into that comparison — a bank statement, an ERP export, a payment processor’s settlement file, or a ledger.
What is a reconciliation context?
A reconciliation context defines the operational boundaries of a reconciliation process. It specifies:
- Which data sources are compared
- Which matching rules apply
- How exceptions are handled
- The time window covered by reconciliation
- Bank Account 1234 vs General Ledger (daily bank reconciliation)
- Payment Gateway vs Revenue System (payment reconciliation)
- Intercompany Entity A vs Entity B (intercompany reconciliation)
Context types
Matcher lets you use different reconciliation cardinalities based on transaction structure.
One-to-one (1:1)
Each transaction is reconciled against a single counterpart. Typical use cases:- Bank statements
- Direct payment matching
One-to-many (1:n)
One transaction is reconciled against multiple counterparts. Typical use cases:- Split payments
- Batch deposits
- Consolidated invoices
Many-to-many (n:m)
Multiple transactions are reconciled across multiple counterparts. Typical use cases:- Netting arrangements
- Complex payment allocation
- Multi-leg financial flows
Creating a reconciliation context
Once you know what you’re reconciling, create the context. At this stage you’re mainly declaring the cardinality (
type), how often it runs (interval), and any fee tolerance the comparison should allow. A new context starts in DRAFT so you can add sources and rules before it goes live.
Request
cURL
Context fields
string
Descriptive name for the context
string
Matching cardinality:
1:1, 1:N, or N:Mstring
Reconciliation frequency (e.g.
daily, weekly)string
default:"0"
Absolute fee tolerance for amount comparison, as a decimal string (e.g.
"0.01")string
default:"0"
Percentage fee tolerance for amount comparison, as a decimal string (
"0.5" means 0.5%)string
default:"NET"
Fee normalization mode:
NET or GROSSboolean
default:"false"
Automatically trigger a match run when a file is uploaded
Response
Running reconciliation
A context doesn’t reconcile on its own — you trigger a match run. A run applies the context’s active rules to the transactions in its sources, then produces matches and exceptions. You can trigger runs by hand, or let a schedule fire them automatically. Every run works in one of two modes:
Trigger a run for a context:
cURL
"async": true to submit the run and poll its progress instead.
Both modes return HTTP 202 Accepted, so read the response
status, not the HTTP code, to know the outcome.A synchronous run returns a terminal COMPLETED or FAILED; an async run returns QUEUED, and you poll GET /v1/matching/runs/{runId}.While in flight, a run moves through PROCESSING and FINALIZING (treat both as not-yet-done) before reaching COMPLETED or FAILED.GET /v1/matching/contexts/{contextId}/runs.
What is a source?
A source represents a system or data feed that supplies transactions to a reconciliation context. Each context requires at least two sources. Typical sources include:
- Bank statement feeds
- ERP general ledger exports
- Payment processor transaction streams
- Internal accounting systems
Adding sources to a context
A context needs at least two sources — one for each side of the comparison. The
side field (LEFT or RIGHT) declares which side a source feeds; Matcher reconciles the LEFT side against the RIGHT side. Assign one side to each source and keep the assignment consistent.
Create a source with a name, type, side, and a config object. Leave config empty ({}) when the source needs no connection-specific settings — as with a bank feed on the LEFT side:
cURL
config carries source-specific connection and parsing settings when they’re needed — for example a payment gateway on the RIGHT side:
cURL
name, type, and side are required (name is 1–50 characters). config is optional and defaults to an empty object when omitted.Source types
Fetcher sources
AFETCHER source has its data pulled in automatically instead of being uploaded. Create it like any other source, then wire the upstream aggregator connection through a source binding on the query rail (connectionId) — see Discovery for how connections are set up.
cURL
Managing sources
Sources support a full CRUD lifecycle under
/v1/contexts/{contextId}/sources. You can rename or reconfigure a source at any time, and archiving is soft and reversible — an archived source stops feeding new data but keeps its full history until you restore it.
Source bindings
Bindings are how a source pulls its own data automatically, so no one has to upload files by hand. A source binding ties a source to the rail that supplies its transactions, plus an interval schedule for how often to pull. Exactly one rail is meaningful per binding
kind:
file— fetches files via a transport (populatestransportConfig).query— pulls rows through a discovery-engine connection (populatesconnectionId; see Discovery).
/v1/contexts/{contextId}/sources/{sourceId}/bindings.
List returns every binding, enabled and disabled, so a disabled binding stays visible instead of silently vanishing.
Create a query-rail binding
cURL
Fields
string
required
Rail the source is pulled on:
file or query (required).string (UUID)
Query-rail discovery-engine connection. Required for
query, rejected for file.string
Declared format the binding produces (region/family-namespaced descriptor key, e.g.
br/cnab400/default).string
Interval schedule the binding scheduler reads (cron or
@every duration).boolean
Whether the binding runs immediately. Defaults to
true.Managing contexts
As reconciliations evolve, you’ll adjust a context’s settings, pause it, retire it, or copy it. These lifecycle operations preserve history so you never lose an audit trail.
Update a context
cURL
Pause a context
To temporarily stop a context from being used in reconciliation runs, update its status toPAUSED:
cURL
- Prevents new match runs
- Preserves historical data
- Allows future reactivation by setting status back to
ACTIVE
Archive a context
Archiving is a reversible soft-delete. Instead of permanently removing a context, it moves the context to theARCHIVED status, preserving its full history (sources, rules, match runs, and audit records) while excluding it from the default context listing.
cURL
- Sets the context status to
ARCHIVED - Preserves the complete history and audit trail
- Excludes the context from the default listing
- Can be reversed at any time with the restore endpoint
Restore a context
Restoring reverses an archive, moving the context fromARCHIVED back to DRAFT so it can be reviewed and reconfigured before being reactivated.
cURL
- Sets the context status from
ARCHIVEDback toDRAFT - Does not resume matching automatically—review and reactivate the context to run reconciliation again
- Returns
409 Conflictif called on a context that is not archived
Clone a context
To duplicate an existing context with its sources, rules, fee rules, and field maps, use the clone endpoint. This is useful for creating templates or replicating configurations across environments. Cloned fee rules keep referencing the same fee schedules as the source context; the fee schedules themselves are not copied.cURL
DRAFT status, so you can review and adjust the configuration before activating it.
Context lifecycle
A reconciliation context follows a well-defined lifecycle that controls when matching can run and how data is preserved.
- A context is first created in Draft, where sources and settings are configured.
- Once all required sources are in place, the context becomes Active and is eligible for reconciliation runs.
- An active context can be temporarily Paused to stop execution without affecting configuration or historical data.
- When a context is no longer needed, it can be Archived via the archive endpoint. Archiving is a reversible soft-delete: it moves the context to
ARCHIVED, preserves the full history and audit records, and excludes it from the default listing. An archived context can be brought back to Draft at any time with the restore endpoint.
Lifecycle of a Matcher context
Best practices
Use descriptive names
Use descriptive names
Use explicit names that reflect accounts, systems, and purpose.
Start with conservative thresholds
Start with conservative thresholds
Favor accuracy over automation initially. Adjust thresholds based on observed results.
Separate concerns
Separate concerns
Use multiple contexts instead of a single broad reconciliation.
Flag regulatory sources
Flag regulatory sources
Always mark sources with compliance requirements.
Align timezones
Align timezones
Ensure source timezones reflect the original data feed.
Document sign conventions
Document sign conventions
Explicitly define debit and credit semantics for each source.
Next steps
Field mapping
Define how source fields map to Matcher’s schema.
Match rules
Configure the rules that drive reconciliation.

