This reference document lists all the Liquid variables that are available for Salesforce Commerce Cloud transactional email campaigns.
Variable requirement
You need to use the variable, ##{{ data }}
, to access the customer and order objects for your transactional email sends.
Here is a list of transactional emails you can customise by using a triggered campaign for it:
Account creation campaign ID
Account edited campaign ID
Password change request campaign ID
Password changed campaign ID
Order confirmation campaign ID
Shipping confirmation campaign ID
Customer account variables
Customer account variables are available for some notification types:
Account creation
Account edited
Password change
Variable | Details |
| Customer first name. |
| Customer last name. |
| Customer email. |
| Login URL to access a customer account. |
Password change request variables
Available for password change request notifications:
Variable | Details |
| Customer first name. |
| Customer last name. |
| Customer email. |
| Reset password URL that contains a dynamic token. |
Order data variables
Order data variables are available for some notification types:
Order confirmation
Shipping confirmation
You need to use the liquid variable ##{{ data }}
to access the order
object in context of the transactional email send.
Order data
Variable | Details |
| Returns if the order is able to ship. |
| Returns multi shipping. |
| Returns the order number. |
| Returns the total price of the order. |
| Returns the date the order was created. |
| Returns the email address that’s used for the order. |
| Returns the quantity of products the customer orders. |
Order totals
Variable | Details |
| Returns the subtotal of the order. |
| Returns the total shipping cost of the order. |
| Return the grand total of the order. |
| Returns the total of the order and includes the tax. |
| Returns the order discount at the total level. |
| Returns the order total discount as formatted. |
| Returns the shipping total discount at the total level. |
| Returns the shipping total discount as formatted. |
| Returns the total after a discount is applied. |
| Returns the total after a discount is applied in HTML format. |
Order steps
Variable | Details |
|
|
|
|
Order items
Variable | Details |
| Returns an array of items. |
| Returns a universal unique identifier (UUID). For example, |
| Returns the item ID. For example, |
| Returns the product name. For example, |
| Returns the product type. |
| Returns the product brand name. For example, |
| Returns all the images available into an object. |
| Returns an array of all the small images available for the product. |
| Returns a small image description. For example, |
| Returns the item image URL. For example, |
| Returns the title for a small image. For example, |
| Returns the index of a small image. |
| Returns the URL for a small image. For example, |
| Returns the variation attributes for an item. |
| Returns the quantity of items. |
|
|
| Returns a promotional item. |
| Returns a UUID for an item. For example, |
|
|
| Returns the total price of the items. |
| Returns the total price in rendered format. For example, |
| Returns an array of all options selected. |
| Returns a display name for an item. For example, |
| Returns the ID of the option. For example, |
| Returns a select value ID. For example, |
| Returns any bonus product line item UUIDs. |
| Returns the preorder UUID. |
| Returns any bonus products in the order. |
| Returns the total quantity of items ordered. |
Order billing address
Variable | Details |
| Return the order billing address object. |
| Returns the order billing address first name of the customer. |
| Returns the order billing address last name of the customer. |
| Returns the first line of the order billing address. |
| Returns the second line of the order billing address. |
| Returns the order billing address city. |
| Returns the order billing address phone number. |
| Returns the order billing address postal code. |
| Returns the order billing address state code. For example, |
| Returns the order billing address country code. For example, |
| Returns the order billing address country code value. For example, |
| Returns the order billing address salutation. |
| Returns the order billing address company name. |
Order billing payment methods
Variable | Details |
| Returns an array of applicable payment methods. |
| Returns an applicable payment method ID. For example, |
| Returns an applicable payment method name. For example, |
Order billing payment cards
Variable | Details |
| Returns an array of applicable payment cards. |
| Returns a payment card type. For example, |
| Returns a payment card name. For example, |
Order billing payment instruments
Variable | Details |
| Returns an array of the selected payment instruments. |
| Returns the payment method. For example, |
| Returns the amount. For example, |
| Returns the last four digits of the credit card. For example, |
| Returns the name of the credit card owner. For example, |
| Returns the expiration date of the credit card. For example, |
| Returns the credit card type. For example, |
| Returns the masked credit card number. For example, |
| Returns the expiration month of the credit card. For example, March is |
Order billing matching address ID
Variable | Details |
| Returns the order billing matching address ID. For example, |
Order shipping
Variable | Details |
| Returns an array of all the shipments for this order. |
| Returns an order shipping UUID. For example, |
Order shipping product line items
Variable | Details |
| Returns array of the items included in this shipment. |
| Returns the UUID. For example, |
| Returns the product ID. For example, |
| Returns the product name. For example, |
| Returns the product type. For example, |
| Returns the brand name. For example, |
| Returns an array of the small images provided for this product. |
| Returns the small images alternative. For example, |
| Returns the small image URL. For example, |
| Returns the small image title. For example, |
| Returns the index number for a small image. For example, |
| Returns small image URLs for product line items. |
| Returns variation attributes for product line items. |
| Returns the quantity of products. |
|
|
| Returns any product promotions. |
| Returns the order shipping matching address ID. For example, |
| Returns |
| Returns the total price of the products. For example, |
| Returns the total rendered price of the products. For example, |
| Returns all product line options. |
| Returns a product order display option. For example, |
| Returns the option ID for the product order display. For example, |
| Returns the selected option value ID. For example, |
| Returns the bonus product line item UUID. |
| Returns the preorder UUID. |
| Returns the bonus products. |
| Returns the total quantity of items. For example, |
Order shipping applicable shipping methods
Variable | Details |
| Returns an array of the applicable shipping methods. |
| Returns the applicable shipping methods. |
| Returns the applicable shipping method ID. For example, |
| Returns the shipping method display name. For example, |
| Returns a description about the order shipping. For example, |
| Returns the estimated arrival time. For example, |
| Returns the either true or false if the default shipping method is used. For example, |
| Returns the shipping cost. For example, |
| Returns true or false if the applicable shipping method is selected. For example, |
| Returns the shipping method ID. For example, |
| Returns the display name for the shipping method. For example, |
| Returns the shipping method description. For example, |
| Returns the estimated arrival time of the shipment. For example, |
| Returns true or false if the shipping method is the default option. For example, |
| Returns the shipping cost. For example, |
| Returns true or false if the shipping method is selected. For example, |
Order shipping matching address ID
Variable | Details |
| Returns the order shipping matching address ID. For example, |
Order shipping address
Variable | Details |
| Returns the first name of the customer. |
| Returns the last name of the customer. |
| Returns the first line of the shipping address. |
| Returns the second line of the shipping address. |
| Returns the shipping address city. |
| Returns the phone number of the shipping order. |
| Returns the postal code of the shipping address. |
| Returns the state code of the shipping address. For example, |
| Returns the country name of the shipping address. For example, |
| Returns the country code of the shipping address. For example, |
| Returns the salutation for the shipping order. |
| Returns the company name of the shipping address. |
| Returns |
| Returns the included gift message. |