Create a reconciliation context
Use this endpoint to create a new reconciliation context. Contexts are used to scope matching rules and organize your reconciliation configuration.
Authorizations
Bearer token authentication (format: "Bearer {token}")
Headers
A unique identifier for tracing the request across services.
Optional idempotency key for safe retries. Matcher reads the key only from this header, and only when you send one. A request that carries a key only in X-Idempotency-Key or Idempotency-Key is refused with 400 (MTCH-0015), and nothing is processed. If the same key is sent again and the original request was already processed, the stored response is returned with X-Idempotency-Replayed: true. A malformed key returns 400, a key whose first request is still in progress returns 409, and an idempotency storage failure returns 500. These refusals are problem documents.
Body
Context creation payload
Execution interval label for the context (e.g. daily, weekly).
1 - 100"daily"
Human-readable name of the reconciliation context.
1 - 100"Bank Reconciliation Q1"
Reconciliation topology. 1:1 matches one left transaction to one right transaction; 1:N matches one transaction against many on the other side; N:M matches groups on both sides.
1:1, 1:N, N:M "1:1"
Business-day calendar the aging threshold is measured against (e.g. US_FED, BR_ANBIMA). Omit/empty measures the age in raw calendar days.
"BR_ANBIMA"
Open-item aging SLA in business days. An open-item residual older than this surfaces as an AGED_BREAK exception during the match run. Omit to disable aging for the context.
30
When true, a match run is triggered automatically after a file upload completes.
false
Fee normalization mode. NET compares amounts after fees are deducted; GROSS compares amounts before fees.
NET, GROSS "NET"
Absolute fee tolerance as a decimal string in the context currency.
"0.01"
Percentage fee tolerance as a decimal string (0.5 means 0.5%).
"0.5"
Match rules to create inline with the context.
50How this context's data carries sign. SAME: a payment carries the same sign as what it settles, so a negative amount is a reversal. OPPOSITE: a payment carries the opposite sign of the invoice it settles. Defaults to SAME. In 1:N contexts only payments of the declared sign are allocated to an invoice, and in N:M contexts a short-paid invoice keeps an open balance only when it is positive under SAME, or when the rule's sign mode is opposite under OPPOSITE; any other short payment stays unmatched; a carried open balance settles on a payment of the declared sign or on a reversal from the invoice's own side, and a row from an archived source stays unmatched. It cannot change once the context has carried a partial balance, or while a match run is in progress.
SAME, OPPOSITE "SAME"
Sources to create inline with the context.
10Response
Successfully created context.
When true, a match run is triggered automatically after a file upload completes.
false
Creation timestamp in RFC 3339 format.
"2025-01-15T10:30:00Z"
Absolute fee tolerance as a decimal string in the context currency.
"0.50"
Percentage fee tolerance as a decimal string (0.01 means 0.01%).
"0.01"
Unique identifier of the context.
"550e8400-e29b-41d4-a716-446655440000"
Execution interval label for the context (e.g. daily, weekly).
"daily"
Human-readable name of the reconciliation context.
"Bank Reconciliation Q1"
How this context's data carries sign. SAME: a payment carries the same sign as what it settles, so a negative amount is a reversal. OPPOSITE: a payment carries the opposite sign of the invoice it settles. In 1:N contexts only payments of the declared sign are allocated to an invoice, and in N:M contexts a short-paid invoice keeps an open balance only when it is positive under SAME, or when the rule's sign mode is opposite under OPPOSITE; any other short payment stays unmatched; a carried open balance settles on a payment of the declared sign or on a reversal from the invoice's own side, and a row from an archived source stays unmatched. It cannot change once the context has carried a partial balance, or while a match run is in progress.
SAME, OPPOSITE "SAME"
Lifecycle status. DRAFT is being configured; ACTIVE runs; PAUSED is suspended; ARCHIVED is retired.
DRAFT, ACTIVE, PAUSED, ARCHIVED "ACTIVE"
Identifier of the tenant that owns the context.
"550e8400-e29b-41d4-a716-446655440000"
Reconciliation topology. 1:1 matches one left transaction to one right transaction; 1:N matches one transaction against many on the other side; N:M matches groups on both sides.
1:1, 1:N, N:M "1:1"
Last update timestamp in RFC 3339 format.
"2025-01-15T10:30:00Z"
Business-day calendar the aging threshold is measured against. Absent/empty means raw calendar days.
"BR_ANBIMA"
Open-item aging SLA in business days. An open-item residual older than this surfaces as an AGED_BREAK exception. Absent when aging is disabled for the context.
30
Fee normalization mode. NET compares amounts after fees are deducted; GROSS compares amounts before fees.
NET, GROSS "NET"

