monobank acquiring
plata by mono, the internet acquiring of monobank, sends a webhook when the status of an invoice changes: paid, failed, refunded. Two things limit its use for flows: the address is set by code in every invoice, and the webhook has neither the phone nor the email of the buyer. So for most shops the better source of a payment is the shop itself; this page says when the webhook is still worth it.
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 acquiring merchant.
- A developer. The address (
webHookUrl) is a parameter of every invoice (POST /api/merchant/invoice/create). The documentation does not describe a field for it in the merchant cabinet. A CMS module usually uses this address itself. - If the payments go through a module of your shop, change nothing and take the "paid" event from the shop or
the CRM: for example, a KeyCRM trigger on a
change of the payment status to Paid sends
order_paidwith the phone of the buyer, the event the ready-made templates expect. - No buyer contact. The only use without further work is a notice to you, to the phone you set in the connection.
- For notices about money on your card or FOP account there is a way without code — the monobank statement. Whether acquiring payments come into the statement one by one or as a sum is not confirmed by the documentation.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose monobank acquiring. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Pass the address in invoices
This step is for the developer of the shop:
- When creating an invoice (
POST /api/merchant/invoice/create), passwebHookUrl— the address from the cabinet. - An invoice has one
webHookUrl. If a module of the shop already sets it, leave the module's address: the module confirms the order with it. - Pass the order number in
reference— it comes to AlphaFlow asorder_id. - The signature
X-Signis optional: the secret in the address is enough.
Step 3. Send a test
Set the phone for the notices in the connection. Then create a test invoice in the test mode of acquiring and pay
it. The event appears in
Flows → Connections → Event journal within seconds, and the
connection shows Recognised: monobank acquiring.
Events
| Invoice status | AlphaFlow event | Properties |
|---|---|---|
success | payment_succeeded | order_id, invoice_id, total, final_amount, currency_code, destination |
failure | payment_failed | order_id, invoice_id, total, final_amount, currency_code, destination, failure_reason |
reversed | refund_issued | order_id, invoice_id, total, final_amount, currency_code, destination |
totalandfinal_amountare in kopecks;final_amountis the sum after refunds.currency_codeis a number:980is UAH.destinationis the purpose of the payment; every event also carriesstatus.created,processingandholdstart nothing;expireddoes not come by webhook at all.- A partial refund comes as
successagain, withfinal_amountless thantotal. The event id is one per invoice and status, so it is not recorded as a second payment — and no refund event comes either.
The webhook has no contact of the buyer. The notice goes to the phone you set in the connection; without it the
event is refused with no_contact. Finding the buyer by reference in the shop is not supported.
Good to know
- monobank sends up to 3 requests until it gets
200, and the order of the webhooks is not guaranteed. Each event carries the time of its change, and a repeat is not recorded twice. - The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; nothing is switched off in monobank.