TemplatesOrders and billing

Order receipt email template

An order confirmation with up to three line items and a total.

From
Northwind <[email protected]>
Subject
Your Northwind Supply order NW-10482
Preview text
Your Northwind Supply order NW-10482
Preview of the Order receipt template
receipt.txt
Your {{merchantName}} order {{orderNumber}}

Thanks for your order

Order {{orderNumber}}, placed {{orderDate}}. We will email again when it ships.

{{itemName1}}

{{itemPrice1}}

{{itemName2}}

{{itemPrice2}}

{{itemName3}}

{{itemPrice3}}

Total

{{orderTotal}}

View your order [{{actionUrl}}]

{{footerNote}}

Shown with sample values. The HTML and plain-text tabs keep the placeholders.

About

When to send it

Send it when an order is placed. It shows the order number and date, lists up to three items with their prices above a total, links to the order, and says another email will follow when it ships.

13 values to fill

What each send fills in

Required values have to come with every send. The rest fall back to the default shown here.

PlaceholderKindRequiredDefault
{{merchantName}}TextRequiredNone
{{orderNumber}}TextRequiredNone
{{orderDate}}TextRequiredNone
{{itemName1}}TextRequiredNone
{{itemPrice1}}TextRequiredNone
{{itemName2}}TextOptionalNone
{{itemPrice2}}TextOptionalNone
{{itemName3}}TextOptionalNone
{{itemPrice3}}TextOptionalNone
{{orderTotal}}TextRequiredNone
{{actionUrl}}LinkRequiredNone
{{footerNote}}TextOptionalYou are receiving this because you placed an order.
{{unsubscribeUrl}}LinkOptionalNone

API

Send it from your code

Create a template from this design once, then send it with the values for each message.

import { init, nextmail } from '@nextmail/sdk' init({ apiKey: process.env.NEXTMAIL_API_KEY }) await nextmail.templates.create({  name: 'Order receipt',  slug: 'receipt',  starter: 'receipt',  publish: true,}) const sent = await nextmail.templates.send('receipt', {  from: 'Northwind <[email protected]>',  to: '[email protected]',  props: {    merchantName: 'Northwind Supply',    orderNumber: 'NW-10482',    orderDate: '30 September 2026',    itemName1: 'Linen overshirt',    itemPrice1: '£68.00',    itemName2: 'Canvas tote',    itemPrice2: '£22.00',    itemName3: 'Wool socks, two pairs',    itemPrice3: '£14.00',    orderTotal: '£104.00',    actionUrl: 'https://example.com/orders/NW-10482',  },}) console.log(sent.id, sent.status)

Orders and billing

More templates like this

Preview of the Order shipped template

Order shipped

A shipping notice with the order number, carrier and delivery estimate in a details table.

6 styles
Preview of the Shipping update template

Shipping update

A dispatch notice with the carrier, a tracking number set in mono and the delivery address.

6 styles
Preview of the Payment receipt template

Payment receipt

A receipt with the amount charged, what it was for, the card used and a link to the invoice.

6 styles
Preview of the Invoice template

Invoice

An invoice notice with the number, issue date, due date and amount due.

6 styles

Start from one

Pick a design, change anything,
and send it from your code.

Every template opens in the editor as blocks you can move, restyle or delete, and sends through the API with the values filled in.