Custom costsStarter+

Add costs Shopify does not know about: retainers, commissions, per-order fees and formulas.

Updated 9 October 2026Open in Marginful

On this page

Custom costs cover anything Shopify does not know about: agency retainers, affiliate commissions, marketplace fees, warehouse fees. Open Costs → Custom costs.

Types

TypeAppliedExample
Per orderEach matching orderWarehouse fee of $1.20 per order
Per itemEach unit on matching ordersGift insert at $0.40 per item
% of gross sales, % of net salesEach matching orderMarketplace fee of 15% of gross sales
% of shipping revenue, % of shipping costEach matching orderShipping insurance
% of product revenue, % of collection revenueItems from chosen products or collectionsLicensing royalty
Fixed daily, weekly, monthly, annualSpread over the days of the periodAgency retainer of $2,000 a month
% of total ad spend, % of total ad revenueEach dayAgency fee of 10% of ad spend
% of ad revenue (one channel)Each dayA platform partner's share
Custom formulaEach day, with that day's figuresAny formula over the formula variables

Limit a cost to some orders

Order-level types can apply to every order or only to orders that match. Conditions: order tags, sales channels, discount codes, shipping countries, products and collections. You can also exclude orders by tag. The editor shows how many orders in the last 30 days match.

Example: an influencer earns 12% of sales made with her code. Add a % of net sales cost with the condition Discount codes: ANNA12.

Marketing costs

Turn on Counts as marketing for agency fees, sponsorships and similar costs. These count in Other marketing costs, in CAC and in POAS.

How each type reaches profit

  • Order-level costs reduce each order's contribution.
  • Percentage-of-ad and formula costs reduce contribution profit for the day.
  • Fixed costs reduce net profit only, unless they count as marketing. For today, they count for the part of the day that has passed. See Partial-day proration.

Start and end dates

A cost applies between its start and end date. Deleting a cost removes it from past periods too. To keep history, set an end date instead.

Was this page helpful?

Need help?
Custom costs · Marginful Docs