Reconciliation

Start reconciliation

Start a batch reconciliation run with the Java SDK.

POST/reconciliation/start

Use blnk.reconciliation().run for this operation.

Call the method

String uploadId = "upload_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";
String ruleId = "rule_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";

ApiResponse<JsonNode> response = blnk.reconciliation().run(
    RunReconData.create()
        .uploadId(uploadId)
        .matchingRuleIds(List.of(ruleId))
        .strategy("one_to_many")
        .dryRun(true));
FieldTypeDescription
upload_idStringUpload ID returned by blnk.
reconciliation().upload.
strategyStringMatch strategy: one_to_one, one_to_many, or many_to_one.
dry_runbooleanSet true to test without writing results to the ledger.
grouping_criteriaStringField used to group records, for example reference.
matching_rule_idsList<String>IDs of the matching rules to apply.

Save the reconciliation ID

Use response.data().get("reconciliation_id").asText() 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.