Reconciliation
Upload data
Upload external data for reconciliation with the Go SDK.
POST
/reconciliation/uploadUse 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())
| Field | Type | Description |
|---|---|---|
source | string | Label describing where the data came from, for example stripe. |
file | io.Reader | Open file or other readable source containing the external records. |
fileName | string | Filename sent to Core, typically file.Name(). |
Response
{
"upload_id": "upload_8c700d1b-09c0-4ef4-9ab1-a0decf3d0aa3",
"record_count": 1000,
"source": "Stripe"
}Go response (*blnkgo.ReconciliationUploadResp)
| Field | Type | Description |
|---|---|---|
UploadID | string | Unique ID for the upload. Store it to start a batch reconciliation run. |
RecordCount | int | Number of records found in the file. |
Source | string | Label you passed for the data origin. |