Skip to content
30% OFF
All templates
  • 2
  • 2
  • +5
Businessintermediate

Check and reverse wrong M-Pesa payments safely

Template: M-Pesa Reversal Check for Wrong Payments

A customer says they paid the wrong amount or paid twice. Send their M-Pesa receipt from your support form, and the workflow checks the transaction with Safaricom. If it is genuine and the amount matches, it reverses the payment within your limits and texts the customer. If not, it tells you why so you can reply. It ships as a dry run, so nothing is reversed until you switch that off.

  • 10 steps
  • ~15 min setup
  • basic plan

Free to use. Sign in to add it to your canvas.

Webhook Trigger
Trigger workflows via HTTP requests
Method: POST
M-Pesa Transaction
Check a receipt, or reverse a payment
If / Else
{{$node.n2.transactionStatus}} equals Completed
AND{{$node.n2.amount}} equals {{$node.n1.body.amount}}
TRUEFALSE
M-Pesa Transaction
Check a receipt, or reverse a payment
If / Else
{{$node.n4.reversed}} is true
TRUEFALSE
SMS
Send SMS with CiraIQ
WhatsApp
Message, voice note, buttons or AI call
Message → me
↩️ *Refund claim {{$node.n1.body…
WhatsApp
Message, voice note, buttons or AI call
Message → me
🚫 *Refund claim {{$node.n1.body…
Error Trigger
Runs when this workflow fails
WhatsApp
Message, voice note, buttons or AI call
Message → me
⚠️ *Something needs your attenti…

Click a step to see its settings, or drag it to move it

Who it's for

Businesses on a Paybill that handle customer refund claims for wrong payments.

How it works

The flow you get, exactly as it lands on your canvas.

  1. Webhook TriggerStarts here

    Trigger workflow via HTTP webhook. Receive data from external services, APIs, or custom integrations.

  2. M-Pesa TransactionM‑Pesa

    Check an M-Pesa transaction's status by receipt number, or reverse a payment you received (guarded).

  3. If / Else

    Branch the workflow based on conditions. Routes to the true or false path.

  4. M-Pesa TransactionM‑Pesa

    Check an M-Pesa transaction's status by receipt number, or reverse a payment you received (guarded).

  5. If / Else

    Branch the workflow based on conditions. Routes to the true or false path.

  6. SMSSMS

    Send SMS through your own Africa's Talking or Twilio account. You add your own API keys - CiraIQ never pays for messages, your provider bills you directly.

  7. WhatsAppWhatsapp

    Send messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent

  8. WhatsAppWhatsapp

    Send messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent

  9. Error TriggerStarts here

    Runs when this workflow fails. Wire it to a notification to be told.

  10. WhatsAppWhatsapp

    Send messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent

Before it runs

Copy the webhook URL from "Refund request" into your support form; send JSON like {"receipt":"SGR7ABC123","phone":"0712345678","amount":"1500"}. In both M-Pesa steps add your M-Pesa initiator keys for the Paybill that received the money (Transaction Status and Org Reversal roles). It ships as a DRY RUN: a genuine claim gets you a WhatsApp saying what would be reversed, and nothing is sent. When you trust it, open "Reverse the payment", set the limits to your real amounts and switch "Dry run" off. Add your Africa's Talking keys in "Tell the customer".

Questions

Is this for customers who sent money to the wrong number?
No. It is for businesses checking claims about payments made to their own Paybill.
What keys does it need?
M-Pesa initiator keys for the Paybill that received the money, with the Transaction Status and Org Reversal roles.
Can I test it without reversing anything?
Yes. It ships as a dry run: a genuine claim gets you a WhatsApp saying what would be reversed.

More templates

Browse all templates
BusinessAI Lead Enrichment and Qualification for Website Form Leads, Saved to HubSpotEvery new lead from your website form, Typeform or Tally is researched and qualified automatically. An AI agent looks up the person and company on the web, adds or updates them in HubSpot (or any CRM with an MCP server), scores the lead Hot, Warm or Cold, and posts a ready-to-act summary to your sales channel in Slack.Save$3,900/year
  • +3
BusinessAI Meeting Prep Briefs from Your CRM Before Every Sales CallWalk into every sales call prepared. Each weekday morning CiraIQ reads today's Google Calendar, and an AI agent looks up every outside attendee in your CRM through its MCP server - HubSpot, Salesforce, Pipedrive or Attio - plus recent company news, then emails you a one-page brief per meeting: who they are, the deal stage, the last conversation and what to ask.Save$4,700/year
  • +4
BusinessAI Daily Standup Report in Slack from Jira, Linear or GitHubSkip the status meeting. Every weekday morning an AI agent reads your Jira, Linear or GitHub board through its MCP server and posts an async standup to Slack: what was finished yesterday, what is in progress today, and what is blocked or overdue, grouped by person. Read-only: it never changes your board.Save$3,900/year
  • +3
BusinessTurn Bug Report Emails into GitHub, Jira or Linear Issues with AICustomer emails about bugs become well-written issues in GitHub, Jira or Linear. An AI agent reads each email, ignores anything that is not a bug, checks your tracker for a duplicate through its MCP server, then creates a new issue with steps to reproduce - or comments on the existing one - and tells your team in Slack.Save$4,050/year
  • +4
BusinessWeekly Stripe Revenue Report by Email: MRR, Churn and Failed PaymentsEvery Monday morning an AI analyst reads your Stripe account through the Stripe MCP server and emails you a weekly revenue report: revenue, new customers, MRR, cancelled subscriptions (churn), refunds, disputes and every failed payment that needs a follow-up - compared with the week before. Read-only, so it never charges or refunds anyone.Save$3,900/year
  • +3
BusinessSave Emails to Notion as Tasks Automatically with AIMove an email into a "Notion" folder or label and it becomes a task in your Notion database: an AI agent writes an action title, finds the due date, summarises the email and files it through the official Notion MCP server. Works with Gmail, Outlook or any inbox, so your to-do list lives in one place.Save$3,100/year
  • +2