Reconciliation

Start reconciliation

Start a batch reconciliation run with the Python SDK.

POST/reconciliation/start

Use blnk.reconciliation.run to start batch reconciliation.

Call the method

response = blnk.reconciliation.run({
  "upload_id": "upload_8c700d1b-09c0-4ef4-9ab1-a0decf3d0aa3",
  "strategy": "one_to_one",
  "dry_run": True,
  "grouping_criteria": "reference",
  "matching_rule_ids": [
    "rule_890bdbc4-467f-4670-8424-5667e41daf29",
  ],
})
FieldTypeDescription
upload_idstrUpload ID returned by blnk.
reconciliation.upload.
strategystrMatch strategy: one_to_one, one_to_many, or many_to_one.
dry_runboolSet True to test without writing results to the ledger.
grouping_criteriastrField used to group records, for example reference.
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.