Skip to main content

List of Variables for Omnisend

The properties Appstle Loyalty sends to Omnisend with each loyalty email event, and what each one holds.

When Omnisend sends your loyalty emails, Appstle Loyalty sends Omnisend one event for each email, for example when a customer earns points. Each event carries properties such as the customer's name, points balance and discount code. This article lists those properties and what each one holds.

To connect Omnisend and turn on the events, see Connect Omnisend to send your loyalty emails.


Use a property in your Omnisend email

In the Omnisend email builder, add a property with a placeholder that starts with event., for example [[event.customer_first_name]]. Type the name exactly as shown: names are case-sensitive. A property that has nothing to show for that email comes out empty, or 0 for a number.


Customer and store

These properties are in every event. In the three referral emails (Send referral invite to new customer and the two Referral Acceptance Confirmation emails), the customer is the one who made the referral.

Property

What it holds

customer_display_name

The customer's full name.

customer_first_name

The customer's first name. In the referral emails, always "there".

customer_last_name

The customer's last name.

customer_token

The customer's referral code, the last part of their referral link.

shop_name

Your store name.

shop_domain

Your store's domain only, for example yourstore.com.


Points, store credit and tier

These properties are in every event. In the two emails that go to a referred friend, Send referral invite to new customer and Referral Acceptance Confirmation for new customer, the balances are 0 and tierName is empty.

Property

What it holds

availablePoints

The customer's points balance, as a number.

availableStoreCredits

The store credit balance, in your store's money format.

points

The points or store credit the email is about, as a number.

tierName

The customer's VIP tier. Empty when they have none.

emailSettingType

Which email this is, as a code such as POINT_EARN.


Rewards, discount codes and links

These properties are in every event, but most of them hold a value only in some emails. The next section shows which.

Property

What it holds

rewardName

The code, reward, tier or message the email is about.

redeemRuleName

The name of the reward.

rewardDiscountCode

The discount code the customer redeemed.

rewardMinimumSpendAmount

The code's minimum order amount, for example $50.

claimNow

The Claim Now Button Text, with its variables filled in.

redirectLink

Where the button takes the customer.


What each email fills in

The properties in the table above, and points, change with the email. This table shows what each email puts in them, and the properties that only that email sends. Any that an email doesn't list are empty, or 0 for points, and redirectLink is your store home page.

claimNow holds your Claim Now Button Text in every email, or a default text where the Content view doesn't show that field. Dates show as year, month, day, for example 2026-11-27.

Email

What it fills in

Point Earn

points: the points earned. ruleName: the name of the way to earn, empty when several apply to one order. rewardName: the message of the way to earn, empty for purchases. redirectLink: the Point Earn Button Redirect URL, when you set one.

Credits Earn

points: the store credit earned, as a number rounded like your points. store_credit: the store credit earned, in your money format. ruleName: the name of the way to earn, empty when several apply to one order. rewardName: the message of the way to earn, empty for purchases.

Point Redeem

points: the points spent. rewardName: the reward's name. rewardDiscountCode: its discount code, empty for a store credit reward.

Reward Available Reminder

rewardName: the discount code, or the reward's message when it has no code. rewardDescription: what the reward gives, for example "$10 off". redeemRuleName: the reward's name. rewardMinimumSpendAmount: the code's minimum order amount; it can show $0 when there is none. redirectLink: the discount link, when there is a code.

Discount Expiring Reminder

rewardName: the discount code. rewardDescription: what the reward gives. expireDate: the date the code expires. rewardMinimumSpendAmount: the code's minimum order amount; it can show $0 when there is none. redirectLink: the discount link.

Birthday

For a discount code, the same as the Discount Expiring Reminder, without expireDate. For points or store credit, rewardName and rewardDescription are the reward's message.

Referral Acceptance Confirmation for new customer, and for existing customer

rewardName: the discount code, empty if the reward comes later. When there is a code, redirectLink is the discount link, and claimNow is "Claim Now:" and the code if your Claim Now Button Text is empty. referralLink: the referral link of the customer who made the referral. In the email for an existing customer, referredEmail is the email address of the friend who accepted.

Send referral invite to new customer

redirectLink and referralLink: the referral link of the customer who sends the invite.

VIP Tier Achieved

rewardName: the tier the customer reached. vip_tier_perk_0 to vip_tier_perk_4: each perk of that tier, up to five.

VIP Tier Expiring Reminder

rewardName: the customer's tier. vipTierExpireDate: the date the tier expires.

VIP Tier Upgrade Reminder

rewardName and nextTierName: the next tier.

Welcome Email

