Skip to content

How do I start automations from payments and orders?

These triggers start a workflow when money moves or an order changes. You don’t have to set up webhooks yourself: pick your connected account and the events, and CiraIQ registers everything with the provider when you publish.

Starts when a customer pays your Paybill or Till, or answers an M-Pesa payment prompt that a workflow sent.

SettingWhat it does
M-Pesa connectionYour Daraja (Safaricom) app keys and shortcode. See M-Pesa.
SourcePaybill/Till payments, payment-prompt results, payout results (from M-Pesa Payout), or payments and prompts together
Only successful paymentsIgnore cancelled and failed prompts
Minimum amountIgnore payments below this
Account containsOnly payments whose account reference matches, for example an invoice prefix

The workflow receives the amount, the M-Pesa receipt number, the payer’s phone and name, the account reference and the time.

Try it: M-Pesa Receipt by SMS for Every Payment

Starts on these store events (choose one or more):

  • Order placed
  • Order paid
  • Order fulfilled
  • Order cancelled
  • Checkout started: for abandoned-cart follow-ups
  • New customer

Try it: Shopify HubSpot Integration with a Thank-you SMS

  • Order placed
  • Order updated: a status change or payment
  • New customer
  • Product updated: price or stock

Try it: M-Pesa for WooCommerce: STK Push on Every Order

  • Payment successful
  • Refund completed
  • Refund failed
  • Customer opened a dispute

Try it: Paystack Webhook: Mark Invoices Paid and Send Receipts

  • Checkout completed: a payment link was paid
  • Payment succeeded
  • Payment failed
  • Payment refunded
  • Invoice paid

Try it: Stripe Receipt Email and Airtable Customer List

What every store and payment trigger provides

Section titled “What every store and payment trigger provides”

Tidy fields for the common things (order number, amount, currency, customer name and email), plus:

  • topic: which event this was.
  • data: the full payload, exactly as the provider sent it, for anything else.
  • Use one workflow per job, not per event. “Order paid → receipt + CRM update” is easier to maintain than one huge workflow that handles everything.
  • Payments can arrive twice. Providers retry when they don’t get a quick answer. If a step must only happen once per payment (sending goods, a payout), key it on the receipt or order number.
  • See the M-Pesa, Paystack and Stripe and Shopify and WooCommerce steps for what you can do next.

Questions

Do I need to set up webhooks in Shopify or Stripe?

No. Pick your connected account and events, and CiraIQ registers the webhooks with the provider when you publish.

Which Shopify events can start a workflow?

Order placed, paid, fulfilled or cancelled, checkout started (for abandoned carts), and new customer.

Can the same payment start a workflow twice?

Providers retry when they don't get a quick answer, so key one-time actions on the receipt or order number.