Shopify, Stripe and Slack: Refund Notification Template
When a Shopify order is cancelled, this Spojit template finds the matching Stripe charge and posts the refund details to a Slack finance channel.
What It Builds
This template starts with a Webhook trigger that listens for Shopify order cancellations, verified by a Shopify signing connection. A Connector node on the stripe connector looks up the customer and their recent charges to find the one that matches the cancelled order, and a Connector node on the slack connector posts a tidy summary to your finance channel. The result is a real-time heads-up for your finance team every time an order is cancelled, with the order number, customer, total, and the matching Stripe charge all in one Slack message.
The Prompt
Paste this into Miraxa, the intelligent layer across your automation, and it builds the workflow, connecting the tools for you:
Build a workflow with a Webhook trigger that fires when a Shopify order is cancelled. Take the customer email and order total from the webhook body, look up the matching customer and recent charges in Stripe, and post a message to the #finance Slack channel with the order number, customer name, order total, and the matching Stripe charge ID and amount.
Connectors Used
- Webhook trigger (Shopify) - receives the order-cancellation event, verified by a Shopify signing connection.
- shopify - source of the cancelled order; the trigger body carries the order number, customer, and total.
- stripe -
list-chargesandget-customerfind the charge that matches the cancelled order. - slack -
send-messageposts the refund summary to your finance channel.
Customize It
Change #finance in the prompt to whichever Slack channel your team watches, and adjust which fields land in the message (for example add the cancellation reason or the customer's order history). If you want the workflow to match charges by an order reference stored in Stripe metadata rather than by email, say so in the prompt. You can also add a Condition node so the alert only fires for orders above a certain total. Tune any of these in the properties panel after Miraxa scaffolds the workflow.
Tips
- Use Direct mode on the Stripe and Slack Connector nodes for predictable, no-AI-cost calls. Reach for Agent mode only if matching the right charge needs judgment across several candidates.
- Make sure your Stripe connection can read charges and customers, and your Slack connection can post to the target channel, before you run it.
- The Shopify Webhook trigger needs a Shopify signing connection so Spojit can verify each incoming event; set this up under Connections first.
Related
- How to Reconcile Shopify Orders with Stripe Charges covers matching Shopify orders to Stripe charges in depth.
- How to Send Slack Alerts for New E-commerce Orders is a sibling pattern for order-driven Slack notifications.
- How to Automate Returns and Refund Processing takes the refund flow a step further.