Bank Account Details OCR
Mindee’s Bank account details OCR API uses deep learning to automatically, accurately, and instantaneously parse data from French RIB (Relevés d'identité Bancaire).
It takes the API a few seconds to extract data from your PDFs or photos of bank account details or RIB. The API extracts the following data:
Account holder's names
IBAN
BBAN (Bank code, branch code, number and key)
Swift
Set up the API
You'll need a bank account details document or RIB. You can use the sample provided below.

Access your Bank Account Details API by clicking on the Bank Account Details card in the Document Catalog.

From the left navigation, go to documentation > API Reference, to find sample code in popular languages and command line.

Replace my-api-key-here with your new API key, or use the select an API key feature and it will be filled automatically.
Copy and paste the sample code of your desired choice in your application, code environment, terminal etc.
Replace
/path/to/the/file.extwith the path to your input document.
Remember to replace with your V1 API key.
Run your code. You will receive a JSON response with the Bank Statement information.
API Response
Below is the full sample JSON response you get when you call the API. Since the response is quite verbose, we will walk through the fields section by section.
You can find the prediction within the prediction key found in two locations:
In
document > inference > predictionfor document-level predictions: it contains the different fields extracted at the document level, meaning that for multi-pages PDFs, we reconstruct a single passport object using all the pages.In
document > inference > pages[ ] > predictionfor page-level predictions: it gives the prediction for each page independently. With images, there is only one element on this array, but with PDFs, you can find the extracted data for each PDF page.
Each predicted field may contain one or several values:
a
confidencescorea
polygonhighlighting the information locationa
page_idwhere the information was found (document level only)
Detailed Field Information
Depending on the field type specified, additional attributes can be extracted from the bank account details object. Using the above RIB example, the following are the basic fields that can be extracted.
Account holder name
account_holders_names: In the JSON response below, we have the value of the account holder's names outputted as a single string including civilities.
BBAN
bban: In the JSON response below we have the list of values of the bban. For French Bank Account Details only.
bban_bank_code: The bank code outputted as a string.
bban_branch_code: The branch code outputted as a string.
bban_number: The bban number outputted as a string.
bban_key: The BBAN key outputted as a string
IBAN
iban: In the JSON response below, we have the value of the IBAN.
swift
swift: In the JSON response below, we have the value of the swift code.
Last updated
Was this helpful?

