Skip to main content
Question

I am having trouble creating coupons for a period of 1 year from submission.


Forum|alt.badge.img+3

Hello, I have a problem with creating coupons that expire exactly one year after a customer purchases a specific product. I want to generate codes that expire one year after the purchase. The idea is that when a customer buys a specific product, they should receive their unique code in the Post-Purchase Flow, with a validity of one year.

However, when I start creating the codes, I have two options:

  1. Never expire,
  2. Set an expiration date for a specific time on the calendar.

This makes them expire on a set date, but I want them to expire exactly one year after being received by the customer.

Can anyone explain how this can be done, or if it’s not possible? I’ve read all the available articles on this topic and see that some people have done it, but it seems this was done a while ago because I only have these two options: never expire or expire on a specific calendar date, which makes them expire on a fixed date rather than a period of time after being received.

Did this topic or the replies in the thread help you find an answer to your question?

5 replies

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 920 replies
  • February 11, 2025

Hi ​@Nikolay, first of all, welcome to the community!
I’m not sure what platform you’re on, but if you’re on Shopify for example, you can create a unique coupon code that expires from the time the coupon code is generated (at send time from your Post Purchase Flow message), and set it to be 365 days (1 year).

See here:

 

You can follow these instruction's to set this up and how to use it in your email template:

 


Forum|alt.badge.img+3
  • Author
  • Contributor I
  • 1 reply
  • February 11, 2025

Hello, ​@retention ! The platform is WooCommerce. I will also send you two pictures so you can see the options I have when trying to do it from Klaviyo through WooCommerce and directly from Klaviyo. I don’t have that option on my end :(

 


Christiannoerbjerg
Expert Problem Solver II
Forum|alt.badge.img+12

Hi ​@Nikolay 

Thank you for posting in the Community!

I would follow this article: https://help.klaviyo.com/hc/en-us/articles/22168739689627

Hope that helps or else let me know! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov


Byrne C
Community Manager
Forum|alt.badge.img+10
  • Community Manager
  • 75 replies
  • February 12, 2025

Hi ​@Nikolay,

If you create a WooCommerce coupon in Klaviyo, you should be able to have them expire after a certain number of days, like your first screenshot shows! Were you looking to create a coupon through a different method, or seeing errors when trying to set them to expire after a year?

Let me know, and I’ll see what’s going on.

-Byrne


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+13
  • Problem Solver IV
  • 184 replies
  • February 12, 2025

Hello ​@Nikolay , 

Klaviyo’s built-in coupon expiration only allows fixed calendar dates, not dynamic expirations per recipient. A workaround is to create a static coupon code and use Klaviyo’s flow filters to control when customers receive it.

For a true one-year expiration per purchase, you’ll need a third-party app like Shopify Scripts (if on Plus), Bulk Discount Code Generator, or a custom API solution to generate unique codes with dynamic expiration dates. Let me know if you need help setting this up!