Skip to content
Workflow · Search and ads · Opening soon

Affiliate commissions

Use your Shopify orders export and your affiliate commission rate table. The workflow matches referral codes to rates, keeps paid orders, and totals commissions by month.

Early access opens shortly. Check back soon.

Someone typed

“calculate affiliate commissions by affiliate and month from orders with their referral codes and commission rates”

The agent read it as

Calculate affiliate commissions by affiliate and month from Shopify orders with their referral codes and Affiliate commission rates, using the order subtotal.

What the agent built

4 steps, each one an ordinary Mammoth step you can open and change.

  1. File
    Shopify orders
    CSV export · 24 rows
  2. File
    Affiliate commission rates
    CSV export · 8 rows
  3. Step
    Keep paid orders
    Step 2
  4. Step
    Make rate code key
    Step 1
  5. Join
    Add affiliate rates
    23 of 23 paired
  6. Step
    Total commissions by month
    Step 4
  7. Result
    Affiliate Commission Totals
    18 rows
  8. Schedule
    Runs when you say
    Proposed

Checked on the sample files: every step ran, 18 rows came out, and the join paired 23 of 23 rows.

What you get back

The result of that run, the rows to look at first.

Affiliate Commission TotalsSample data18 rows
AffiliateMonthCommissionOrder subtotalCommission rate
Sunrise Studio2026-10-016750.1
Northstar Collective2026-10-0117.161320.1
Harbor House Media2026-10-01212100.1
Verve Loop2026-10-0116.201800.1
Evergreen Audience2026-10-016.16880.1
Harbor House Media2026-11-0124.402440.1
Sunrise Studio2026-11-0122.162770.1
Ridge Path Creators2026-11-0149.204100.1
Evergreen Audience2026-11-0112.741820.1
Coastline Partners2026-11-0134.103100.1
Sunrise Studio2026-09-019.601200.1
Harbor House Media2026-09-018.40840.1
18 rows in the result · 12 shown, problems first. Sample data: illustrative figures, not business results.

How do you calculate affiliate commissions by affiliate and month?

Export your Shopify orders and your affiliate commission rates, then load both files into the workflow. It matches each order to a rate using the referral code, keeps paid orders, and calculates commission from the order subtotal. Then it groups the results by affiliate and month.

How it works

How to use the Affiliate Commission Totals workflow

  1. 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and checked on the sample files.
  2. 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
  3. 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.

Affiliate Commission Totals: questions

What export should you use from Shopify?
Use the orders export from Shopify. It needs the order fields that include the referral code, paid status, order date, and order subtotal.
What happens to rows that do not match a rate?
Rows that do not match a rate stay out of the matched commission result unless you decide otherwise in the rules. You can review them separately and update the rate table or matching rule.
How do you change the rules?
You change the rules in plain words. For example, you can say which orders to keep, which column to match on, how to calculate commission, and how to group the totals.

Get early access to this workflow

It will open already built and checked on the sample files. Swap in your own exports and see your result.

Early access opens shortly. Check back soon.

Workflows like this

Decide which pages to keep, update or prune, and find the search terms that spend without converting.

All search and ads templates →