# Find Profit Leaks in Shopify Orders: Refunds, Fees & Margins

> Find where your Shopify store loses money from exports you already download: refunds, orders that lost money after fees and shipping, items sold below cost, unpaid orders. Local, read-only.

Find Profit Leaks in Shopify Orders: Refunds, Fees & Margins is a paid AI agent skill on Agensi by AGI Tools, in E-commerce. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $39 (one-time purchase)
- Creator: [AGI Tools](https://www.agensi.io/creators/agi-tools)
- Category: [E-commerce](https://www.agensi.io/skills/ecommerce)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/find-profit-leaks-in-shopify-orders-refunds-fees-margins
- Tags: ecommerce, finance, shopify, python, audit, profit-margins, refunds, payment-fees

## About this skill

Point it at the Shopify exports you already download and get one report of where your store loses money: refunds (never more than the order total), orders that sold but lost money once product cost, Shopify Payments fees and your shipping label costs are subtracted, products losing money overall, items sold below your unit cost, unpaid orders with ageing, discounts by code and paid orders left unfulfilled. Revenue excludes tax, read from each order's own totals. A missing cost is never estimated: a negative margin is a loss of at least that amount, and a positive margin with a missing cost is marked not confirmed. Every amount stays in its own currency and cites its export row; an export merged twice stops the run instead of doubling. Your files stay on your machine: no connection to Shopify, no API key, and buyer names, e-mails, phones and addresses are never loaded. Checked against Shopify's documented export columns on an invented shop, not yet on a real store's export.

## Requires

- Python 3.9+

## Known limitations

- Reads the Shopify orders export (CSV) and, optionally, the Shopify Payments transactions export plus your own cost and shipping-cost files. Other platforms and other payment providers' fee files are not read.
- Checked against the column names Shopify documents for these exports, on invented example files; not yet confirmed on a real store's export. An unexpected column or value stops the run with a message.
- Only orders that are paid, not canceled and without any refund get a margin: the export does not split a refund into items, shipping and tax. Refunds are reported on their own.
- An order whose Total does not equal Subtotal + Shipping (+ Taxes), for example with tips or duties, gets no margin.
- Fees recorded in a payout currency different from the order currency are not converted and are listed as missing.
- Margins are contribution per order: ads, apps, staff and other overheads are not included. Nothing here is net profit.
- Dates are read only in YYYY-MM-DD form; other forms skip ageing with a note.
- Linux with Python 3.9 to 3.13 verified; Windows and macOS not verified. Not affiliated with or endorsed by Shopify.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Find Profit Leaks in Shopify Orders: Refunds, Fees & Margins skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it connect to my Shopify store?

No. You export the files; it never asks for an API key, token or password and has no network code.

### Is a positive margin my profit?

No. A margin is revenue without tax minus the product cost, payment fees and shipping cost you supplied. Overheads such as ads and apps are not included, and a margin with any missing cost is marked not confirmed.

### Which files do I need?

Only the orders export (Shopify admin > Orders > Export). Add the Shopify Payments transactions export for fees, and your own sku,unit_cost and order,shipping_cost files for costs. Missing files are reported as missing, never estimated.

### I sell in several currencies.

Each currency is reported on its own and nothing is converted.

### What if I merged two exports?

An order that appears twice with its own totals stops the run with a message, so nothing is counted twice.

### Will it change prices or refund anyone?

No. It reads files and writes a report. Next steps are suggestions; every action stays your decision.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
