You could build the flow to remove the tag after the user uses that discount to stop it being used more than once?
Topic summary
A user asks whether Shopify Flow can automatically generate unique discount codes after a customer purchases a specific product. The desired format would include the buyer’s name plus random characters (e.g., “123-MIKE-456”).
Key Findings:
- Shopify Flow limitation: Native Flow cannot create discount codes directly.
- Third-party solutions offered:
- Mesa app: Can create unique discount codes per order using automation templates. A specific template link is provided for generating codes tied to new customer orders.
- Regios Automatic Discounts app: Suggests using customer tags (e.g., “BoughtProductX”) combined with Flow to trigger automatic discounts. However, this approach does not generate unique codes—it applies a blanket discount to tagged customers.
Trade-offs:
- Unique codes provide one-time use control but may clutter the backend.
- Tag-based automatic discounts are simpler but lack uniqueness and usage limits (customers receive the discount on all future purchases unless the tag is removed).
- One participant suggests removing tags after first use to prevent repeated discounting.
Status: The conversation remains open, with the original poster seeking true code uniqueness, which the automatic discount solution does not fully address.