GetbeelDocs
API referenceBank reconciliation

Upload a bank statement and reconcile it

Multipart `file` (PDF, CSV or TXT, or a bank file: CBI (Italian RH flat file), CAMT.053 (ISO 20022 XML) or MT940; up to 50 MB; export spreadsheets as CSV) with optional `currency`, or JSON `{ file_url }` for a public https file. Starts reading the statement and matching its payments to received invoices, like an upload in the app: CBI, CAMT.053 and MT940 files are recognised by their content and read exactly (no AI); PDF and CSV are read with AI. Answers 202 with status pending, then parsed (webhook bank_statement.parsed) and review (webhook reconciliation.completed). A movement already imported for the same bank account (the same file again, an overlapping period) is not saved again, and a movement already imported is not charged again: transactions.total counts the new movements this statement saved, and a file with nothing new ends with 0, not an error. A statement whose bank account is not recognised (no bank name or last 4 digits) saves every movement. Idempotency-Key is honoured (multipart uploads are identified by the file's SHA-256, name and currency). Request bodies are limited to about 4 MB by the hosting platform: send larger files with file_url. Live keys only (403 livemode_required with a test key): bank and connection data is real, there is no sandbox for it.

POST
/bank-statements

Multipart file (PDF, CSV or TXT, or a bank file: CBI (Italian RH flat file), CAMT.053 (ISO 20022 XML) or MT940; up to 50 MB; export spreadsheets as CSV) with optional currency, or JSON { file_url } for a public https file. Starts reading the statement and matching its payments to received invoices, like an upload in the app: CBI, CAMT.053 and MT940 files are recognised by their content and read exactly (no AI); PDF and CSV are read with AI. Answers 202 with status pending, then parsed (webhook bank_statement.parsed) and review (webhook reconciliation.completed). A movement already imported for the same bank account (the same file again, an overlapping period) is not saved again, and a movement already imported is not charged again: transactions.total counts the new movements this statement saved, and a file with nothing new ends with 0, not an error. A statement whose bank account is not recognised (no bank name or last 4 digits) saves every movement. Idempotency-Key is honoured (multipart uploads are identified by the file's SHA-256, name and currency). Request bodies are limited to about 4 MB by the hosting platform: send larger files with file_url. Live keys only (403 livemode_required with a test key): bank and connection data is real, there is no sandbox for it.

Authorization

apiKey
headerAuthorizationBearer <token>

API key: gb_test_… or gb_live_…

Header Parameters

Idempotency-Key?string

Recommended. Retrying with the same key and body within 24 hours replays the first response (header Idempotent-Replayed: true) instead of acting twice. The same key with a different body returns 422 idempotency_key_reused.

Lengthlength <= 255
Getbeel-Company?string

Act on one of the account's client companies (its id from GET /companies) instead of the key's own account. 404 company_not_found when the key cannot act on it.

Formatuuid

Request Body

  1. body
file*file
Formatbinary
currency?string

Response Body

OK

application/json
  1. response
object*string
id*string
file_name*string
mime_type*string
source*string

upload: a file you uploaded. open_banking: synced from a bank connection (one statement per bank account and month, no file; new transactions are appended on each sync).

Value in"upload""open_banking"
file_size*|null
status*string

pending → processing → parsed → matching → review (parsed and matched; matches wait for review) → completed (marked done in the app). failed: see error_message.

Value in"pending""processing""parsed""matching""review""completed""failed"
error_message*string|null
bank_name*string|null
account_number_last4*string|null
currency*string
period_start*|null
period_end*|null
transactions*
balances?

Only on GET /bank-statements/{id}. Derived from the running balances on the statement; null when the statement shows none or they do not add up.

created_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
processed_at*|null
completed_at*|null
Example Request
curl -X POST 'https://www.getbeel.com/api/v1/bank-statements' \  -H 'Content-Type: application/json' \  -d '{  "file_url": "http://example.com"}'
Example Response
{  "object": "bank_statement",  "id": "stmt_1761800000000_ab12cd3",  "file_name": "string",  "mime_type": "text/csv",  "source": "upload",  "file_size": -9007199254740991,  "status": "pending",  "error_message": "string",  "bank_name": "string",  "account_number_last4": "string",  "currency": "EUR",  "period_start": "2026-10-29",  "period_end": "2026-10-29",  "transactions": {    "total": -9007199254740991,    "debits": -9007199254740991,    "matched": -9007199254740991,    "unmatched": -9007199254740991  },  "balances": {    "opening": "122.00",    "closing": "122.00"  },  "created_at": "2019-08-24T14:15:22Z",  "processed_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z"}