WooCommerce cannot tell you when a particular coupon is used. Its notifications report orders rather than which code was applied, and they cannot be addressed to anyone outside the store. Sending a partner an email each time their code is redeemed takes three pieces: the Coupon Used event from the ShopMagic Customer Coupons add-on, a filter limiting it to that one code, and a Send Email action with the partner’s address as the recipient. Four steps, no code, and the event fires only on completed orders, so nobody is credited for a sale that did not happen.
How to send an email when a coupon is used
You need ShopMagic PRO with the Customer Coupons add-on, about ten minutes, and no code at all. The automation listens for one event, narrows it to a single coupon code with one filter, and sends the message to any address you name, including one outside your store.
The configuration in full, before the explanation:
| Setting | Value |
|---|---|
| Event | Order Coupon Used |
| Filter | Order → Coupon used → matches all → your code |
| Action | Send Email |
| Recipient | The partner’s address, or several separated by commas |
| Requires | ShopMagic PRO with the Customer Coupons add-on |
Three things make this work where the built-in notifications do not. The event knows which coupon was applied. The filter narrows it to one code, so a partner hears about their own sales and nobody else’s. And the recipient field takes any address, which is what lets the notification leave the store at all.
Coupons are near-universal in WooCommerce: WP Desk telemetry from 19,803 stores, collected in August 2026, shows only 18% with coupon codes switched off entirely. Tracking who drove which redemption, though, is still mostly done by opening orders one at a time.
Table of contents
- How to send an email when a coupon is used
- What coupon used email automation is
- Why the default WooCommerce emails fall short
- The event that makes it possible
- Setting it up in four steps
- Other uses for the same automation
- Summary
- Frequently asked questions
What is coupon used email automation in WooCommerce?
An automation that sends an email whenever a specific coupon code appears on a completed order. The store watches for the code; when an order carrying it is completed, a pre-written message goes out to whoever you nominated.
The usual case is commission tracking. A partner has a unique code, earns a share of what it brings in, and needs to know when it is used, as do you. Without automation this means opening orders and checking them by hand, which is both slow and the kind of task where a missed sale turns into an awkward conversation.
Consider a partnership with an influencer or an affiliate who shares the code PARTNER20. Every completed order carrying that code should produce a notification, to the partner, to your accounts team, or to both.
Why WooCommerce’s default emails fall short here
WooCommerce ships with a reasonable set of notifications, and none of them does this job. Four reasons, and each one on its own is enough.
They do not know about coupons. An order email reports an order. There is no built-in check for whether a particular code was applied, so you would be inspecting orders manually, which is the problem you are trying to solve.
They go to customers and admins only. Sending a notification to an external partner based on a coupon is not something the settings screen offers.
They fire at the wrong moment. A new order notification tells you an order exists, not that it was paid for and fulfilled. Crediting a commission on an order that later fails is worse than crediting it late.
They carry nothing useful. There is no way to put the coupon code, the discount amount or the partner’s name into a default email in a form that means anything for tracking.
If you want the wider picture on what can and cannot be changed, see WooCommerce emails and automation workflows.
The event that makes it possible
ShopMagic works on events: something happens in the store, and one or more actions follow. The event needed here comes from the Customer Coupons add-on, included in ShopMagic PRO, which adds coupon-aware events to the list.
The important detail is when it fires. Order Coupon Used triggers when an order carrying the coupon reaches the completed status, not when the code is typed into the cart. A code entered and then abandoned at checkout produces nothing, which is exactly the behaviour commission tracking needs.
This is a PRO feature. The free version of ShopMagic has the automation engine and the email actions, but not the coupon events, so the filter that makes this specific to one code is not available there.
Setting up the automated coupon notification
Step 1: create the coupon
Create the code your partner will share, if it does not exist yet.
- Go to Marketing → Coupons in your WordPress admin.
- Click Add coupon.
- Enter the Coupon code, for example PARTNER20 or AFFILIATEJANE. This exact string is what the automation will look for.
- Add a Description such as “20% discount for Partner X’s customers”, so the purpose is still obvious a year later.
- Set the coupon data: Discount type (percentage, fixed cart or fixed product), Coupon amount, and an expiry date if the campaign has an end.

Under Usage restriction, set any minimum spend, individual-use rule or product and category limits.

Under Usage limits, cap how many times the code can be used overall and per customer.

Click Publish. New to discounting generally? See how coupon strategies work in WooCommerce.
Give each partner their own code. A shared code makes the filter meaningless, since there is no way to tell whose audience produced the order.
Step 2: install ShopMagic PRO and the Customer Coupons add-on
Install the plugin, then activate the add-on.
- Buy and download ShopMagic PRO with the Customer Coupons add-on.
- In WordPress, go to Plugins → Add New.
- Click Upload Plugin, choose the zip file and click Install Now.
- Click Activate Plugin.
- Go to ShopMagic → Add-ons.
- Find Customer Coupons and click Activate.
The coupon events appear in the event list only after the add-on is active, so if the next step offers nothing coupon-related, this is why.
Step 3: build the automation
Create the automation, choose the event, add the filter, add the email action.
Go to ShopMagic → Automations and click Add New Automation.

