Skip to main content
Contributor I
December 20, 2021
Solved

Is it possible to generate a barcode for a coupon that lives on the customer record?

  • December 20, 2021
  • 2 replies
  • 675 views

We are restructuring our loyalty program and will be creating automatic coupons to be emailed out on a quarterly basis to loyalty members.  These coupons will have a unique code for each customer based on points accruals and can be used at our brick & mortar as well as e-commerce store. 

Because the coupon code will live as a custom property in the customer profile, does anyone know of a way to generate a barcode in an email from this information? 

    This topic has been closed for replies.
    Best answer by David To

    Hello @Sarah F.,

    Excellent question!

    Is this coupon you’ve generated using Klaviyo’s coupon feature? If so then you can generate a barcode to be used in an email by using the {% barcode_code 'CouponName' height=100 width=200 %} variable. You can learn how to set this up and additional parameters to this feature from the Send Coupons as Barcodes (Email Only) subsection of our Guide to Using Coupon Codes in Klaviyo Help Center article.

    If this coupon code was stored as a custom profile property synced from a third-party source, then I would suggest investigating other third-party services that you may be able to leverage and generate these barcodes from. One thing to also keep in mind is that custom profile properties can only be stored as texts or numbers and does not support images. 

    I hope this helps!

    David

    2 replies

    David To
    Klaviyo Employee
    David ToAnswer
    Klaviyo Employee
    December 21, 2021

    Hello @Sarah F.,

    Excellent question!

    Is this coupon you’ve generated using Klaviyo’s coupon feature? If so then you can generate a barcode to be used in an email by using the {% barcode_code 'CouponName' height=100 width=200 %} variable. You can learn how to set this up and additional parameters to this feature from the Send Coupons as Barcodes (Email Only) subsection of our Guide to Using Coupon Codes in Klaviyo Help Center article.

    If this coupon code was stored as a custom profile property synced from a third-party source, then I would suggest investigating other third-party services that you may be able to leverage and generate these barcodes from. One thing to also keep in mind is that custom profile properties can only be stored as texts or numbers and does not support images. 

    I hope this helps!

    David

    Sarah F.Author
    Contributor I
    December 21, 2021

    @David To 

    Thank you!  This is very helpful.