# Reward Bigger Wholesale Orders With a Subtotal Discount

> Looks at your recent wholesale order sizes, suggests a sensible threshold, then adds a discount when the cart passes it.

- Job: [Pricing & wholesale](https://storeagent.ai/mcp-recipes/job/pricing/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~30 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Wholesale Suite
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/wholesale-subtotal-discount/

## The prompt

```text
List my wholesale customers. Then look at their completed and processing orders from the last 90 days and tell me the average and typical order total. Suggest a cart subtotal threshold a bit above the average, and a discount to go with it. Show me your suggestion and the checkout label you will use, and wait for my OK. Then add the cart subtotal discount for the [wholesale_customer] role.
```

## What happens when you paste it

You: List my wholesale customers…

Assistant: 212 wholesale customers placed 486 orders in 90 days. Average order $640, middle order $510. 22% of orders were over $1,000. Calling: `wholesale-suite/list-wholesale-customers`, `woocommerce/orders-query`, `wholesale-suite/set-cart-subtotal-discount`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: Added a 5% discount for Wholesale Customer when the cart subtotal passes $1,000, shown at checkout as "Bulk order discount".

## Abilities this recipe calls

- **List wholesale customers** (`wholesale-suite/list-wholesale-customers`, read only, from Wholesale Suite): Lists wholesale customers with their role, last order date and lifetime spend.
- **Find orders** (`woocommerce/orders-query`, read only, from WooCommerce): Finds orders by status, customer, email or date, with the items in each order.
- **Set cart subtotal discount** (`wholesale-suite/set-cart-subtotal-discount`, asks first, from Wholesale Suite): Adds, changes or removes a discount when a wholesale cart passes a subtotal.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Use a fixed [$50] off instead of a percentage.
- Only look at customers in the [Gold] role.

## Related recipes

- [Spot Wholesale Prices Below Your Margin](https://storeagent.ai/mcp-recipes/wholesale-margins.md): Checks every wholesale price against retail so nothing sells at a loss after the last price change.
- [Put a Group of Products on Sale](https://storeagent.ai/mcp-recipes/bulk-sale-prices.md): Sets a sale price on every product you name, or that matches a search, and shows the old and new prices before anything changes.
- [Check What a Wholesale Customer Actually Pays](https://storeagent.ai/mcp-recipes/check-customer-wholesale-price.md): Answers "what price does this account see" by comparing the saved wholesale price with the final price after category and role rules.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
