Skip to main content
POST
/
reconciliation
/
upload
Upload data
curl --request POST \
  --url http://localhost:5001/reconciliation/upload \
  --header 'X-blnk-key: <api-key>'
Use client.Reconciliation.Upload to upload external statement data.
1

Call the method

client.Reconciliation.Upload
file, err := os.Open("statement.csv")
if err != nil {
	// handle error
}
defer file.Close()

uploadResp, resp, err := client.Reconciliation.Upload("stripe", file, file.Name())
FieldTypeDescription
sourcestringLabel describing where the data came from, for example stripe.
fileio.ReaderOpen file or other readable source containing the external records.
fileNamestringFilename sent to Core, typically file.Name().
2

Save the upload ID

Use uploadResp.UploadID as the UploadID when you start reconciliation.
3

Response

201 Created
{
  "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.

How reconciliation works

Batch and instant reconciliation workflows.

Upload external records

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.