Order received email template

This template is sent after a customer placed an order requiring a payment confirmation.

This will only occur when the order is placed through an asynchronous payment method (e.g., Paypal Express Checkout).

The template receives:

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

What you can access

Path Type
order Order
order.items[] Item
order.billingAddress Address
order.shippingAddress Address
order.summary Summary
order.summary.taxes[] Tax
order.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",
    "billingAddress": { "fullName": "John Doe" },
    "items": [{ "name": "Geek T-Shirt", "quantity": 2, "totalPrice": 100 }],
    "summary": { "total": 100 }
  }
}

Was this article helpful?