Email a Unique Discount Code After a Shopify Purchase
Reward a purchase with a one-time code the customer can only use once. When a paid order includes the product you pick, this workflow creates a unique Shopify discount code for each unit bought, sets it to expire a set number of days after the order, and emails the codes to the customer. No shared codes getting posted online, and no copying codes out of the admin by hand.
How it works
7 steps to send every buyer their own single-use discount code, automatically
Shopify Order Paid (Trigger)
Shopify Order Paid (Trigger)
Filter
Filter
Logic
Logic
Shopify Create Price Rule
Shopify Create Price Rule
Loop
Loop
Shopify Create Price Rule Discount Code
Shopify Create Price Rule Discount Code
Email Send Email
Email Send Email
Ready to send every buyer their own single-use discount code, automatically
Get setup in 7 minutes.
FAQs
Can each code be used only once?
Yes. The price rule sets a usage limit of 1, so each code works for one order and can't be shared around.
Can I give a code for any purchase, not just one product?
Yes. Remove the filter step and use a quantity of 1, so every paid order earns one code.
Can I send the codes by SMS instead of email?
Yes. Swap the email step for an SMS step and send to the phone number on the order.
Personalize this template
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
send every buyer their own single-use discount code, automatically
7 min setup • Fully supported if you need help
