Skip to main content
POST
/
v1
/
config
/
contexts
/
{contextId}
/
sources
Create a reconciliation source
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/config/contexts/{contextId}/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Primary Bank Account",
  "type": "BANK",
  "config": {}
}
'
{
  "config": {},
  "contextId": "<string>",
  "createdAt": "<string>",
  "id": "<string>",
  "name": "<string>",
  "type": "LEDGER",
  "updatedAt": "<string>"
}

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.

Path Parameters

contextId
string
required

The unique identifier of the reconciliation context.

Body

application/json

Source creation payload

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

"Primary Bank Account"

type
enum<string>
required

Category of data source for reconciliation

Available options:
LEDGER,
BANK,
GATEWAY,
CUSTOM
Example:

"BANK"

config
object

Response

Successfully created source

config
object
contextId
string
createdAt
string
id
string
name
string
type
enum<string>

Category of data source for reconciliation

Available options:
LEDGER,
BANK,
GATEWAY,
CUSTOM
updatedAt
string