Name it descriptively, for instance “Notify Partner X on PARTNER20 coupon use”. Automations accumulate, and a list of untitled ones is unmanageable within a year.
Choose the event
Select Order Coupon Used from the Event dropdown. It fires when an order carrying a coupon reaches the completed status, which is what keeps the notification tied to a real, finished sale.

Add the filter
Without a filter the automation fires for every coupon in the store, which means your partner hears about discounts that had nothing to do with them.
- Click Add filter.
- First dropdown: Order → Coupon used.
- Second dropdown: matches all.
- Text field: the exact code from Step 1, for example PARTNER20.

Add the action
- Click Add action and select Send Email.
- Give the action a title, such as “Email Partner X”.
- Recipient: the partner’s address, or several separated by commas.
- Subject: something scannable in a crowded inbox, for example “New order with PARTNER20 – order #{{ order.id }}”.
- Content: the details the partner needs, built from placeholders.
Useful placeholders here:
| Placeholder | Returns |
|---|---|
{{ order.id }} |
Order number |
{{ order.total }} |
Order value |
{{ customer.first_name }} |
Customer’s first name |
{{ customer.last_name }} |
Customer’s last name |
{{ coupon.code }} |
The code used |
{{ coupon.discount_amount }} |
Discount applied |
What to put in the email
Keep it to what the partner needs to reconcile a commission:
- A greeting.
- Confirmation: “A new order (#{{ order.id }}) has been completed using your {{ coupon.code }} coupon.”
- The figures: “Order total: {{ order.total }}”. Customer name only if your arrangement calls for it.
- A closing line.
One caution on customer data. These emails go to someone outside your business, so send the minimum the arrangement requires. An order number and a total are usually enough for a commission; a full name and address rarely are.

Click Publish in the sidebar.

Step 4: test it
Place a real test order with the coupon and confirm the email arrives.
- Add a product to the cart on your storefront.
- Go to checkout and apply the coupon code.
- Complete the order and make sure it reaches Completed status, since the event will not fire otherwise.
- Check the recipient’s inbox for the email, with every placeholder resolved.
Nothing arrived? Check the coupon code in the filter against the real code, character for character, and confirm the order actually reached Completed rather than stopping at Processing. The automation history shows whether it fired at all, which separates a filter problem from a mail delivery problem.
Other uses for the same automation
Once the event and filter are familiar, the same structure covers more than partner tracking.
Internal alerts. Tell your sales or marketing team when a high-value code is redeemed, or when a code from a specific campaign is used, so campaign performance is visible without opening a report.
Unusual activity. A code being redeemed far more often than expected is worth knowing about quickly. This is an early warning rather than fraud prevention, but an early warning is the part most stores lack.
Segmentation. Customers who use a particular code can be tagged for later campaigns. Someone redeeming a first-time-buyer code is a different prospect from someone using a clearance code.
Stock alerts. When a coupon is tied to specific products, a notification to whoever manages inventory gives warning before a promotion empties the shelf.
Summary
WooCommerce has no way to tell you that a particular coupon was used, because its notifications describe orders rather than the codes on them, and they cannot be sent to anyone outside the store. Closing that gap takes three settings: the Order Coupon Used event, a filter matching one specific code, and a Send Email action addressed to the partner. It needs ShopMagic PRO with the Customer Coupons add-on, since the coupon events are not in the free version.
The detail that makes it trustworthy for commissions is the timing: the event fires when the order reaches Completed, so an abandoned checkout with the code typed in produces nothing, and nobody is paid for a sale that did not happen.
Two things to get right at setup. Give every partner their own code, because a shared one makes the filter meaningless. And send the partner the minimum they need, usually an order number and a total, since these emails carry customer data out of your business to a third party.
After publishing, place one real test order and watch for the email. The automation history will tell you whether a silent failure is a wrong code in the filter or an order that never reached Completed.
Unlock coupon-based automations in ShopMagic PRO
Frequently asked questions
How do I send an email when a coupon is used in WooCommerce?
Create a ShopMagic automation with the Order Coupon Used event, add a filter matching your specific coupon code, and add a Send Email action with the recipient you want notified. It needs ShopMagic PRO with the Customer Coupons add-on.
Can I notify affiliates automatically when their coupon is redeemed?
Yes. Give each affiliate a unique code, filter the automation on that code, and put their address in the recipient field. They are then notified of their own redemptions and no one else’s.
Does the event trigger when the coupon is applied in the cart?
No. It fires when an order carrying the coupon reaches the Completed status. A code entered at checkout on an order that is never finished produces no email.
Is coding required?
No. The event, the filter and the action are all configured from the automation screen.
Can I do this in the free version of ShopMagic?
No. The free version has the automation engine and email actions, but the coupon events come with the Customer Coupons add-on in PRO.
Can one automation cover several coupons?
It can, but then every recipient hears about every code in that filter. For separate partners, build one automation per code.
What should the notification contain?
The order number, the total and the code used are usually enough to reconcile a commission. Customer names and addresses go to a third party, so include them only if the arrangement actually requires it.
Why did my test not produce an email?
Most often the order stopped at Processing rather than Completed, or the code in the filter does not match the real one exactly. The automation history distinguishes the two.

