Digital download email template

This template is sent after a customer completes an order containing a digital good.

The primary purpose of this email is to provide the customer with their download link.

The template receives:

Variable Type Notes
context string Email, Pdf or Html.
settings object Store settings — see Settings.
order object The order. Note: this template exposes a legacy order object that does not match the typed Order reference used by the other email templates — do not assume the same field shape.
digitalgoods DigitalGood[] The purchased digital goods, each with its download url.

What you can access

Path Type
digitalgoods[] DigitalGood
settings Settings
order object (legacy order — not the typed Order)

Minimal example

{
  "context": "Email",
  "settings": { "businessAddress": { "company": "snipcart.com" } },
  "order": {
    "invoiceNumber": "SNIP-1001",
    "email": "john.doe@example.com"
  },
  "digitalgoods": [
    {
      "name": "An awesome ebook",
      "url": "https://snipcart.com/digital/b60f3bfd-5867-4d04-8b71-50a0735c22f2"
    }
  ]
}

Was this article helpful?