Skip to main content

monobank statement

monobank can send your statement to an address: one request for every operation on all your accounts — the card and the account of a sole proprietor (FOP) alike, money in and money out. AlphaFlow keeps the money that comes in and skips the money that goes out. The statement has no phone of the payer, so it is a notice for you or your accountant, not for the buyer: money has come to the FOP account, from whom and with what comment.

Written from monobank documentation

This page is written from the public documentation of monobank and has not been checked on a live account yet.

What you need​

  • A monobank account. It is free for any client from 16; FOP accounts come in the same statement.
  • Your personal monobank token and one command — no developer, but you run it in a terminal or an online HTTP client.
  • One address per token. The command replaces the address set before. If accounting software or a bot already gets your statement by this token, it stops getting it.
  • The notices go to the phone you set in the connection — yours or your accountant's. The statement has no phone of the payer.
  • The personal API of monobank is for private use: services that collect data of clients are sent by the bank to its corporate API.

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose monobank.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Set the address in monobank​

  1. Open api.monobank.ua, sign in with the monobank app (by the QR code) and copy your token. Do not give it to anyone, us included.

  2. Run the command below with your token in place of YOUR_TOKEN and the address from the cabinet in place of FLOW_ADDRESS. On a Mac — in Terminal; on Windows — in PowerShell, with curl.exe instead of curl; or in any online HTTP client: method POST, the address https://api.monobank.ua/personal/webhook, the header X-Token and the body from the command.

    curl -X POST https://api.monobank.ua/personal/webhook -H "X-Token: YOUR_TOKEN" -H "Content-Type: application/json" -d '{"webHookUrl":"FLOW_ADDRESS"}'
  3. monobank checks the address at once with a GET request. The address answers 200, and from then on every operation comes to AlphaFlow. The check itself is not an event.

  4. In the connection, set the phone for the notices — yours or your accountant's.

  5. Money out is skipped by AlphaFlow itself. If you need one account only, add a condition to the flow: account equal to the id of that account.

Step 3. Send a test​

Transfer 1 UAH to your card or FOP account from another card. The event appears in Flows → Connections → Event journal within seconds, and the connection shows Recognised: monobank.

Events​

monobankAlphaFlow eventProperties
StatementItem — money inpayment_succeededaccount, amount, currency_code, description, comment, counter_name, counter_iban, balance, operation_id
  • amount is in kopecks: 95000 is 950 UAH. Money out comes from monobank too, with amount below zero, and AlphaFlow skips it.
  • currency_code is a number: 980 is UAH.
  • account is the id of the card or the FOP account: filter by it.
  • comment is the comment of the payer and may be absent; counter_name is the name of the other side; counter_iban comes for FOP accounts only.

The statement has no contact of the payer. The notice goes to the phone you set in the connection; without it the event is refused with no_contact.

payment_succeeded is not among the events of the ready-made templates (see Recommended events): create the flow From scratch and choose the event as its start.

Good to know​

  • monobank waits 5 seconds for 200. Without it, it repeats after 60 and 600 seconds, and after the third failure switches the webhook off — then run the command again.
  • Every operation has its own id, so a repeat is not recorded twice.
  • monobank does not sign the requests: the protection is the secret in the address. Keep both the token and the address to yourself.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the webhook in monobank stays on.
  • For payments by monobank acquiring (plata by mono) see monobank acquiring.

monobank documentation​