Hi Kjankko,
Instead of creating a unique discount code per client (which can potentially clutter your backend if you have many), you can use automatic discounts.
For example, here’s how you can give Mike a 10% discount by combining Shopify Flow with my app, Regios Automatic Discounts:
First, create a workflow in Shopify Flow that adds a specific tag (ex. “BoughtProductX”) to a customer, if the order line items contain a specific product. Here’s a screenshot of a demo workflow:
Then, in Regios Automatic Discounts, use the “Customers with specific tags” option to give a 10% discount to all customers who have the “BoughtProductX” tag. Here’s a screenshot of what it looks like to create a discount based on a tag:
Once you’ve turned on your workflow and saved your discount, any customer who buys Product X, will automatically receive a discount on the products you specify.
If you don’t want to use an app, you can create your own discount using Shopify Functions.
If you have any questions, just reply, and I’ll be happy to help you out in this thread.

