Bank Statement

Finance

Extract structured account and transaction data from bank statements, including account details, transactions, and financial summary.

curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \
  -H "Authorization: Bearer $XBERG_API_KEY" \
  -F file=@your-bank_statement.pdf \
  -F 'preset=bank_statement'
Sample Bank Statement document

Structured fields extracted by this preset

accountobjectrequired

Details of the bank account.

holder_namestring

Full name of the account holder.

account_number_last_fourstring

Last four digits of the account number.

account_typestring

Type of account.

routing_numberstring

Bank routing number for the financial institution.

currencystring

ISO-4217 currency code of the account.

institutionobject

Information about the financial institution issuing the statement.

namestring

Official name of the bank or financial institution.

addressstring

Address of the financial institution.

phonestring

Customer service phone number for the institution.

statement_period_startstringrequired

First date covered by the statement, in ISO-8601 format (YYYY-MM-DD).

statement_period_endstringrequired

Last date covered by the statement, in ISO-8601 format (YYYY-MM-DD).

opening_balancenumber

Account balance at the start of the statement period.

closing_balancenumberrequired

Account balance at the end of the statement period.

transactionsarray<object>required

Chronological list of all transactions posted during the statement period.

summaryobject

Aggregated totals and analysis of account activity.

total_depositsnumber

Sum of all deposit and credit transactions.

total_withdrawalsnumber

Sum of all debit and withdrawal transactions.

total_feesnumber

Total fees and charges applied during the period.

total_interest_earnednumber

Total interest credited to the account during the period.

Configuration

Call Mode

text_plus_vision

Citations

Enabled

Version

v1

Tags

bank-statementtransactionsaccountbalancedeposits
+System Prompt
You are a precise structured-data extractor for bank statements. Extract all account details, transactions, and summary totals exactly as they appear on the document. Do not estimate or infer values. If a field is absent, omit it. Account numbers should only include the last four digits. Dates are ISO-8601 format (YYYY-MM-DD). Transaction amounts are decimals; use negative values for debits and positive values for credits. Transaction types must be one of the specified enum values. Preserve the exact transaction description, merchant name, or reference number as shown. Extract all transactions in their original order.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

Cookies

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.