1. Home
  2. Klaviyo API migration update

Klaviyo API migration update

Contents

Opinew migrated to a new version of the API on the 21st of May 2024 and some changes will be needed to keep the integration running, otherwise, the email content populated by the tags used in the template editor and the actual emails will show as empty, making current flows not work properly.

Update tags

Inside the Opinew-related flows, the event properties used as tags on emails need to be updated, so we need to go through all the emails that use these tags.

To do that we select the email blocks on the flow and then on the right sidebar we select the Edit template button. Once inside the email template editor, we do the following:

Tags for Eligible for Opinew review request emails, replace Old tags with the New ones:

Remove the .items.data part of every old tag (if present).

OldNew
{{ event.items.data.customer_name|default:” }}        {{ event.customer_name|default:” }}
{{ event.items.data.product_image|default:” }}          {{ event.product_image|default:” }}
{{ event.items.data.product_name|default:” }}           {{ event.product_name|default:” }}
{{ event.items.data.review_link|default:” }}               {{ event.review_link|default:” }}
{{ event.items.data.review_request_link|default:” }}  {{ event.review_request_link|default:” }}

Tags for Left a review on Opinew emails, replace Old tags with the New ones:

Remove the .items part of every old tag (if present).

OldNew
{{ event|lookup:’is photo review’|default:” }}      {{ event|lookup:’is photo review’|default:” }}
{{ event.items.link|default:” }}     {{ event.link|default:” }}
{{ event.items.order_id|default:” }}        {{ event.order_id|default:” }}
{{ event.items.review|default:” }}{{ event.review|default:” }}
{{ event.items.review_star_rating|default:” }}           {{ event.review_star_rating|default:” }}
{{ event.items.reviewer|default:” }}{{ event.reviewer|default:” }}
{{ event|lookup:’review star rating’|default:” }}{{ event|lookup:’review star rating’|default:” }}

Also make sure to edit the tags from image blocks, links, buttons and other elements apart from text blocks on the email editor.

All the other functionalities of the integration like coupons, sync profiles, adding profiles to lists, will work as usual. The only thing needed to upgrade is the tags from the emails.

Updated on June 10, 2024
Was this article helpful?

Leave a Comment