Reconciliation

Instant reconciliation

Run instant reconciliation with the Python SDK.

POST/reconciliation/start-instant

Use blnk.reconciliation.run_instant to reconcile external records inline.

Call the method

response = blnk.reconciliation.run_instant({
  "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_transactionslist[dict]Array of external transaction rows to reconcile.
external_transactions.
[].id
strUnique external transaction ID.
external_transactions.
[].amount
numberTransaction amount.
external_transactions.
[].reference
strUnique transaction reference.
external_transactions.
[].currency
strISO 4217 currency code.
external_transactions.
[].description
strDescription of the transaction.
external_transactions.
[].date
strTransaction date and time.
external_transactions.
[].source
strOrigin of the transaction data.
strategystrMatch 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_idstrID of the reconciliation run. Use it with blnk.
reconciliation.get to check status.