Introduction
Brands always want to keep their customers updated on the orders they place. These order tracking emails help build trust between businesses and customers, as they provide transparency and accountability throughout the order fulfillment process. In this article, we will learn how to send timely updates in real time to customers about their orders. We will consider an order status update where the order has been dispatched and all products belonging to the order will also be posted with it.Expected Result
Users receive an email with the order confirmation:
Define the Payload for the Inform API
The API payload must contain the order status and the details of the products purchased. The payload has a defined structure but you can customize the personalized_attributes as required. Sample PayloadCreate an Inform Alert
In this section, let us create an Inform Alert.Step 1: Alert Details
While you can select any channel available, let us use Email as a channel in this article. For more information on creating an Inform Alert, refer to Create Alert.Step 2: Content
On the Drag and drop editor tab, create the template as required to display the order status and the product details.Order Status and Other Relevant Details
The keys used to define the payload are used here as Jinja attributes:{{order\_status}}, {{order\_id}}, and {{estimated\_delivery\_date}}.

Product Details
After you configure the row with all the details, you can add the condition to reiterate through the products and display each based on the template defined. Select the row and add the condition as displayed here where items is the key within which the array of objects is passed:- Name: Products Purchased
- Description: Products Purchased
- Before: {% for item in items %}
- After: {% endfor %}

Images
- Click the image content block.
- Turn the Dynamic image toggle on.
- Enter the JINJA attribute in the Dynamic Url field.

