JoonWeb template documentation
This documentation explains the available variables used in JW Email Notification Templates. These variables are dynamically replaced during email generation.
Same object will work for [Order Confirmed, Ordered Cancelled, Ordered Shipped, Ordered Delivered, Abandoned Checkout etc].
Sample JSON Data
{
"invoice_id": "99999",
"order_id": "99999",
"site": {
"name": "Your Site",
"logo": "https://static.joonsite.com/storage/5530/media/2408031352295916.png",
"url": "yoursite.com"
},
"customer": {
"name": "John",
"mobile": "9999999999",
"email": "dummycustomer@gmail.com"
},
"mode": "Credit Card, UPI",
"payment_status": "paid",
"shipping_address": {
"full_name": "John",
"address": "Dummy Address Line 1, India",
"address2": "",
"landmark": "Dummy Landmark",
"city": "New Delhi",
"country": "India",
"state": "delhi",
"countryName": "India",
"stateName": "Delhi",
"pin": 110058,
"mobile": "9999999999",
"email": "dummycustomer@gmail.com"
},
"billing_address": {
"full_name": "John",
"company": "",
"address": "Dummy Address Line 1, India",
"address2": "",
"landmark": "Dummy Landmark",
"city": "New Delhi",
"country": "India",
"state": "delhi",
"countryName": "India",
"stateName": "Delhi",
"pin": 110058,
"email": "dummycustomer@gmail.com"
},
"items": [
{
"title": "Sample Product",
"description": "COLOR:RED",
"qty": 1,
"stock": 0,
"varient": {
"COLOR": "RED"
},
"cover": "https://static.joonsite.com/storage/5530/media/10729_25856-7743.jpg",
"price": "2699.00",
"sale_price": "1999.00",
"status": "pending",
"type": "product"
}
],
"returnAvailable": false,
"returns": [],
"shipping_mode": "",
"ship_data": ["serviceName" => "ShipRocket", "serviceURL" => "https://shiprock.com", "tracking" => "89898988"],
"order_currency": "₹",
"order_total": "1999.00",
"order_due": "0.00",
"price_data": {
"sub_total": 1999,
"tax": "0.00",
"tax_type": "excluded",
"discount": "0",
"shipping": "0.00",
"total": "1999.00",
"refunded": "0.00",
"order_due": "0.00"
},
"status": "confirmed",
"order_date": "2025-03-05 15:21:52",
"updated_on": "2025-03-05 15:21:52",
"created_on": "2025-03-05 15:21:52"
}
Variable | Type | Description |
---|---|---|
invoice_id | string | Unique identifier for the invoice. |
order_id | string | Unique identifier for the order. |
site | object | Information about the website. |
customer | object | Customer’s personal information. |
mode | string | Payment method(s) used (e.g., Credit Card, UPI). |
payment_status | string | Status of the payment (e.g., paid, pending). |
shipping_address | object | Customer’s shipping address details. |
billing_address | object | Customer’s billing address details. |
items | array of object | List of items in the order. |
recover_hash | string | Hash used in recovery link in Abandoned Cart Email |
custom_message | string | Used in Sending Manual Messages to Abandoned Checkout customer |
returnAvailable | boolean | Returns available or not. |
returns | array | Return records (if any). |
shipping_mode | string | Chosen shipping method. |
ship_data | array | Shipping-related metadata (if any). |
order_currency | string | Currency symbol used. |
order_total | string | Total order amount. |
order_due | string | Amount still due. |
price_data | object | Breakdown of pricing info. |
status | string | Current order status (e.g., confirmed). |
order_date | string (datetime) | Order placement date & time. |
updated_on | string (datetime) | Last update time. |
created_on | string (datetime) | Order creation time. |
site
Objectcustomer
Objectshipping_address
& billing_address
Objectsitems
ArrayEach item represents a product in the order:
price_data
Objectship_data
Object