Reconciliation

Instant reconciliation

Run instant reconciliation with the TypeScript SDK.

POST/reconciliation/start-instant

Use blnk.Reconciliation.runInstant to reconcile external records inline.

Call the method

const response = await blnk.Reconciliation.runInstant({
  external_transactions: [
    {
      id: 'txn_1',
      amount: 5.49,
      reference: 'INV-2023-002',
      currency: 'GBP',
      description: 'Card payment',
      date: '2024-11-15T14:25:30Z',
      source: 'bank-api',
    },
  ],
  strategy: 'one_to_one',
  dry_run: true,
  matching_rule_ids: [
    'rule_890bdbc4-467f-4670-8424-5667e41daf29',
  ],
});
FieldTypeDescription
external_transactionsobject[]Array of external transaction rows to reconcile.
external_transactions[].idstringUnique external transaction ID.
external_transactions[].amountnumberTransaction amount.
external_transactions[].referencestringUnique transaction reference.
external_transactions[].currencystringISO 4217 currency code.
external_transactions[].descriptionstringDescription of the transaction.
external_transactions[].datestringTransaction date and time.
external_transactions[].sourcestringOrigin of the transaction data.
strategystringMatch strategy: one_to_one, one_to_many, or many_to_one.
matching_rule_idsstring[]IDs of the matching rules to apply.

Save the reconciliation ID

Use response.data.reconciliation_id with blnk.Reconciliation.get to poll status and match counts.

Response

{
  "reconciliation_id": "rec_a8f2c91d-1234-4abc-9def-0123456789ab"
}
FieldTypeDescription
reconciliation_idstringID of the reconciliation run. Use it with blnk.Reconciliation.get to check status.