Shopify margin protection

Know a discount is profitable before it goes live

Margin Guard: Profit Alerts checks a discount against your minimum gross margin, reports the prices and discounts that miss the floor, and blocks checkout when a cart line would.

Check, monitor, protect

Every variant is compared with its cost and your margin floor, before a sale, while it runs, and at checkout.

Check a discount first

Enter a percentage or a fixed amount before the sale exists. Each variant is marked safe, below your margin floor, below cost, or not evaluable, and the largest discount it can take is shown.

Watch what is already on

Active discounts and current prices are scored the same way, so a code that is live does not slip past the floor. Missing, zero, and suspiciously low costs are listed so the numbers can be trusted. A discount that cuts too deep can be deactivated from the list.

Stop the cheap order

With checkout protection on, a cart line that would sell below your minimum gross margin is rejected at checkout, using the costs and rules the app keeps in step with your store.

Rules that fit the catalog

Set one minimum gross margin for the store, count shipping and payment fees in the cost, and override it for a product or a collection. A product can also be excluded from the promotion checks.

Alerts by email or Slack

When a new problem is found, such as a discount or price below your floor or a missing cost, get an email, and optionally a Slack message to a webhook you provide. Alerts are part of Pro and Business. A weekly digest email is part of the Business plan.

Exports

Export a Discount Check result or the list of missing costs as CSV on Pro and Business. The Business plan adds JSON for Discount Check results.

How it works

Install, set the floor, and check your first discount.

  1. Install from your Shopify admin

    The app reads products, variants, inventory item costs, collections, and discounts. It does not read orders or customers.

  2. Set your minimum gross margin

    Start with one floor for the store, then add shipping and fee assumptions or overrides for products and collections.

  3. Check, monitor, and protect

    Test a discount before launch, review what is already live, and turn on checkout protection to block lines below the floor.

Pricing

Free covers a small catalog. Pro and Business run on any catalog size and turn on monitoring, alerts, and checkout protection. Billed through Shopify every 30 days.

Free

$0

  • Up to 50 products
  • Check proposed discounts
  • List variants with missing costs
Install free

Business

$49 every 30 days

  • Everything in Pro
  • Multiple margin policies
  • Weekly digest email
  • JSON export
Install on Shopify

Margin Guard: Profit Alerts MCP server

Connect an AI assistant to Margin Guard: Profit Alerts: server URL and install steps for Claude, ChatGPT, Gemini, Grok, Cursor, VS Code, and others, plus the tools it offers.

Read more

Frequently asked questions

What does Margin Guard do?

It compares each variant's cost with your minimum gross margin. You can test a discount before it goes live, see which active discounts and prices miss the floor, and turn on checkout protection so a cart line below the floor is rejected at checkout.

What access does the app need to my store?

It reads products, variants, inventory item costs, collections, and discounts (read_products, read_inventory, read_discounts). It also holds write_products, only to write the variant metafields its checkout function reads; write_validations, to register the checkout validation; and write_discounts, to deactivate a discount when you choose to. It does not request orders or customer data.

Does it change my products or discounts?

It does not edit product titles, prices, or costs. The only data it writes to your store is app metafields: one on each variant and one on the shop (the checkout policy), which the checkout function reads. A discount is deactivated only when you press Deactivate on it. Checkout protection, once you turn it on, rejects cart lines that would sell below your minimum margin.

Does it store customer data?

No. The app does not request customers or orders, so it holds no customer personal data. It stores your catalog mirror, margin rules, and alert settings.

Which discounts can it evaluate?

Percentage discounts, and fixed-amount discounts taken off each item, that apply to the whole catalog or to products or collections. Buy X get Y, free shipping, discounts from other apps, discounts that target specific variants, and fixed-amount discounts that are not per item are marked as not evaluated instead of being given a made-up margin.

How much does it cost?

Free covers up to 50 products. Pro is $19 every 30 days and Business is $49 every 30 days. Both run on any catalog size. Billing goes through Shopify.

What happens to my data when I uninstall?

Uninstalling deletes the store's data from the app's database, including its catalog mirror, rules, alert settings, and sessions. Shopify's shop/redact request deletes it as well.

Check the next discount before it goes live

The app holds no customer data. Uninstalling deletes everything it stored.