Skip to main content
POST
/
v1
/
config
/
contexts
Create a reconciliation context
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/config/contexts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Bank Reconciliation Q1",
  "type": "1:1",
  "interval": "daily",
  "rateId": "019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b",
  "feeToleranceAbs": "0.01",
  "feeTolerancePct": "0.5",
  "feeNormalization": "NET",
  "autoMatchOnUpload": false
}
'
{
  "id": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
  "tenantId": "019c96a0-0a98-7287-9a31-786e0809c769",
  "name": "Bank Reconciliation Q1",
  "type": "1:1",
  "interval": "daily",
  "status": "DRAFT",
  "rateId": "019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b",
  "feeToleranceAbs": "0",
  "feeTolerancePct": "0",
  "feeNormalization": "NET",
  "autoMatchOnUpload": false,
  "createdAt": "2026-02-02T13:37:55Z",
  "updatedAt": "2026-02-02T13:37:55Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Headers

X-Request-Id
string

A unique identifier for tracing the request across services.

X-Idempotency-Key
string

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.

Body

application/json

Context creation payload

name
string
required
Required string length: 1 - 100
Example:

"Bank Reconciliation Q1"

type
enum<string>
required

Reconciliation topology (cardinality between sources)

Available options:
1:1,
1:N,
N:M
Example:

"1:1"

interval
string
required
Required string length: 1 - 100
Example:

"daily"

rateId
string<uuid>

Fee rate identifier to associate with this context

Example:

"019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b"

feeToleranceAbs
string

Absolute fee tolerance amount

Example:

"0.01"

feeTolerancePct
string

Percentage fee tolerance

Example:

"0.5"

feeNormalization
enum<string>

Fee normalization mode

Available options:
NET,
GROSS
Example:

"NET"

autoMatchOnUpload
boolean

Whether to trigger matching automatically after file upload

Example:

false

Response

Successfully created context.

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.

id
string
Example:

"019c96a0-10a0-72d2-9fb0-2b7de8093182"

tenantId
string
Example:

"019c96a0-0a98-7287-9a31-786e0809c769"

name
string
Example:

"Bank Reconciliation Q1"

type
enum<string>

Reconciliation topology (cardinality between sources)

Available options:
1:1,
1:N,
N:M
interval
string
Example:

"daily"

status
enum<string>

Lifecycle status of a reconciliation context

Available options:
DRAFT,
ACTIVE,
PAUSED,
ARCHIVED
rateId
string<uuid>
Example:

"019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b"

feeToleranceAbs
string
Example:

"0"

feeTolerancePct
string
Example:

"0"

feeNormalization
enum<string>
Available options:
NET,
GROSS
Example:

"NET"

autoMatchOnUpload
boolean
Example:

false

createdAt
string
Example:

"2026-02-02T13:37:55Z"

updatedAt
string
Example:

"2026-02-02T13:37:55Z"