> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chift.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Bank transactions

### Definition

In the Accounting API, **bank transactions** are the movements of a bank account, sent to the accounting software as a **bank statement**. A statement has one date, one bank account and a list of lines. Each line is one movement.

> [!NOTE]
>
> "Bank transaction" also exists in other APIs, with another meaning. In the [Banking API](https://docs.chift.eu/unified-apis/banking/concepts/transaction.md), a transaction is a movement you read from a bank account. In the Invoicing API, you read bank transactions with [Retrieve all bank transactions](https://docs.chift.eu/api-reference/endpoints/invoicing/retrieve-all-bank-transactions.md). In the Accounting API, you send the movements to the accounting software.

### Purpose

* Send the movements of an account you hold for your end-users to their accounting software. Examples are a business account, a wallet, a card account or a payment balance. Their books then show the same balance as the real account.
* Let your end-users reconcile each line in their accounting software, instead of typing the movements or importing statement files.
* Send the movements without building journal entries. A statement line is not an accounting entry yet. The accounting software creates the entries when the line is reconciled.

### Structure

Each bank statement has:

* A **date** (`bank_statement_date`)
* A **bank account** (`bank_account_id`): the identifier of the bank account in the accounting software
* A **currency** (`currency`): the currency of the bank account
* An **external statement ID** (`external_bank_statement_id`): your own identifier of the statement. To be compatible with all software, use digits only, with a maximum length of 10
* An optional **opening balance** (`opening_balance`): the balance of the bank account before the statement
* An optional **PDF** attachment (`pdf`, `pdf_name`). See [Attachments](https://docs.chift.eu/unified-apis/accounting/concepts/attachments.md)
* On creation only: **lines** (`items`). Each line has:
  * An **amount** (`amount`): the total including fee and tax. It is positive for money received and negative for money leaving the account
  * A **description** (`description`)
  * An **external transaction ID** (`external_transaction_id`): your own identifier of the movement
  * A **fee amount** (`fee_amount`) and a **tax amount** (`tax_amount`)
  * An **exchange rate** (`currency_exchange_rate`): from the currency of the transaction to the currency of the folder, at the date of the transaction
  * A **ledger account** (`general_ledger_account`): the number of the account to book the transaction against
  * A **counterpart** (`counterpart`): a **type** (`counterpart_type`: `customer`, `supplier` or `employee`), an **identifier** (`id`), a **name** (`name`), an **IBAN** (`iban`) and a **bank account number** (`bank_account`)
* On the response: the identifier of the statement (`id`) and the identifier of each line (`id`)

Each accounting software uses only the fields that it can store. Check the page of the connector.

### Relationships

* A statement belongs to one bank account of the accounting software (`bank_account_id`). Get the identifier with [Get bank accounts](https://docs.chift.eu/api-reference/endpoints/accounting/get-bank-accounts.md). When the bank account does not exist, create it with [Create bank account](https://docs.chift.eu/api-reference/endpoints/accounting/create-bank-account.md).
* A bank account is represented by a [journal](https://docs.chift.eu/unified-apis/accounting/concepts/journal.md) (`journal_id`) and a ledger account (`ledger_account`).
* The currency of the statement must be the currency of the bank account. For a currency other than the one of the folder, see [Multi-currency](https://docs.chift.eu/unified-apis/accounting/concepts/multi-currency.md).
* A statement is created in a [folder](https://docs.chift.eu/unified-apis/accounting/concepts/folder.md). When a connection gives access to several folders, send `folder_id`. See [Multi-folder](https://docs.chift.eu/unified-apis/accounting/concepts/folder/multi-folder.md).
* A line can reference a [ledger account](https://docs.chift.eu/unified-apis/accounting/concepts/ledger-account.md) (`general_ledger_account`) and a [partner](https://docs.chift.eu/unified-apis/accounting/concepts/partner.md) (`counterpart.id`).
* A bank transaction waits for reconciliation in the accounting software. A [financial entry](https://docs.chift.eu/unified-apis/accounting/concepts/financial-entry.md) books the movement directly. When a connector does not support bank transactions, check in the coverage matrix whether it supports financial entries.
* To avoid duplicates when you retry a request, use the `x-chift-client-requestid` header. See [Idempotency](https://docs.chift.eu/unified-apis/guides/idempotency.md).
* For the business context, read the [Bank feeds to accounting](https://docs.chift.eu/use-cases/bank-feeds-to-accounting.md) use case. To send statements from your software, follow [Create bank transactions](https://docs.chift.eu/unified-apis/accounting/concepts/bank-transaction/create-bank-transactions.md): bank accounts, statement fields and balance check.

### API endpoints

* [Get bank accounts](https://docs.chift.eu/api-reference/endpoints/accounting/get-bank-accounts.md): list the bank accounts of the accounting software.
* [Create bank account](https://docs.chift.eu/api-reference/endpoints/accounting/create-bank-account.md): create a bank account.
* [Create bank transactions](https://docs.chift.eu/api-reference/endpoints/accounting/create-bank-transactions.md): create a bank statement with its lines.

Not every accounting software supports bank transactions. Check the [coverage matrix](https://docs.chift.eu/connectors/accounting/coverage.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.