Reconciliation

Upload data

Upload external data for reconciliation with the Java SDK.

POST/reconciliation/upload

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

Call the method

ApiResponse<JsonNode> response = blnk.reconciliation().upload(
    "/path/to/file.csv", "Stripe"
);
FieldTypeDescription
filePathStringPath to a CSV or JSON file.
fileStreamInputStreamReadable stream of the same records. Pass this instead of filePath.
sourceStringLabel describing where the data came from, for example stripe.

Save the upload ID

Use response.data().get("upload_id").asText() as the upload_id when you start reconciliation.

Response

{
  "upload_id": "upload_8c700d1b-09c0-4ef4-9ab1-a0decf3d0aa3",
  "record_count": 1000,
  "source": "Stripe"
}
FieldTypeDescription
upload_idStringUnique ID for the upload. Store it to start a batch reconciliation run.
record_countNumberNumber of records found in the file.
sourceStringLabel you passed for the data origin.