Tracking numbers email template

We use this template for the email providing customers a tracking number once their order has been shipped. You'll be able to send & assign a tracking number in your dashboard, in the order details screen.

The written message you input in this template will be the one customers see upon receiving their tracking number & shipping confirmation.

The template receives:

Variable Type Notes
context string Email, Pdf or Html.
settings object Store settings — see Settings.
order Order The shipped order.

The tracking number and tracking URL live on the order's shipping information: order.shippingInformation.trackingNumber and order.shippingInformation.trackingUrl — see ShippingInformation.

What you can access

Path Type
order Order
order.shippingInformation ShippingInformation
order.items[] Item
order.billingAddress Address
order.shippingAddress Address
order.summary Summary
order.summary.taxes[] Tax
order.discounts[] Discount
order.customFields[] CustomField
order.refunds[] Refund

Minimal example

{
  "context": "Email",
  "settings": { "businessAddress": { "company": "snipcart.com" } },
  "order": {
    "invoiceNumber": "SNIP-1001",
    "email": "john.doe@example.com",
    "shippingInformation": {
      "method": "Standard shipping",
      "trackingNumber": "TR4CK1NG",
      "trackingUrl": "https://snipcart.com"
    },
    "items": [{ "name": "Geek T-Shirt", "quantity": 2, "totalPrice": 100 }]
  }
}

Was this article helpful?