Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a request from a customer to generate a new one use campaign code to anyone who signs up to their newsletter. Is there a way to do this? I couldn't find anything in the docs.
Hi Johan
Use the TeaCommerce.Api.Marketing.Services namespace
DiscountCodeService.Instance.Generate(...)
or you can create your own
new DiscountCode( ruleId, code).Save()
Kind regards
Anders
Nice, thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Creating campaign codes from code
I have a request from a customer to generate a new one use campaign code to anyone who signs up to their newsletter. Is there a way to do this? I couldn't find anything in the docs.
Hi Johan
Use the TeaCommerce.Api.Marketing.Services namespace
DiscountCodeService.Instance.Generate(...)
or you can create your own
new DiscountCode( ruleId, code).Save()
Kind regards
Anders
Nice, thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.