Bank Statement

Transform the way you process financial documents with Extracta.ai’s cutting-edge bank statement parsing capabilities. Our API is engineered to automate the extraction of financial data from bank statements, making it an indispensable tool for financial institutions, accounting software, and fintech startups. This guide provides a detailed overview of using a pre-defined request body for efficient bank statement parsing, ensuring a smooth integration with our platform.

Why Choose Extracta.ai for Bank Statement Parsing?

  • Streamlined Data Extraction: Automate the retrieval of transaction data, account balances, and other financial information.

  • OCR and AI-Powered: Benefit from advanced OCR and AI technologies for high-precision reading of both digital and scanned bank statements.

  • Custom Extraction Paths: Tailor the data extraction process to fit your specific requirements for financial analysis and reporting.

Getting Started

To initiate the parsing of bank statements, you will need to execute a POST request to our /createExtraction endpoint. Below, we provide a request body template designed specifically for bank statement parsing. This template outlines predefined keys that are essential for extracting data from bank statements, such as transactions, account details, and summary.

Body Example for Bank Statement

JSON Body
{
    "extractionDetails": {
        "name": "Bank Check - Extraction",
        "language": "English",
        "fields": [
            {
                "key": "amount",
                "example": "25"
            },
            {
                "key": "amount_text",
                "example": "Twenty-five and no/100"
            },
            {
                "key": "bank_address"
            },
            {
                "key": "bank_name",
                "example": "WASHINGTON'S OLDEST NATIONAL BANK FIRST NATIONAL BANK"
            },
            {
                "key": "date",
                "example": "2019-10-13"
            },
            {
                "key": "memo",
                "example": "world hunger relief"
            },
            {
                "key": "payer_name",
                "example": "HON. GERALD R. FORD MRS. BETTY B. FORD"
            },
            {
                "key": "payer_address",
                "example": "1600 PENNSYLVANIA AVE. WASHINGTON, DC 20500"
            },
            {
                "key": "receiver_name",
                "example": "Presiding Bishop, Episcopal Church"
            },
            {
                "key": "receiver_address",
                "example": "815 Second Avenue, New York, NY 10017"
            },
            {
                "key": "currency",
                "example": "USD",
                "description": "currency as string, not symbol"
            },
            {
                "key": "micr_raw",
                "example": "A0540D0004A C140611 6C B0000002500B"
            },
            {
                "key": "account_number",
                "example": "6111611",
                "description": "Part of the MICR line, typically at the end."
            },
            {
                "key": "routing_number",
                "example": "05400004",
                "description": "Part of the MICR line, typically in the middle."
            },
            {
                "key": "check_number",
                "example": "878",
                "description": "Located at the top right of the check."
            }
        ]
    }
}

How to Implement This Template

  1. Generate an API Key: First, create an account on https://app.extracta.ai and visit the /api page to obtain your API key.

  2. API Call Execution: Utilize the JSON template in your POST request to /createExtraction, incorporating your API key in the request header as a Bearer token.

  3. Data Integration: Once the API processes your request, you will receive structured data from the bank statement, ready for integration into your system or workflow.

Code Example

const axios = require('axios');

/**
 * Initiates a new document extraction process with the provided details.
 * 
 * @param {string} token - The authorization token for API access.
 * @param {Object} extractionDetails - The details of the extraction to be created.
 * @returns {Promise<Object>} The promise that resolves to the API response with the new extraction ID.
 */
async function createExtraction(token, extractionDetails) {
    const url = "https://api.extracta.ai/api/v1/createExtraction";

    try {
        const response = await axios.post(url, {
            extractionDetails
        }, {
            headers: {
                'Content-Type': 'application/json',
                'Authorization': `Bearer ${token}`
            }
        });

        // Handling response
        return response.data; // Directly return the parsed JSON response
    } catch (error) {
        // Handling errors
        throw error.response ? error.response.data : new Error('An unknown error occurred');
    }
}

async function main() {
    const token = 'apiKey';
    const extractionDetails = {}; // the json body from the example

    try {
        const response = await createExtraction(token, extractionDetails);
        console.log("New Extraction Created:", response);
    } catch (error) {
        console.error("Failed to create new extraction:", error);
    }
}

main();

Conclusion

With Extracta.ai, parsing bank statements becomes an automated, accurate, and efficient part of your financial document processing workflow. Our API leverages the latest in OCR and AI technologies to provide you with the data you need when you need it, ensuring your financial analyses are always informed by the most up-to-date information.

Explore further integration details and maximize the potential of our API by visiting our API Endpoints and 1. Create extraction pages.

Last updated