Try our conversational search powered by Generative AI!

Redemption limit per customer not working



We use episerver site to provide Web API services.

Redemption limit per customer in promotions is working fine for normal site, but not working in service sites.

Is there any workaround to resolve the issue.Kindly help.

Thanks in advance

May 27, 2019 17:17

Redemption per user only works for logged in user. Can you check if the user is properly logged in?

May 27, 2019 17:26

Thanks Quan. Site is in drupal, we only provide services. Is there any workaround to fix this issue?


Edited, May 27, 2019 17:52

It's by design, and quite logical if you think about it. How do you verify that you only make 1 purchase per customer if you cannot authenticate the user? :) If the same person goes to another device, you'd be able to make the purchase there.

So it's not really an issue. If you really want this behavior and accept the flaws then I guess you could store it in a cookie somehow, but that solution is not robust enough for a framework, that'll have to be a custom implementation you do! :)

May 27, 2019 22:45

Ok, thanks Joel!

May 28, 2019 10:43

This is working for us.

HttpContext.Current.User = new System.Security.Principal.GenericPrincipal(new GenericIdentity(UserName), new string[] { UserType });

Is there any other alternate or can we do this to authenticate user in api site? 


Edited, May 28, 2019 16:33
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.