Free plan

Bank file convert

Convert bank statement files to a table, or a table to a bank file
POST
/v1/data/bank

About this tool

This tool reads a bank statement file, such as OFX, QIF, MT940 or CAMT, and gives you the transactions as a table. It can also work the other way: it turns a table from your bank's CSV export into a QIF, OFX or CAMT file that accounting programs can import. You can fix date style and the decimal mark.
For example, your bank gives only a CSV file, and your accounting program needs a QIF file.

How to use it

  1. Choose this tool.
  2. Add your bank file or table.
  3. Choose what to make: a table, or a QIF, OFX or CAMT file.
  4. If you add a table, check which columns hold the date and the amount.
  5. Press Generate.

What you get back

You get a table of transactions or a bank file to download, ready to import into your accounting program.
GOOD TO KNOW
Only the booking date and the amount are required. A row without a date or an amount is skipped and counted in warnings. The written files are plain statements, not signed bank documents. Counts as one conversion.
TEST IT LIVE

Try Bank file convert in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/bank
Tool ID
data.bank
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/bank" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'from=auto' \
  -F 'to=table' \
  -F 'table_format=csv'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.bank({
    "file": 'document.pdf',
    "from": "auto",
    "to": "table",
    "table_format": "csv"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->bank([
    'file' => 'document.pdf',
    'from' => 'auto',
    'to' => 'table',
    'table_format' => 'csv',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Read a bank statement (OFX / QFX, QIF, MT940, CAMT.053) into a table of transactions, or turn a table from a bank's CSV export (dates, decimal commas, debit and credit columns) into a QIF, OFX or CAMT.053 file that accounting programs import.

Bank file convert works from text and settings, so no file is needed. Every input is optional.

Bank file convert is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/bank with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.