See turnover and account transactions from Alfa-Bank in chat
The agent reads Alfa-Business statements and flags unusual weekly debits or breaks down quarterly spending. Needs an API key, plus a certificate for some methods.
Alfa-Bank examples
Two transactions break the usual pattern: RUB 312,400 and RUB 87,900.
I pulled the statement for the Alfa-Business accounts over 7 days: RUB 4.8 million in and RUB 4.1 million out. Both unusual ones go to new counterparties that had never been paid before.
Spending for the quarter: RUB 11.9 million, two thirds went to purchasing and taxes, RUB 3.9 million to everything else.
- Goods purchasing: RUB 5.4 million
- Taxes and contributions: RUB 2.6 million
- Payroll and expense advances: RUB 2.1 million
- Rent, telecom, contractors: RUB 1.8 million
Alfa-Business returns the statement in pages and with a cap on the length of the period, so I collected the quarter in parts and stitched it together myself.
How to connect
Before you connect
- A settlement account and cash management at Alfa-Bank
- A director or an employee with signing authority
- OpenSSL installed to generate the private key
- Альфа-Банк accepts requests only from the addresses listed on the key. When issuing the key, add the Samreshuuu addresses: 158.160.205.91 and 87.228.27.163.
- 1.
Check your account and Alfa-Business Online
Alfa API is granted to companies with a settlement account, cash management and Alfa-Business Online (Альфа-Бизнес Онлайн) enabled. There is no connection fee.
- 2.
Email alfa_api@alfabank.ru to request access
Email alfa_api@alfabank.ru with your company details. Sign the ITV agreement in Alfa-Business Online; the bank then issues your Client ID.
- 3.
Generate the CSR with openssl req
Run openssl req -new -key name.key -out name.csr with your company details. The bank returns a PEM certificate; name.key never leaves you.
- 4.
Pass the Sandbox and open production
Call the methods in the Sandbox, then email alfa_api@alfabank.ru with the subject “Завершено тестирование”. The bank opens baas.alfabank.ru.
FAQ
An API key from Alfa-Business Online and, for some methods, a client certificate. Everything is stored encrypted.
Company accounts, statements, transactions and payments, within the permissions of the key. Data is requested at the moment of the task, with no permanent export.
Yes, in one click: delete the connection on our side or revoke the key in Alfa-Business Online, and access stops immediately.
How the agent works with Alfa-Bank
The agent calls the Alfa-Business API at baas.alfabank.ru and starts from the list of company accounts, the same request that verifies the connection. From there it pulls the statement for the selected accounts over a period, totals incoming and outgoing turnover, surfaces large and unusual transactions and breaks payments and receipts down by counterparty and purpose, so the weekly summary comes together without a manual export from the internet bank.
A bank statement is not the same thing as what is happening on the account right now: it carries the transactions the bank has already posted, so a fresh payment or credit appears in it later than the company learns about it. The agent works from the posting date rather than the moment the payment became known, and when reconciling against 1C entries it matches transactions by amount, date and counterparty details rather than by the payment purpose alone.
By default the agent reads: accounts, statements, transaction history, reconciliation with the books and recurring summaries. The payment part of the API is available, but signing an order stays on the bank's side and goes through confirmation in Alfa-Business Online, so the agent cannot send money silently. Before any write action it shows the details and the amount it has assembled and stops until you confirm them.
Access has two layers: the API key travels as a token, while some methods additionally require a client certificate, so the set of available operations depends on which layer is open. The statement comes back in pages and with a cap on the length of the period, so the agent collects long intervals in chunks and stitches them together itself, holding the request rate. If there is no data for the period or the key lacks permissions, it says so directly instead of showing an empty table.