Refunds by reason
“show refunds by month and reason from the stripe refunds, and refund rate using sales from the original stripe charges month; include the monthly reason mix and the refund rate”
Show refunds by month and reason from the Stripe refunds, and refund rate using sales from the original Stripe charges month; include the monthly reason mix and the refund rate, grouping by original charge month and calculating refund amount / sales amount.
What the agent built
4 steps, each one an ordinary Mammoth step you can open and change.
- FileStripe refundsCSV export · 15 rows
- FileStripe chargesCSV export · 18 rows
- StepKeep successful refundsStep 2
- StepCalculate monthly salesStep 1
- JoinBring in original charge month15 of 15 paired
- StepCalculate monthly mix and rateStep 4
- ResultMonthly Refund Mix11 rows
- ScheduleRuns when you sayProposed
On the sample files, every step runs and the result has 11 rows.
- Download Stripe refunds sample (15 rows)Stripe: Payments > Refunds > Export
- Download Stripe charges sample (18 rows)Stripe: Payments > All payments > Export
What you get back
The result of that run, the rows to look at first.
| Charge month | Reason | Refund amount (USD) | Monthly reason mix (%) | Refund rate (%) | Total refunds (USD) | Sales amount (USD) |
|---|---|---|---|---|---|---|
| 2026-08-01 | duplicate | 20 | 21.1 | 19.2 | 95 | 495 |
| 2026-08-01 | requested_by_customer | 75 | 78.9 | 19.2 | 95 | 495 |
| 2026-09-01 | duplicate | 40 | 22.2 | 17.3 | 180 | 1,040 |
| 2026-09-01 | fraudulent | 45 | 25 | 17.3 | 180 | 1,040 |
| 2026-09-01 | requested_by_customer | 95 | 52.8 | 17.3 | 180 | 1,040 |
| 2026-10-01 | duplicate | 30 | 7.7 | 29 | 388 | 1,338 |
| 2026-10-01 | fraudulent | 128 | 33 | 29 | 388 | 1,338 |
| 2026-10-01 | requested_by_customer | 230 | 59.3 | 29 | 388 | 1,338 |
| 2026-11-01 | duplicate | 12 | 3.9 | 23 | 307 | 1,332 |
| 2026-11-01 | fraudulent | 50 | 16.3 | 23 | 307 | 1,332 |
| 2026-11-01 | requested_by_customer | 245 | 79.8 | 23 | 307 | 1,332 |
How it works
How to use the Monthly Refund Mix workflow
- 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and working on sample files.
- 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
- 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.
Monthly Refund Mix: questions
How do you analyse refunds by reason?
Which export file should you use?
What happens to rows that do not match?
How do you change the rules?
Get early access to this workflow
It opens already built and working on sample files. Swap in your own exports to see your result.
Workflows like this
The number you report every month, rebuilt from the latest export, plus the forecast that follows from it.
- Customer lifetime value by cohortWork out customer lifetime value by signup month cohort from Shopify customers and orders exports, with revenue per customer and average order count.See the workflow Built by the agent
- Profit and loss by monthBuild a monthly profit and loss statement from a QuickBooks general ledger export, with revenue, COGS, gross profit, expenses, and net income.See the workflow Built by the agent
- Pareto (ABC) analysisEvery item ranked by its total, with its share, the running share and an A, B or C classSee the workflow Template
- Inventory turnover by SKURank Shopify SKUs by inventory turnover ratio using product, order, and inventory exports from the last 12 months.See the workflow Built by the agent
- Cohort retentionEach month's new customers, and the share still buying 1, 2, 3… months laterSee the workflow Template
- Customer segmentation by revenueSegment Stripe customers into revenue tiers from exported customer, charge, and threshold files, then count customers and revenue in each tier.See the workflow Built by the agent