Wholesale service charge based on cost

Last updated: September 23, 2026

To charge wholesale customers a service or handling charge that follows what the goods cost you, use a Percentage by cost cart fee, for example 5% of the cart's total Cost per item, with the condition Customer tag is one of wholesale. Ten units that cost you 8.00 each add 4.00; retail customers pay nothing.

The rule in FlexiFees

SettingValue
Fee titleWholesale service charge
ScopeCart fee
Fee typePercentage by cost
Amount5% (example)
Fee limits (optional)min or max if needed
SKUWHOLESALE
ConditionCustomer tag is one of wholesale
FlexiFees fee form with fee type Percentage by cost, 5 percent, as a cart fee FlexiFees condition: customer tag is one of wholesale

Why cost instead of price?

Wholesale prices are often already discounted, so a percentage of the price shrinks with every discount. A percentage of Cost per item stays tied to the value of the goods you ship. If you prefer the selling price, use a Percentage fee with the same condition.

Variants

Good to know

  • Customer tags exist only for logged-in customers; guests never match a positive tag rule.
  • Tag changes can take up to about 3 minutes (cache) plus a cart change to take effect.
  • Products without Cost per item count as 0.
The first cart with a new amount. Calculated fees produce amounts Shopify has not seen before. The first time a new amount appears, Shopify can take a few seconds, occasionally up to about a minute, to accept the fee line; FlexiFees retries automatically and the same amount is instant afterwards.

Related

Questions

Can a fee apply only to wholesale customers?

Yes. Add Customer tag is one of wholesale. Tags exist only for logged-in customers, so guests never match.

Can the fee be based on my cost instead of the selling price?

Yes. Percentage by cost charges a percentage of the Cost per item field; products without a cost count as 0.

Start free trial on Shopify