Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Start here
VTEX Modules: Getting Started
Transactional Emails
Including order variables in email template

In Message Center, within the Templates tab, you will find the transactional email templates sent to your customers.

You can customize all Message Center templates, and there's a number of variables that allow you to dynamically add data to the email.

These variables are JSON properties in the JSON Data field and can be used in the email HTML. Just insert them into double braces using the following format: {{variable}}

Example

JSON Data examples will only appear in templates when you complete the desired action in your store. If you have not transacted an order, recurrence or any other action, JSON Data will appear blank.

Let's say you want to enter the carrier's name in the order sent email.

To do this, go to the order sent template and, in the JSON Data field, look for the courier property.

{"base64":"  ","img":{"width":1202,"height":734,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":58738,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tracks/transactional-emails/including-order-variables-in-email-template_1.png"}}

The value entered for this property is just an example, but you can use it in the HTML field so that when the email is sent, the customer will see the carrier actually responsible for delivering the order.

Note that the courier property is inside the package object. Therefore, you need to enter it as follows:

{{package.courier}}

{"base64":"  ","img":{"width":1199,"height":987,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":114535,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tracks/transactional-emails/including-order-variables-in-email-template_2.png"}}

See that the example value ("Carrier Teste Courier S.A.") was inserted in the preview screen, below the HTML and JSON Data fields.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback