Reconciliation
Start reconciliation
Start a batch reconciliation run with the Python SDK.
POST
/reconciliation/startUse 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",
],
})
| Field | Type | Description |
|---|---|---|
upload_id | str | Upload ID returned by blnk.reconciliation.upload. |
strategy | str | Match strategy: one_to_one, one_to_many, or many_to_one. |
dry_run | bool | Set True to test without writing results to the ledger. |
grouping_criteria | str | Field used to group records, for example reference. |
matching_rule_ids | string[] | 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"
}
| Field | Type | Description |
|---|---|---|
reconciliation_id | str | ID of the reconciliation run. Use it with blnk.reconciliation.get to check status. |