How to exclude specific customer from discount code

We are running a referral program and will provide a unique referral coupon for each person. So, we want to restrict users to not using their own referral coupons.

E.g: User A’s referral coupon can be used by anyone except User A.

User B’s referral coupon can be used by anyone except User B.

Please suggest how we can achieve this.

Thanks In advance,

3 Likes

I also have the same question. Thanks for any suggestion

1 Like

Same here. When using a discount, e.g. in a draft order because customers have issues on the site and the discount won’t work, I want to prevent that customer from using it again later for new orders. Olaf

I too am interested in knowing if this is possible (exclude customer ID from using a discount code), or how it might be done. We generate discount codes that are used to invite friends with a purchase benefit, but we don’t want the customer that owns one of these discount codes to use it themselves.

Could someone from Shopify let us know:

  • If this is possible

  • How we can do this via the API