customer_reward_0_code to customer_reward_4_code: each unused discount code the customer has, newest first, up to five.

Account Creation Reminder

redirectLink: your store's account sign-up page.

Points Expiring Reminder

expireDate and pointExpireDate: the date the points are removed.

Monthly Reward Reminder

Only the properties that every email has.


Texts and logo from Email Templates

These properties are in every event. They hold what you set for the email in More → Email Templates: the fields of the Content view, and the Rewards available heading from the Global view.

Property

What it holds

subject

The Subject, with your store name filled in.

heading

The Heading, with its variables filled in.

body_content

The Message, with its variables filled in.

footer

The Footer Text, as you typed it.

claimNowButtonText

The Claim Now Button Text, as you typed it.

showMoreEarnRuleText

The Point Earn Button Text (Point Earn only).

logo_url

The address of the Header image.

logo_height

The Header image width, despite its name.

rewardAvailableHeading

The Rewards available heading.

rewardsAvailable

The same heading as rewardAvailableHeading.


Colors from the Design view

These properties are in every event. They hold the colors you set in the Design view of the email.

Property

Design view setting

templateBackgroundColor

Template Background Color

header_background_color

Heading Background Color

header_text_color

Heading Text Color

text_color

Content Text Color

footer_background_color

Footer Background Color

footer_text_color

Footer Text Color

footer_link_color

Footer Link Color

claimNowButtonBackgroundColor

Button Background Color

claimNowButtonTextColor

Button Text Color

claimNowButtonBorderColor

Button Border Color (older email layout only)

rewardsAvailableHeadingColor

More Ways to Earn/Redeem Heading Color


Properties sent only in some cases

These properties are sent only when the setting or case in the table applies. The reward properties need Show redeem rules? and the earn rule properties need Show earn rules?, both in the Global view. The points label needs Show Available Points Label in the Content view (Show Available Store Credits Label in Credits Earn). It is not sent for an order whose points or store credit are still pending.

The lists hold your active rewards and ways to earn that are open to the customer, in the order of your lists, up to five of each. The number in a name starts at 0, so the first reward is reward_result_summary_0_note.

Property

What it holds

showRedeemRules

True when Show redeem rules? is on.

reward_result_summary_0_note to reward_result_summary_4_note

The name of each reward.

reward_result_summary_0_discount to reward_result_summary_4_discount

What each reward gives, for example "$10 off".

reward_result_summary_0_minSpendAmount to reward_result_summary_4_minSpendAmount

The minimum order amount of each reward, $0 when it has none.

reward_result_summary_0_iconUrl to reward_result_summary_4_iconUrl

The icon address of each reward.

showEarnRules

True when Show earn rules? is on.

earnRulesAvailableText

The Earn rules available heading from the Global view.

earn_rule_summary_0_ruleName to earn_rule_summary_4_ruleName

The name of each way to earn.

earn_rule_summary_0_description to earn_rule_summary_4_description

What each way to earn gives.

earn_rule_summary_0_iconUrl to earn_rule_summary_4_iconUrl

The icon address of each way to earn.

earn_activity_0_note to earn_activity_4_note

Point Earn and Credits Earn, when several ways to earn apply to one order: the message of each one.

showAvailablePoints

True when Show Available Points Label is on.

available_points_label

That label's text, with its variables filled in.

pointExpireDate

The date the customer's points expire, when points expiry is on. Not sent in the two emails that go to a referred friend.


Things to know

  • Appstle also keeps availablePoints, availableStoreCredits and dob (the birthday) up to date on the customer's Omnisend contact, if the contact already exists. There, the store credit balance is a plain number, such as 12.5.

  • The values are filled in when Appstle sends the event. A balance is the balance at that moment.

  • Test Email in More → Email Templates sends the event with sample values, such as the name John Doe and 100 points, so your Omnisend email shows those instead of a real customer's.

  • Omnisend doesn't receive your Unsubscribe Text, or whether Enable RTL (Right-to-left) is on.

  • These properties are for loyalty emails. For the variables that Appstle's own emails use, and the codes that emailSettingType holds, see Use variables in your loyalty emails.


FAQs

A property is empty in my Omnisend email. Why?

Check these causes:

  • The email doesn't fill that property. Check the table under What each email fills in.

  • The setting behind it is empty or off. The list properties need Show redeem rules? or Show earn rules? to be on, also in the Monthly Reward Reminder, whose Appstle email lists rewards without it.

  • The email goes to a referred friend. Those emails carry no balances, tier or dates, and customer_first_name is "there" in all three referral emails.

  • The capital letters are different. [[event.tierName]] works and [[event.tiername]] doesn't.

Did this answer your question?