Skip to main content

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.

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 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_paid with 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​

  1. Open Flows → Connections, press Connect a system and choose monobank acquiring.
  2. 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:

  1. When creating an invoice (POST /api/merchant/invoice/create), pass webHookUrl — the address from the cabinet.
  2. 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.
  3. Pass the order number in reference — it comes to AlphaFlow as order_id.
  4. The signature X-Sign is 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 statusAlphaFlow eventProperties
successpayment_succeededorder_id, invoice_id, total, final_amount, currency_code, destination
failurepayment_failedorder_id, invoice_id, total, final_amount, currency_code, destination, failure_reason
reversedrefund_issuedorder_id, invoice_id, total, final_amount, currency_code, destination
  • total and final_amount are in kopecks; final_amount is the sum after refunds. currency_code is a number: 980 is UAH.
  • destination is the purpose of the payment; every event also carries status.
  • created, processing and hold start nothing; expired does not come by webhook at all.
  • A partial refund comes as success again, with final_amount less than total. 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 with quota_exceeded and shown in the journal; nothing is switched off in monobank.

monobank documentation​