{"__v":42,"_id":"5647785436961e0d005c6278","category":{"__v":12,"_id":"556f6216ebba950d008e94e6","pages":["556f6a29fc3aa80d00e1ac1a","556f6a58ebba950d008e9514","556f6a67ebba950d008e9516","556f6aee9893290d00988caa","556f76669893290d00988cf8","5581e3cc8625220d00429ec0","5583149fea39a9390022436a","5584a55bbb43b42300f11c78","5592041c5248431900977161","5631081d242cda1900198b50","5647785436961e0d005c6278","56c1f006d9e8a90d00f8890f"],"project":"555e500957fe0a0d00c8f1e7","version":"555e500957fe0a0d00c8f1ea","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-03T20:22:46.897Z","from_sync":false,"order":6,"slug":"advanced-setup","title":"Advanced Customization & Integrations"},"parentDoc":null,"project":"555e500957fe0a0d00c8f1e7","user":"556fa84e6ad2991900b0486d","version":{"__v":13,"_id":"555e500957fe0a0d00c8f1ea","project":"555e500957fe0a0d00c8f1e7","createdAt":"2015-05-21T21:37:13.474Z","releaseDate":"2015-05-21T21:37:13.474Z","categories":["555e500957fe0a0d00c8f1eb","555e5fcedf54680d001800db","555e60d7df54680d001800fb","555e6766df54680d00180118","556f4d5debba950d008e9462","556f60959893290d00988c5b","556f6216ebba950d008e94e6","556f6b2aebba950d008e951a","556f71b6fc3aa80d00e1ac55","5570a30bcc189a21001ab44c","56ba3656ce5d540d00e2d789","56bce73a3ad5140d00055345","592874f7bdc27e1b00e571b1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-14T18:07:16.622Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":true,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Liquid\"\n}\n[/block]\nOur email templates use **Liquid** templating. You can read a brief introduction to the markup at **https://github.com/Shopify/liquid/wiki/Liquid-for-Designers**.\n\nThere are two drops available, `payment` and `campaign`. You can call the methods below like `{{ payment.fullname }}`\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Required variables\"\n}\n[/block]\nTo ensure that your customers have enough information about their payment to receive support from the Tilt team, the inclusion of the following variables is required in your payment confirmation emails.\n\n* ```{{ payment.fullname }}``` - Full name as entered by the user\n* ```{{ payment.date }}``` - Date of purchase, like \"11/14/15\" for November 14th, 2015\n* ```{{ payment.transaction_id }}``` - The Tilt transaction reference # (e.x. \"CON1D3F...\")\n* ```{{ payment.quantity }}``` - The number of items ordered\n* ```{{ payment.total_charged_amount }}``` - The total amount charged to the customer's card\n* ```{{ campaign.billing_statement_text }}``` - The current configured text that will show up on the customer's statement.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Payment variables\"\n}\n[/block]\n**Basic Info**\n\n* ```{{ payment.fullname }}``` -** (required) **Full name as entered by the user\n* ```{{ payment.first_name }}``` - First word of full name\n* ```{{ payment.date }}``` -** (required) **Date of purchase, like \"11/14/15\" for November 14th, 2015\n* ```{{ payment.date_refunded }}``` - Date a given purchase was refunded, like \"11/14/15\" for November 14th, 2015. If payment is not refunded, this will return a blank string.\n* ```{{ payment.transaction_id }}``` -** (required) **The Tilt transaction reference # (e.x. \"CON1D3F...\")\n* ```{{ payment.sharing_url }}``` - The sharing URL as configured in the campaign settings. If referrals are enabled, this will automatically append the ct-referral-code=ABC1 param.\n\n**Payment Info**\n(Note: all monetary amounts are represented in the \"$X,XXX.YY\" format)\n\n* ```{{ payment.quantity }}``` -** (required) **\n* ```{{ payment.total_charged_amount }}``` -** (required) **The total amount charged to the customer's card\n* ```{{ payment.subtotal_amount }}``` - The subtotal for the rewards. Does not include shipping fees, taxes, or promo code discounts.\n* ```{{ payment.reward_title }}``` - The name of the reward\n* ```{{ payment.reward_price }}``` - The current price of the reward\n* ```{{ payment.promo_code_amount }}``` - Total discount applied to the order, as \"-$\". If no discount was applied, will return no value instead of \"-$0.00\".\n* ```{{ payment.shipping_fee_amount }}``` - Total shipping charged to the order. If no shipping was charged, will return no value instead of \"$0.00\"\n* ```{{ payment.tax_amount }}``` - Total tax charged to the order. If no tax was charged, will return no value instead of \"$0.00\"\n* ```{{ payment.tax_rate }}``` - The tax rate used, as a percentage (e.x. \"8.75%\")\n* ```{{ payment.card_last_four }}``` - Last four digits of the card used\n* ```{{ payment.card_type }}``` - \"VISA card\", \"MasterCard\", \"American Express card\", etc.\n\n**Address Info**\n* ```{{ payment.address_one }}```\n* ```{{ payment.address_two }}```\n* ```{{ payment.city }}```\n* ```{{ payment.state }}```\n* ```{{ payment.postal_code }}```\n* ```{{ payment.country }}```\n\n**Custom Options**\n* ```{{ payment.additional_info }}```\n* ```{{ payment.custom_options }}``` - A map of the custom options, with the key as the name of the option and the value as the customer's selection. For example:\n```\n{% if payment.custom_options %}\n\t{% for option in payment.custom_options %}\n\t\t{{ option[0] }}: You selected {{ option[1] }}\n\t{% endfor %}\n{% endif %}\n```\n\n**Flags**\n* ```{{ payment.can_refer? }}``` - If this payment has a referral code and the campaign is currently configured with a referral code amount greater than 0\n* ```{{ payment.has_reward? }}```\n* ```{{ payment.has_address? }}```\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Campaign variables\"\n}\n[/block]\n* ```{{ campaign.name }}``` - Configured name of the campaign\n* ```{{ campaign.pre_tilt? }}``` - If the campaign has tilted. Will be false for non-tilt campaigns.\n* ```{{ campaign.sharing_url }}``` - The sharing URL as configured in the campaign settings. Will not append the referral parameter.\n* ```{{ campaign.billing_statement_text }}``` -** (required) **The current configured text that will show up on the customer's statement.\n* ```{{ campaign.reply_to_email }}``` - The configured support email for your site\n* ```{{ campaign.referral_code_amount }}``` - The current configured per-order referral amount, e.g. $10.00","excerpt":"","slug":"custom-email-variables","type":"basic","title":"Custom Email Variables"}

Custom Email Variables


[block:api-header] { "type": "basic", "title": "Liquid" } [/block] Our email templates use **Liquid** templating. You can read a brief introduction to the markup at **https://github.com/Shopify/liquid/wiki/Liquid-for-Designers**. There are two drops available, `payment` and `campaign`. You can call the methods below like `{{ payment.fullname }}` [block:api-header] { "type": "basic", "title": "Required variables" } [/block] To ensure that your customers have enough information about their payment to receive support from the Tilt team, the inclusion of the following variables is required in your payment confirmation emails. * ```{{ payment.fullname }}``` - Full name as entered by the user * ```{{ payment.date }}``` - Date of purchase, like "11/14/15" for November 14th, 2015 * ```{{ payment.transaction_id }}``` - The Tilt transaction reference # (e.x. "CON1D3F...") * ```{{ payment.quantity }}``` - The number of items ordered * ```{{ payment.total_charged_amount }}``` - The total amount charged to the customer's card * ```{{ campaign.billing_statement_text }}``` - The current configured text that will show up on the customer's statement. [block:api-header] { "type": "basic", "title": "Payment variables" } [/block] **Basic Info** * ```{{ payment.fullname }}``` -** (required) **Full name as entered by the user * ```{{ payment.first_name }}``` - First word of full name * ```{{ payment.date }}``` -** (required) **Date of purchase, like "11/14/15" for November 14th, 2015 * ```{{ payment.date_refunded }}``` - Date a given purchase was refunded, like "11/14/15" for November 14th, 2015. If payment is not refunded, this will return a blank string. * ```{{ payment.transaction_id }}``` -** (required) **The Tilt transaction reference # (e.x. "CON1D3F...") * ```{{ payment.sharing_url }}``` - The sharing URL as configured in the campaign settings. If referrals are enabled, this will automatically append the ct-referral-code=ABC1 param. **Payment Info** (Note: all monetary amounts are represented in the "$X,XXX.YY" format) * ```{{ payment.quantity }}``` -** (required) ** * ```{{ payment.total_charged_amount }}``` -** (required) **The total amount charged to the customer's card * ```{{ payment.subtotal_amount }}``` - The subtotal for the rewards. Does not include shipping fees, taxes, or promo code discounts. * ```{{ payment.reward_title }}``` - The name of the reward * ```{{ payment.reward_price }}``` - The current price of the reward * ```{{ payment.promo_code_amount }}``` - Total discount applied to the order, as "-$". If no discount was applied, will return no value instead of "-$0.00". * ```{{ payment.shipping_fee_amount }}``` - Total shipping charged to the order. If no shipping was charged, will return no value instead of "$0.00" * ```{{ payment.tax_amount }}``` - Total tax charged to the order. If no tax was charged, will return no value instead of "$0.00" * ```{{ payment.tax_rate }}``` - The tax rate used, as a percentage (e.x. "8.75%") * ```{{ payment.card_last_four }}``` - Last four digits of the card used * ```{{ payment.card_type }}``` - "VISA card", "MasterCard", "American Express card", etc. **Address Info** * ```{{ payment.address_one }}``` * ```{{ payment.address_two }}``` * ```{{ payment.city }}``` * ```{{ payment.state }}``` * ```{{ payment.postal_code }}``` * ```{{ payment.country }}``` **Custom Options** * ```{{ payment.additional_info }}``` * ```{{ payment.custom_options }}``` - A map of the custom options, with the key as the name of the option and the value as the customer's selection. For example: ``` {% if payment.custom_options %} {% for option in payment.custom_options %} {{ option[0] }}: You selected {{ option[1] }} {% endfor %} {% endif %} ``` **Flags** * ```{{ payment.can_refer? }}``` - If this payment has a referral code and the campaign is currently configured with a referral code amount greater than 0 * ```{{ payment.has_reward? }}``` * ```{{ payment.has_address? }}``` [block:api-header] { "type": "basic", "title": "Campaign variables" } [/block] * ```{{ campaign.name }}``` - Configured name of the campaign * ```{{ campaign.pre_tilt? }}``` - If the campaign has tilted. Will be false for non-tilt campaigns. * ```{{ campaign.sharing_url }}``` - The sharing URL as configured in the campaign settings. Will not append the referral parameter. * ```{{ campaign.billing_statement_text }}``` -** (required) **The current configured text that will show up on the customer's statement. * ```{{ campaign.reply_to_email }}``` - The configured support email for your site * ```{{ campaign.referral_code_amount }}``` - The current configured per-order referral amount, e.g. $10.00