Skip to content
Workflow · Stock and products · Opening soon

Product profitability after fees

See product profit after cost of goods, discounts, shipping and payment fees. Match your Shopify products, orders, and line items exports to calculate margin by product.

Early access opens shortly. Check back soon.

Someone typed

“match the shopify products export to the orders and line items, split shipping and payment fees by each line’s share of net line sales, then show profit by product with cogs, discounts, fees, and margin”

The agent read it as

Match the Shopify products export to the Shopify orders export and Shopify order line items export, split shipping and payment fees by each line’s share of net line sales, then show profit by product with cogs, discounts, fees, and margin, subtracting allocated shipping from profit.

What the agent built

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

  1. File
    Shopify order line items export
    CSV export · 36 rows
  2. File
    Shopify orders export
    CSV export · 18 rows
  3. File
    Shopify products export
    CSV export · 8 rows
  4. Step
    Make line item match keys
    Step 1
  5. Step
    Make order match key
    Step 2
  6. Step
    Make product match key
    Step 3
  7. Join
    Bring in order fees
    36 of 36 paired
  8. Join
    Match product costs
    36 of 36 paired
  9. Step
    Calculate profit by product
    Step 6
  10. Result
    Product profit
    8 rows
  11. Schedule
    Runs when you say
    Proposed

Checked on the sample files: every step ran, 8 rows came out, and the join paired 36 of 36 rows; the join paired 36 of 36 rows.

What you get back

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

Product profitSample data8 rows
ProductProfit (USD)Margin (%)COGS (USD)Discounts (USD)Allocated shipping (USD)Payment fees (USD)Net line sales (USD)Product SKU
Canvas Tote93.7047.678.301917.507.50197TOT-CVS-01
Ember Mug 14oz93.4350.565.801119.116.65185MUG-EMB-14
Trail Thermos 20oz92.4444.4106.4029.902.626.64208.10THM-TRL-20
Cloud Socks Crew74.4563.128.70210.604.26118SOC-CLD-CR
Field Notebook A551.2849.437.804.2010.384.34103.80NTE-FLD-A5
Herb Seed Pack50.0559.625.20062.7584SED-HRB-01
Desk Lamp Mini32.0722.38624.4019.795.74143.60LMP-DSK-MN
Sky Glass Jar23.4613.2148.8022.1005.64177.90JAR-SKY-08
8 rows in the result. Sample data: illustrative figures, not business results.

How do you work out profit per product after fees?

Export your Shopify products, orders, and order line items. The workflow matches the files, brings in product costs and order fees, then splits shipping and payment fees across line items by net line sales. You get profit by product with COGS, discounts, fees, shipping, and margin.

How it works

How to use the Product profit 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.

Product profit: questions

Which export should you use?
Use the Shopify products export, the Shopify orders export, and the Shopify order line items export. Together they give the product cost, the order totals, and the item level sales needed for the calculation.
What happens to rows that do not match?
Rows that do not match a key stay out of the final matched result for that step. They do not get a product profit value until they can be matched to the other exported rows.
How do you change the rules?
You change the rules by editing the matching keys and the calculation steps in words. For example, you can change which fields identify a product, an order, or a line item, and how fees are split across lines.

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.