v1

latestOpenAPI 3.1.02026-07-263644911022.4 KB
Configuration Match Rules

Create a match rule

Use this endpoint to create a new match rule within a specific context. Match rules define how transactions are matched during reconciliation.

post/v1/contexts/{contextId}/rules

Path parameters

contextIdstring required

The unique identifier of the reconciliation context.

Headers

X-Request-Idstring

A unique identifier for tracing the request across services.

X-Idempotency-Keystring

Optional idempotency key for safe retries. Also accepts Idempotency-Key as an alternative header name. If the same key is sent again and the original request was already processed, the cached response is returned with X-Idempotency-Replayed: true.

See Retries and idempotency for details.

Request body

configobject
priorityinteger required
type'EXACT' | 'TOLERANCE' | 'DATE_LAG' required

Type of matching rule algorithm

Example request

{
  "priority": 1
}

Response

Successfully created match rule.

The response includes the X-Idempotency-Replayed header.

If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.

See Retries and idempotency for more details.

configobject

Rule configuration

contextIdstring

Context ID this rule belongs to

createdAtstring

Creation timestamp in RFC3339 format

idstring

Unique identifier for the rule

priorityinteger

Execution priority (lower = higher priority)

type'EXACT' | 'TOLERANCE' | 'DATE_LAG'

Type of matching rule

updatedAtstring

Last update timestamp in RFC3339 format

Example response

{
  "contextId": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
  "createdAt": "2025-01-15T10:30:00.000Z",
  "id": "019c96a0-1071-7a0d-9916-a831221de252",
  "priority": 1,
  "type": "EXACT",
  "updatedAt": "2025-01-15T10:30:00.000Z"
}