Skip to main content
Solved

How to add dynamic reference data from shopify in klaviyo for billing flow

  • June 12, 2026
  • 1 reply
  • 40 views

Forum|alt.badge.img

I created this, but “shipping cost” and “all products”  how can i fetch.

Subtotal: 
{{ event.extra.line_items.0.line_price }}
Discount: {{ event|lookup:'Total Discounts' }}
Quantity: {{ event|lookup:'Item Count' }}
Total: £ {{ event.extra.customer.total_spent }}


It reads like this:

Subtotal: £ 29.0
Discount: 8.80
Quantity: 2
Total: £ 79.20

Best answer by marika-t

Hi ​@roopesh123shopi - 

The easiest way to find these is directly in the flow/email preview mode - Klaviyo will show you the full event payload with all available properties listed.

 

From there:

  • Click into the variable you want (shipping cost, full product list, etc.) and drop right into your template
  • Preview the email again to confirm the variables are pulling through correctly

 

For reference, here's what those variables look like in my payload - yours might differ slightly depending on your Shopify setup:

  • Full product list: {{ event.Items|default:'' }}
  • Shipping rate: {{ event.extra.current_shipping_price_set.shop_money.amount|default:'' }}

 

This article walks through it in more detail: https://help.klaviyo.com/hc/en-us/articles/115002779071

Hope that helps!

1 reply

marika-t
Problem Solver III
Forum|alt.badge.img+8
  • Problem Solver III
  • Answer
  • June 15, 2026

Hi ​@roopesh123shopi - 

The easiest way to find these is directly in the flow/email preview mode - Klaviyo will show you the full event payload with all available properties listed.

 

From there:

  • Click into the variable you want (shipping cost, full product list, etc.) and drop right into your template
  • Preview the email again to confirm the variables are pulling through correctly

 

For reference, here's what those variables look like in my payload - yours might differ slightly depending on your Shopify setup:

  • Full product list: {{ event.Items|default:'' }}
  • Shipping rate: {{ event.extra.current_shipping_price_set.shop_money.amount|default:'' }}

 

This article walks through it in more detail: https://help.klaviyo.com/hc/en-us/articles/115002779071

Hope that helps!