Reconciliation

Upload external records

Upload a CSV or JSON file of external records for reconciliation.

POST/reconciliation/upload

Authorization

If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>.

Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.

See also: Core API key.

Send the file as multipart form data. See External data for the row format.

Body

filefilerequiredbody

CSV, or a JSON array of records. A missing file returns 400 with RECON_UPLOAD_FAILED. A file Core cannot parse or store, including a duplicate id, returns 500 with RECON_UPLOAD_PROCESSING_FAILED.

sourcestringbody

Name copied onto every stored row, such as Stripe. A source column in the file is not kept.

Response

upload_idstringrequired

Id of the upload. Pass it as upload_id to Start reconciliation.

record_countintegerrequired

How many rows were stored.

sourcestringrequired

The source name you sent.