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.“Bank transaction” also exists in other APIs, with another meaning. In the Banking API, a transaction is a movement you read from a bank account. In the Invoicing API, you read bank transactions with Retrieve all bank transactions. 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 - 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,supplieroremployee), an identifier (id), a name (name), an IBAN (iban) and a bank account number (bank_account)
- An amount (
- On the response: the identifier of the statement (
id) and the identifier of each line (id)
Relationships
- A statement belongs to one bank account of the accounting software (
bank_account_id). Get the identifier with Get bank accounts. When the bank account does not exist, create it with Create bank account. - A bank account is represented by a journal (
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.
- A statement is created in a folder. When a connection gives access to several folders, send
folder_id. See Multi-folder. - A line can reference a ledger account (
general_ledger_account) and a partner (counterpart.id). - A bank transaction waits for reconciliation in the accounting software. A financial entry 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-requestidheader. See Idempotency. - For the business context, read the Bank feeds to accounting use case. To send statements from your software, follow Create bank transactions: bank accounts, statement fields and balance check.
API endpoints
- Get bank accounts: list the bank accounts of the accounting software.
- Create bank account: create a bank account.
- Create bank transactions: create a bank statement with its lines.