Bank connections
Connect the business accounts of your customers at ABN AMRO, read their balance and transactions
live from the bank, and put payment and direct debit batches ready at the bank for your customer to
sign. ABN AMRO is the bank today; every object says which bank in provider (abnamro).
| Operation | Endpoint | What it does |
|---|---|---|
bank.connect |
POST /v1/bank/connections |
Ask for one or more accounts of a customer, and get the connection code they link them with at the bank. |
bank.read |
GET /v1/bank/connections, GET and DELETE /v1/bank/connections/{id}, GET /v1/bank/accounts, GET /v1/bank/accounts/{id}, GET /v1/bank/payment-batches, GET /v1/bank/payment-batches/{id} |
Follow connections, accounts and batches, and end a connection. |
bank.balance |
GET /v1/bank/accounts/{id}/balance |
The booked balance, live from the bank. |
bank.transactions |
GET /v1/bank/accounts/{id}/transactions |
One page of booked transactions, live from the bank. |
bank.payment_batch |
POST /v1/bank/accounts/{id}/payment-batches |
Check a payment or direct debit file and put it ready at the bank. |
bank.account |
— | The monthly price of an active bank account, charged per day. |
A key needs the scope bank, or the operation itself (see
scopes).
Availability. In preview: the status of the operations in
GET /v1/pricing is preview. Live use is switched on per account, on
request: contact support. Until then a live key gets 403
bank_not_enabled. Test keys work for every account; see
test mode.
How a connection works
Section titled “How a connection works”There is no redirect and no consent screen of ours. Your customer links the accounts at the bank itself, with a code you show them:
- Ask for the accounts.
POST /v1/bank/connectionswith the IBANs, for one customer of yours (theAccountCloud-Entityheader). The accounts arepending, and you get aconnectobject with the connection code. - Your customer links them at the bank. At
connect.url(ABN AMRO’s page for accounting software) they chooseconnect.supplier_nameas the supplier, enterconnect.connection_code, and tick the accounts. - The bank confirms. ABN AMRO confirms the link within about two working days. We check the
confirmation against your request and activate the accounts:
active, with thebank.account.activatedwebhook and the account holder’s name from the bank. - Use them. Read the balance and the transactions, and send payment and direct debit batches.
An account the bank does not confirm within 30 days expires. An account that does not match the
bank’s confirmation is rejected. Both come with a webhook; ask for the account again to start over.
The AccountCloud-Entity header is your reference for the customer (1 to 255 visible
characters), such as the id of their administration in your software. A request for a connection
needs it, without it the answer is 400 entity_required. On
every other bank call it is optional: with it you only see, and can only use, the connections,
accounts and batches of that customer.
Request a connection
Section titled “Request a connection”curl https://api.accountcloud.io/v1/bank/connections \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -H "AccountCloud-Entity: adm_42" \ -d '{ "provider": "abnamro", "ibans": ["NL62ABNA9999841479", "NL12ABNA9999876523"], "holder_name": "Bakkerij De Korenaar B.V.", "metadata": { "administration": "42" } }'{ "id": "bcn_01jbx6y4q9t2m8rz1v3k5n7p0b", "object": "bank_connection", "provider": "abnamro", "environment": "test", "entity": "adm_42", "status": "pending", "holder_name": "Bakkerij De Korenaar B.V.", "accounts": [ { "id": "bac_01jbx6y4q9t2m8rz1v3k5n7p0a", "object": "bank_account", "connection": "bcn_01jbx6y4q9t2m8rz1v3k5n7p0b", "provider": "abnamro", "environment": "test", "entity": "adm_42", "iban": "NL62ABNA9999841479", "currency": null, "holder_name": null, "status": "pending", "requested_at": "2026-11-23T10:00:00Z", "expires_at": "2026-12-23T10:00:00Z", "activated_at": null, "ended_at": null, "created_at": "2026-11-23T10:00:00Z" }, { "id": "bac_01jbx6y4q9t2m8rz1v3k5n7p0d", "iban": "NL12ABNA9999876523", "status": "pending", "…": "…" } ], "connect": { "method": "connection_code", "connection_code": "1234567889", "supplier_name": "…", "url": "https://www.abnamro.nl/boekhoudkoppeling" }, "metadata": { "administration": "42" }, "created_at": "2026-11-23T10:00:00Z", "closed_at": null}ibans: 1 to 20 accounts of the bank inprovider, with or without spaces. An IBAN that is not valid, or not of that bank, is422validation_failedonibans.N.holder_nameis optional: the name you know the account holder by. We compare it with the bank’s when we activate.metadata: up to 20 keys of your own, returned as they are, also in the webhooks.- One open connection per customer. A second request for the same entity adds its accounts to
the open connection, and answers
200instead of201. An account that wasrejected,expiredorrevokedand is asked for again becomespendingagain, with the same id. - The connection code belongs to the customer: it stays the same for every request of that entity. Show it exactly as given. It has check digits, so a typo never gives another valid code.
- An account that is already active elsewhere, for another customer of yours or through
another AccountCloud account, is
409bank_iban_unavailable, with thatibanbut without saying for whom. That connection must end first.
Send an Idempotency-Key to retry a request safely.
Statuses
Section titled “Statuses”A bank account (bank_account):
status |
What it means |
|---|---|
pending |
Asked for; waiting for the bank’s confirmation, until expires_at (30 days). |
active |
The bank confirmed it. Balance, transactions and batches work; currency and holder_name are the bank’s. |
rejected |
It did not match the bank’s confirmation. Check the IBAN and the connection code, and ask for it again. |
expired |
The bank did not confirm it within 30 days. |
revoked |
The bank no longer gives access, usually because the account holder ended the link at the bank. |
closed |
You ended its connection. |
activated_at says when it became active, ended_at when it stopped being pending or active.
A connection (bank_connection) is pending while an account waits, active once one is,
inactive when none is left, and closed once you ended it.
End a connection with DELETE /v1/bank/connections/{id}: its pending and active accounts are
closed at once, and connect is null. The link at the bank stays until the account holder
ends it there as well: tell your customer. A later request for the same customer opens a new
connection.
When the bank refuses access. ABN AMRO does not tell us when a customer ends the link at the
bank; our calls start getting refused. Such a call is 409
bank_access_denied, with since. After 24 hours of nothing
but refusals the account becomes revoked, with the webhook. When many accounts are refused at the
same moment, the fault is ours or the bank’s, not your customers’: then nothing is revoked.
GET /v1/bank/connections and GET /v1/bank/accounts list newest first, with limit (1 to 100),
cursor and has_more. Filter on status; accounts also on iban and connection.
Transactions
Section titled “Transactions”The transactions come live from the bank, at the moment you ask. We do not store them. Every
call gives one page of the bank, at most 50 transactions, of an active account:
curl "https://api.accountcloud.io/v1/bank/accounts/bac_01jbx6y4q9t2m8rz1v3k5n7p0a/transactions?date_from=2026-11-01&date_to=2026-11-20" \ -H "Authorization: Bearer ac_test_…"{ "object": "list", "account": "bac_01jbx6y4q9t2m8rz1v3k5n7p0a", "date_from": "2026-11-01", "date_to": "2026-11-20", "data": [ { "key": "TEST202611200001", "booking_date": "2026-11-20", "timestamp": "2026-11-20T09:15:00Z", "amount": "1210.00", "credit_debit": "credit", "currency": "EUR", "counterparty": { "name": "Testklant B.V.", "iban": "NL55INGB9999300517" }, "description": "SEPA Overboeking IBAN: NL55INGB9999300517 BIC: INGBNL2A Naam: Testklant B.V. Omschrijving: Factuur 2026-0042 Kenmerk: 2026-0042", "description_lines": [ "SEPA Overboeking", "IBAN: NL55INGB9999300517", "BIC: INGBNL2A", "Naam: Testklant B.V.", "Omschrijving: Factuur 2026-0042", "Kenmerk: 2026-0042" ], "remittance_information": "Factuur 2026-0042", "reference": "2026-0042", "mutation_code": "541", "balance_after": "6941.18" }, { "key": "abn-38b617416ce43023ca48dae012eacc83b6771e45", "booking_date": "2026-11-20", "timestamp": "2026-11-20T11:42:00Z", "amount": "65.40", "credit_debit": "debit", "currency": "EUR", "counterparty": { "name": "Tankstation Test", "iban": null }, "description": "BEA, Betaalpas Tankstation Test,PAS123 NR:TEST01, 2026-11-20 Amsterdam", "description_lines": ["BEA, Betaalpas", "Tankstation Test,PAS123", "NR:TEST01, 2026-11-20", "Amsterdam"], "remittance_information": null, "reference": null, "mutation_code": "426", "balance_after": "6875.78" } ], "has_more": false, "next_cursor": null}- The dates are transaction dates,
YYYY-MM-DD. Withoutdate_toit is today; a later date counts as today. Withoutdate_fromit is the day ofdate_to, so a call without dates gives today only. The bank keeps 18 months: an olderdate_from, or one afterdate_to, is422validation_failedondate_from. - More pages. While
has_moreistrue, call again withcursorset tonext_cursor, and without the dates: the cursor carries them. A cursor of another account, or one the bank no longer accepts, is422oncursor; start again without one. keyis stable. It is the bank’s id of the transaction, or, for a transaction without one (cash, card payments, bank costs), a hash of what does not change between calls, starting withabn-. A transaction that comes back on a later call has the same key: import on the key, and you import each transaction once. Ask for an overlap, such as the last few days again; the key takes care of the double ones.amountis always positive, as a decimal string;credit_debitsays whether it came in (credit) or went out (debit).balance_afteris the booked balance after it, negative when overdrawn.descriptionjoins thedescription_linesthe way an MT940 statement does: a full line of 32 characters goes on without a space, so a long invoice number that wraps stays whole. For a SEPA transaction we also take the payment description (remittance_information) and the reference (reference) out of it;referenceisnullwhen there is none.counterpartyhas the name and the IBAN when the bank gives them; not for cash and not for every card payment.
There are no webhooks for new transactions: ask for them when you want them, such as a few times a day.
Balance
Section titled “Balance”curl https://api.accountcloud.io/v1/bank/accounts/bac_01jbx6y4q9t2m8rz1v3k5n7p0a/balance \ -H "Authorization: Bearer ac_test_…"{ "object": "bank_balance", "account": "bac_01jbx6y4q9t2m8rz1v3k5n7p0a", "type": "booked", "amount": "6785.83", "currency": "EUR", "as_of": "2026-11-23T10:05:12Z"}The booked balance, live from the bank, as a decimal string; negative when overdrawn. as_of is
when we asked.
Payment and direct debit batches
Section titled “Payment and direct debit batches”You make the SEPA file; we check it and put it ready at the bank, where your customer signs it in their online banking. We never execute a payment ourselves.
curl https://api.accountcloud.io/v1/bank/accounts/bac_01jbx6y4q9t2m8rz1v3k5n7p0a/payment-batches \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: adm-42-run-2026-11-23" \ -d '{ "type": "credit_transfer", "file": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4K…", "metadata": { "run": "2026-11-23" } }'The answer is 202 with the batch:
{ "id": "bpb_01jbx6y4q9t2m8rz1v3k5n7p0c", "object": "bank_payment_batch", "account": "bac_01jbx6y4q9t2m8rz1v3k5n7p0a", "iban": "NL62ABNA9999841479", "entity": "adm_42", "environment": "test", "type": "credit_transfer", "status": "submitted", "provider_status": "UNKNOWN", "file_name": "CTM8RZ1V3K5N7P0C", "msg_id": "bpb_01jbx6y4q9t2m8rz1v3k5n7p0c", "transaction_count": 12, "control_sum": "4310.25", "error": null, "metadata": { "run": "2026-11-23" }, "created_at": "2026-11-23T10:10:00Z", "submitted_at": "2026-11-23T10:10:01Z", "ended_at": null}type:credit_transferfor payments (pain.001) ordirect_debitfor collections (pain.008).file: the pain file, base64, at most 5 MB. We take pain.001.001.03 and .09, and pain.008.001.02, .03 and .08; an older version is converted to the newest before it goes to the bank.file_nameis optional: the name your customer sees at the bank, 10 to 18 letters, digits,-,_or.. Without it we make one from the type and the batch id.- An
Idempotency-Keyis required. A file at the bank cannot be withdrawn by us, so a retry must never send it twice. Without the header it is400invalid_idempotency_key.
What we check before anything goes to the bank. A file that fails is 422
bank_file_invalid, with a reason, and in details what
was found, such as the schema errors:
reason |
When |
|---|---|
file_unreadable |
Not well-formed XML, or no ISO 20022 Document. |
wrong_type |
A direct debit file sent as credit_transfer, or the other way round. |
version_not_supported |
Another pain version than the ones above. |
batch_count |
Not exactly one batch (PmtInf): the bank accepts one per file. |
account_mismatch |
The debtor account of a payment, or the creditor account of a direct debit, is not the IBAN of this bank account. |
ids_missing |
The file has no MsgId or PmtInfId. |
schema_invalid |
The file does not pass the ISO 20022 schema. |
refused_by_bank |
It passed our checks, but the bank refused it. With batch_id: the batch is failed. |
We set the ids. MsgId becomes the batch id, PmtInfId the batch id plus -1, so every batch
is unique at the bank. The same file twice for one account is 409
bank_batch_duplicate, with the batch_id of the first,
unless that one was rejected or failed: a second copy would be paid twice.
Follow a batch
Section titled “Follow a batch”status |
What it means |
|---|---|
submitted |
At the bank, waiting for your customer to sign it. |
processing |
Signed; on its way. |
completed |
Executed. |
needs_attention |
(Partly) executed, but something came back, was refused or was cancelled. Check it at the bank before you send anything again. |
rejected |
Not executed at all. |
failed |
The bank never took it: it refused the file, or could not be reached; see error. Nothing waits in a queue: send it again once the cause is gone. |
provider_status is the bank’s own status, one of its 38, such as PARTIALLY_REJECTED. We ask the
bank after 3 minutes, then every 15 minutes for 3 hours, every hour up to 3 days, and twice a day up
to 30 days. That goes on after completed, because a direct debit can still be reversed weeks later.
Every change of status sends a webhook; GET /v1/bank/payment-batches/{id} is always
the current state. GET /v1/bank/payment-batches lists newest first, with status, account,
limit and cursor.
Webhooks
Section titled “Webhooks”| Type | When |
|---|---|
bank.account.activated |
The bank confirmed an account; transactions and batches work from now on. |
bank.account.rejected |
An account did not match the bank’s confirmation. |
bank.account.expired |
The bank did not confirm an account within 30 days. |
bank.account.revoked |
The bank no longer gives access to an account. |
bank.payment_batch.processing |
Your customer signed a batch; it is on its way. |
bank.payment_batch.completed |
A batch was executed. |
bank.payment_batch.rejected |
A batch was not executed at all; see provider_status. |
bank.payment_batch.needs_attention |
Something in a batch came back or was cancelled; check it at the bank. |
They go to the endpoints of the environment, and follow the API key that asked
for the connection, or that sent the batch. The data is thin: never a transaction or a balance.
{ "id": "bac_01jbx6y4q9t2m8rz1v3k5n7p0a", "connection_id": "bcn_01jbx6y4q9t2m8rz1v3k5n7p0b", "provider": "abnamro", "iban": "NL62ABNA9999841479", "status": "active", "entity": "adm_42", "currency": "EUR", "holder_name": "Bakkerij De Korenaar B.V.", "activated_at": "2026-11-24T10:02:00Z", "ended_at": null, "metadata": { "administration": "42" } }
// bank.payment_batch.completed{ "id": "bpb_01jbx6y4q9t2m8rz1v3k5n7p0c", "account_id": "bac_01jbx6y4q9t2m8rz1v3k5n7p0a", "iban": "NL62ABNA9999841479", "type": "credit_transfer", "status": "completed", "provider_status": "PROCESSED", "entity": "adm_42", "file_name": "CTM8RZ1V3K5N7P0C", "transaction_count": 12, "control_sum": "4310.25", "metadata": { "run": "2026-11-23" } }The metadata of an account event is that of its connection, the metadata of a batch event that of
the batch.
What it costs
Section titled “What it costs”| Operation | Price |
|---|---|
bank.account |
€1.00 per active bank account per month, charged per day. |
bank.connect, bank.read, bank.balance, bank.transactions, bank.payment_batch |
Free. |
GET /v1/pricing always has the prices that apply to your account.
- Per day. An account costs from the day it becomes
activeup to and including the day it stops: you end its connection, or it isrevoked. Every night we take that day’s part of the monthly price from your credit, the way we charge the base subscription. Apendingaccount costs nothing, and there is no bundle or limit on the calls. - Test keys never cost anything.
- When your credit does not cover a day, your bank accounts get the same 3 days of grace as the
base subscription, and are then paused together with it: you get an e-mail and the
subscription.pausedwebhook, with the number of paused accounts inpaused_bank_accounts. While an account is paused, nothing is charged for it, and its balance, transactions and batches are402insufficient_credits. Itsstatusstaysactive, and the link at the bank stays in place. Your next paid top-up resumes it; fetch the days you missed withdate_fromanddate_to.
Test mode
Section titled “Test mode”With a test key nothing reaches the bank’s production. Connections, accounts and batches are test objects of your account, with the same statuses and webhooks as live ones, to your test endpoints.
The accounts of ABN AMRO’s sandbox confirm themselves, about a minute after you asked for them:
ibans |
What happens |
|---|---|
NL62ABNA9999841479, NL12ABNA9999876523 or NL58ABNA9999142181 |
After 1 minute active, with bank.account.activated. |
NL91ABNA0417164300 |
After 1 minute rejected, with bank.account.rejected. |
| Any other ABN AMRO IBAN | Stays pending, and expires after 30 days. |
- Balance and transactions of an active test account are fixed: three transactions booked on
date_to(a transfer in, a card payment without an id of the bank, and a direct debit), and a balance of6785.83. We can also pass these calls on to ABN AMRO’s sandbox; you then get its test data instead. - A batch gets every check a live one does, but goes to no bank. Then it moves on by itself:
after 1 minute
processing, after 2 minutescompleted. Afile_namethat starts withREJECTisrejectedafter 1 minute; one that starts withATTENTIONends inneeds_attention.
See test mode for every operation.
Errors
Section titled “Errors”| Code | Status | When |
|---|---|---|
bank_not_enabled |
403 | Live use is not switched on for your account. Test keys work. |
entity_required |
400 | A request for a connection without AccountCloud-Entity. |
bank_iban_unavailable |
409 | An account is already active elsewhere. With iban. |
bank_connection_not_found |
404 | The connection does not exist, or belongs to another account, environment or entity. |
bank_account_not_found |
404 | The account does not exist, or belongs to another account, environment or entity. |
bank_payment_batch_not_found |
404 | The batch does not exist, or belongs to another account, environment or entity. |
bank_account_not_active |
409 | Balance, transactions or a batch of an account that is not active. With account_status. |
bank_access_denied |
409 | The bank refuses access to the account. With since. |
bank_file_invalid |
422 | The file was not sent: see reason and details. |
bank_batch_duplicate |
409 | This file was sent for this account before. With batch_id. |
invalid_idempotency_key |
400 | A batch without an Idempotency-Key. |
file_too_large |
413 | The file of a batch is larger than 5 MB. |
invalid_base64 |
422 | The file of a batch is not valid base64. |
insufficient_credits |
402 | The account is paused: its monthly price could not be charged. |
rate_limit_exceeded |
429 | The bank allows a few calls per second for all customers together. Try again after Retry-After (1 second). |
provider_unavailable |
503 | The bank did not answer. Nothing was charged. Try again after Retry-After. |
validation_failed |
422 | The body or the parameters are not valid, such as an IBAN of another bank, a date_from more than 18 months back, or a cursor of another account. The messages per field in errors. |