Reconciliation

Upload data

Upload external data for reconciliation with the Go SDK.

POST/reconciliation/upload

Use client.Reconciliation.Upload to upload external statement data.

Call the method

file, _ := os.Open("statement.csv")
defer file.Close()

uploadResp, _, _ := 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().

Response

{
  "upload_id": "upload_8c700d1b-09c0-4ef4-9ab1-a0decf3d0aa3",
  "record_count": 1000,
  "source": "Stripe"
}

Go response (*blnkgo.ReconciliationUploadResp)

FieldTypeDescription
UploadIDstringUnique ID for the upload. Store it to start a batch reconciliation run.
RecordCountintNumber of records found in the file.
SourcestringLabel you passed for the data origin.