The bank knows where the cash is. The ERP knows what it is for and when it is due. How treasury software connects to both, and where each API fits.
Bank APIs
Each bank’s corporate API
Citi
HSBC
Bank of America
Deutsche Bank
Danske BankYour product
Treasury software
ERP APIs
The company’s books
One Apideck Accounting API for 55+ ERPs and accounting platforms
A treasury API is an interface treasury software uses to see and move a company’s cash. Corporate treasury runs on two kinds: bank APIs for balances, statements and payments, offered by each bank as a corporate or premium API, and ERP and accounting APIs for open payables and receivables, the ledger and the journal entries treasury writes back. A treasury management system needs both: the bank shows the cash, the books show what it is committed to.
Looking for US government data, such as the national debt or Treasury rates? That is the US Treasury’s public Fiscal Data API, a different thing from corporate treasury APIs.
Every cash movement exists twice: once at the bank, once in the books. Treasury software reads both and keeps them in step.
Which banks sell corporate and treasury APIs, and what each one covers (payments, virtual accounts, account validation, real-time payments), is tracked on the Open Banking Tracker’s list of premium and corporate banking APIs, an Apideck project.
No treasury workflow runs on bank data alone. Each one needs a second half from the books.
| Treasury task | From the bank API | From the ERP API |
|---|---|---|
| Cash positioning | Current and intraday balances per account | Which entity and ledger account each bank account belongs to |
| Cash forecasting | Today’s opening balance | Open receivables by due date, open payables by due date, recurring journal entries |
| Payments | Send the payment and track its status | Read the approved bills to pay, then mark them paid in the ledger |
| Reconciliation | Statement lines (camt.053 under ISO 20022, or MT940) | The payments, invoices and bills to match them against |
| Bank fees, interest and FX | The charges and rates on the statement | Journal entries that book them to the right accounts |
| Intercompany and in-house bank | Transfers between group accounts | Matching entries in each entity’s books |
The bank gives you one number: what is in the account today. Everything after today comes from the books. Open invoices, by due date, are the cash coming in. Open bills, by due date, are the cash going out. Roll them forward week by week from the bank’s opening balance and you have a forecast.
Without the ERP, a treasury product can only report the past. With it, it can tell a finance team which week the balance dips, before it does.
8-week cash forecast
ExampleToday, from the bank
$1.24M
Week 8, forecast
$1.02M
W1
1.29
W2
1.05
W3
1.12
W4
1.23
W5
1.00
W6
1.07
W7
1.16
W8
1.02
Closing balance, $M
The same four steps, whether you build a treasury management system or add treasury features to a payments or banking product.
Each bank exposes its own corporate API, with its own onboarding, certificates and contract. Larger groups add host-to-host or SWIFT for banks without an API. Payment and statement formats increasingly follow ISO 20022 (pain.001 out, camt.053 back).
Every ERP has a different API and data model. A treasury product sold to many companies meets NetSuite at one customer and Business Central or Xero at the next, which is where a unified accounting API saves a build per platform.
Link each bank account to its ledger account and legal entity, once per customer. Everything after this, forecasting, reconciliation and posting, depends on that map.
Read balances from the bank and open items from the ERP, forecast and decide, send payments through the bank, then write the results to the books: payments against bills, journal entries for fees, FX and intercompany.
Open banking and corporate bank APIs are not the same product. The Open Banking Tracker explains the difference in open banking vs premium banking APIs.
Apideck covers the ERP side of treasury. The Accounting API reads and writes bills, invoices, payments, ledger accounts, journal entries and reports across 55+ accounting platforms and ERPs, including NetSuite, Business Central, Xero and QuickBooks, through one data model and one authorization flow. Aged payables and aged receivables come back in the same format on every platform that supports them, which is the input a cash forecast needs.
Apideck does not connect to banks, send payment files or read a company’s bank accounts. Treasury and payment platforms use it next to their own bank connections: the bank API moves and reports the cash, the Accounting API keeps the books in step. Cloud connectors pass data through in real time with zero data retention, so no copy of your customers’ books sits on Apideck infrastructure.
Authorization: Bearer <APIDECK_API_KEY>x-apideck-app-id: <APP_ID>x-apideck-consumer-id: <CUSTOMER_ID>// 200: open bills per supplier, by due date{ "report_as_of_date": "2026-11-13", "period_length": 30, "outstanding_balances": [{ "supplier_name": "Northwind Logistics", "outstanding_balances_by_currency": [{ "currency": "EUR", "total_amount": 48200, "balances_by_period": [{ "start_date": "2026-11-14", "end_date": "2026-12-13", "total_amount": 48200, "balances_by_transaction": [{ "transaction_type": "bill", "transaction_number": "BILL-2291", "due_date": "2026-11-28", "outstanding_balance": 48200 }] }] }] }]}
The same three calls on NetSuite, Business Central, Xero and every other connected ERP. Example values.
Read and write bills, invoices, payments and journal entries across 55+ platforms.
Read moreBank data vs accounting data, and why B2B products need both.
Read morePush transactions from your platform into your customers’ accounting systems.
Read moreThe ERP most mid-market treasury customers run.
Read moreHow Round Treasury connects to its customers’ accounting systems with Apideck.
Read moreOne integration to read and write your customers’ books across 55+ accounting platforms and ERPs.