Skip to main content
All CollectionsMisc Utilities
Email Template Variables
Email Template Variables

In this article we learn what all variables are passed to nector email template

Updated over a week ago

This article assumes you have read and enabled the emails, please refer this article for more info: https://intercom.help/nector/en/articles/8547681-emails

Various email events on nector

Some of the common emails fired from nector

  • When customer is created or updated - lead_create and lead_update

  • When coupon is created or updated - coupon_create and coupon_update

  • When order is created or updated - order_create and order_update

  • When wallet transaction is created or updated - walletreward_create and wallettrasaction_update

  • When review is created or updated - review_create and review_update

A few other emails fired from nector

  • When review request is being sent after the order is placed - reviewrequest_create

  • When incomplete referral nudge is being sent to the referee - incompletereferralrequest_create

  • When unused coupon nudge is being sent - unusedcouponrequest_create

  • When unused coin nudge is being sent - unusedwalletcoinrequest_create

  • When coin expiry nudge is being sent - coinexpirynotify_create

  • When notify nudge is being sent to referee by referer - refereenotify_create

Common email variables sent on every email event

business_name: "name of the business (string)",
business_uri: "website url of the business (string)",
nector_business_uri: "website url of the business (string)",
business_coin_name: "coin name (string)",
business_currency_code: "currency code (string)",
business_currency_symbol: "currency symbol (string)",
user_customer_id: "user's customer id on host platform (string)",
user_name: "user's name (string)",
user_email: "user's email (string)",
user_mobile: "user's mobile (string)",
user_tier: "user's tier (string)",
user_type: "user's type (string)",
user_referral_code: "referral code of the user (string)",
user_referred_by_referral_code: "referral code of the customer who referred this customer (string)",
user_referral_link: "referral link of the customer (string)",
user_new_referral_link: "referral link of the customer (string)",
user_available_balance: "coin balance of the user (number)",
user_balance: "coin balance of the user (number)",
user_dob: "dob of the user in DD-MM format (string)",
user_full_dob: "dob of the user in DD-MM-YYYY format (string)",
user_gender: "user's gender (string)",
user_country: "user's country (string)",
user_transaction_amount: "total order amount (number)",
user_transaction_count: "total order count(number)",
user_discount_amount: "total discount amount (number)",
user_discount_count: "total discount count (number)",
user_aov: "user's average order value (number)"

Extra email variables specific to lead_create, lead_update

There are no extra properties for these 2 email events

Extra email variables specific to coupon_create, coupon_update, and unusedcouponrequest_create

coupon_name:'1% Off',
coupon_description: '',
coupon_value: 'TENOFF',
coupon_new_fiat_value: 10,
coupon_fiat_target: 'cart',
coupon_fiat_class: 'amount',
coupon_minimumcart_amount: 0,
coupon_expire: '2023-05-18T06:40:34.898Z',
coupon_formatted_expire: 'June 2nd 2023, 6:40:33 am',
coupon_redirect_link: 'https://nector-dev-store-99.myshopify.com/discount/TWOOFFVERYGOOD?utm_source=nector&utm_medium=email&utm_campaign=transactional',
coupon_created_at: '2023-05-18T06:40:34.898Z'

Extra email variables specific to walletreward_create, wallettrasaction_update, and unusedwalletcoinrequest_create

wallettransaction_title: 'Test',
wallettransaction_description:'',
wallettransaction_amount: 10,
wallettransaction_closing_balance: 10,
wallettransaction_consolidated_cr: 100,
wallettransaction_consolidated_dr: 90,
wallettransaction_type: 'reward',
wallettransaction_status: 'success',
wallettransaction_created_at: '2023-05-18T06:40:34.898Z'

Extra email variables specific to review_create, review_update

review_name: 'Ayush',
review_title: 'Very Good',
review_rating: 4,
review_description: 'I Like the Product',
review_created_at: '2023-05-18T06:40:34.898Z'

Extra email variables specific to order_create, order_update

order_name: '#1028',
order_date: '2023-05-18T06:40:34.898Z',
order_amount: 100,
order_discount: 0,
order_redirect_link: 'https://nector-dev-store-1.myshopify.com/74023928101/orders/6792fa1820a88c90c85fc12339ec7be0/authenticate?key=100a341ee60cf741d98714cca1e245ea&utm_source=nector&utm_medium=email&utm_campaign=transactional',
order_currency_code: 'usd',
order_currency_symbol: '$',
order_status: 'pending',
order_financial_status: 'pending',
order_delivery_status: 'pending',
order_created_at: '2023-05-18T06:40:34.898Z'

Extra email variables specific to reviewrequest_create

order_name: '#1028',
order_date: '2023-05-18T06:40:34.898Z',
order_amount: 100,
order_discount: 0,
order_redirect_link: 'https://nector-dev-store-1.myshopify.com/74023928101/orders/6792fa1820a88c90c85fc12339ec7be0/authenticate?key=100a341ee60cf741d98714cca1e245ea&utm_source=nector&utm_medium=email&utm_campaign=transactional',
order_review_link: "https://reviewcollect.nector.io?order_id=dbd690280a6",
order_currency_code: 'usd',
order_currency_symbol: '$',
order_status: 'pending',
order_financial_status: 'pending',
order_delivery_status: 'pending',
order_created_at: '2023-05-18T06:40:34.898Z'

Extra email variables specific to refereenotify_create, incompletereferralrequest_create

coupon_name:'1% Off',
coupon_description: '',
coupon_value: 'TENOFF',
coupon_new_fiat_value: 10,
coupon_fiat_target: 'cart',
coupon_fiat_class: 'amount',
coupon_minimumcart_amount: 0,
coupon_expire: '2023-05-18T06:40:34.898Z',
coupon_formatted_expire: 'June 2nd 2023, 6:40:33 am',
coupon_redirect_link: 'https://nector-dev-store-99.myshopify.com/discount/TWOOFFVERYGOOD?utm_source=nector&utm_medium=email&utm_campaign=transactional',
referred_by_name: 'Yashas',
referred_to_name: 'Ayush',
coupon_created_at: '2023-05-18T06:40:34.898Z'

Extra email variables specific to coinexpirynotify_create

wallet_expiry_unit: "month", // values: month, week, day
wallet_expiry_amount: 500,
wallet_expiry_notify_generated_on: "2023-04-26T11:23:07.692Z",
wallet_expiry_estimated_on: "2023-04-26T11:23:07.692Z",
wallet_expiry_formatted_estimated_on: "June 2nd 2023, 6:40:33 am"

Did this answer your question?