Skip to content

Billing and orders

Payment receipt email template.

Confirm a payment with an itemised list, totals and how it was paid.

Look

SubjectYour receipt from Acme

PreviewPayment received: $39.00.

Shown inApple Mail and iPhone Mail switch automatically

The preview uses example data, so no real names or numbers. Mail programs differ: send one to your own inbox before you rely on it.

When to send it

As soon as a payment succeeds, for one-off purchases and for each subscription renewal. People keep receipts, so make this one complete.

Get it right

  • Include the date, the amount, what was bought, and how it was paid (the card brand and last four digits only).
  • List line items with the repeating block so the email works for one item or twenty.
  • Number your receipts, so a customer and your support team can refer to the same one.
  • What a receipt must contain, including tax details, depends on where you sell. Check the rules for your country with an accountant.

Use it in Mailtruss

Choose New template, pick Payment receipt, change the words and colours, and publish. 3,000 emails a month are free, with no credit card.

Variables

Wrap a name in double braces and Mailtruss fills it in when you send. A value after a bar is the fallback when you leave it out, such as {{first_name | there}}. Values are escaped, so a name with markup in it cannot break the message.

VariableWhat it isExampleNeeded?
app_nameYour product or company name.AcmeYes
first_nameThe person's first name. Optional; the email says "there" without it.AnaOptional
receipt_numberYour own reference for this payment.R-20417Yes
paid_atThe date of the payment.16 November 2026Yes
itemsThe lines of the purchase, a list. Each has a description, a quantity and an amount.a list of 2: Pro plan, monthly, Extra seatYes
subtotalThe total before tax, formatted.$39.00Yes
taxThe tax charged, formatted. Optional.$0.00Optional
totalThe amount paid, formatted.$39.00Yes
payment_methodHow it was paid, such as the card brand and last four digits.Visa ending 4242Yes
receipt_urlA link to a printable or online copy. Optional.https://app.example.com/receipts/R-20417Optional
footer_textThe small print at the bottom, such as your company name and postal address. Optional: a short note about why the person got this email is used when you leave it out.Acme Inc, 1 Main Street, SpringfieldOptional

Create it and send it

Create the template from this starter with one request (or from the dashboard), then send it by its alias with your values. Only the published version is ever sent. Other languages are on send email by language.

Create the template
curl -X POST https://mailtruss.com/api/v1/templates \
-H "Authorization: Bearer $MAILTRUSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "starter": "receipt", "look": "paper", "alias": "receipt", "publish": true }'
send.ts
import { MailClient } from "mailtruss";
​
const mail = new MailClient({ apiKey: process.env.MAILTRUSS_API_KEY! });
​
await mail.emails.send(
{
from: "Acme <hello@yourdomain.com>",
to: "person@example.com",
template: {
id: "receipt", // the alias you gave the template
variables: {
app_name: "Acme",
receipt_number: "R-20417",
paid_at: "16 November 2026",
items: [{"description":"Pro plan, monthly","quantity":"1","amount":"$29.00"},{"description":"Extra seat","quantity":"2","amount":"$10.00"}],
subtotal: "$39.00",
total: "$39.00",
payment_method: "Visa ending 4242",
},
},
},
{ idempotencyKey: "receipt-<your-event-id>" }, // makes retries safe
);

A list such as items repeats its rows once for each entry, up to 100. Each entry is an object with the fields shown in the example. The sending guide has the full rules.

The HTML and the text

This is exactly what the starter produces. Copy it into any system that sends HTML, or use it in Mailtruss to keep editing visually.

receipt.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<style>@media only screen and (max-width:520px){.mt-card{width:100%!important;border-radius:0!important}.mt-px{padding-left:22px!important;padding-right:22px!important}.mt-col{display:block!important;width:100%!important;padding:0 0 18px 0!important}.mt-hero,.mt-section{padding:24px 20px!important}.mt-title{font-size:26px!important}}@media (prefers-color-scheme:dark){.mt-pagebg,.mt-page{background:#0e0f12!important}.mt-card{background:#17181c!important;border-color:#2b2d34!important}.mt-title,.mt-subtitle,.mt-heading,.mt-value,.mt-quote{color:#f1f1f4!important}.mt-text,.mt-li,.mt-list{color:#cfd0d8!important}.mt-label,.mt-small,.mt-footer,.mt-unsub,.mt-footer a{color:#9b9da8!important}.mt-rule{border-color:#2b2d34!important}.mt-tone-tint,.mt-tone-card{background:#21232a!important;border-color:#2b2d34!important}.mt-tone-tint .mt-title,.mt-tone-card .mt-title{color:#f1f1f4!important}.mt-code,.mt-codeblock,.mt-linkbox{background:#111216!important;color:#f1f1f4!important}.mt-inline-code{background:#21232a!important;color:#f1f1f4!important}.mt-link{color:#a9806c!important}.mt-brandtext{color:#a9806c!important}.mt-btncell{background:#f1f1f4!important;border-color:#f1f1f4!important}.mt-button{color:#111214!important}.mt-ghost{background:transparent!important;border-color:#a9806c!important}.mt-ghost .mt-button{color:#a9806c!important}.mt-badge-neutral{background:#21232a!important;color:#f1f1f4!important}.mt-mark,.mt-stepnum{background:#f1f1f4!important;color:#111214!important}.mt-markdot{background:#111214!important}.mt-tone-accent,.mt-tone-dark{border:1px solid #2b2d34!important}.mt-co-info{background:#1f2b44!important;color:#c8d7f3!important}.mt-co-success{background:#192f23!important;color:#c0dbc8!important}.mt-co-warning{background:#3a2d1d!important;color:#ebd9c0!important}.mt-co-danger{background:#3c1e1f!important;color:#edc6c4!important}}</style>
</head>
<body class="mt-page" style="margin:0;padding:0;background:#efe8da">
<div style="display:none;max-height:0;overflow:hidden;opacity:0;color:transparent;mso-hide:all">Payment received: {{total}}.&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;</div>
<table class="mt-pagebg" role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#efe8da">
<tr>
<td align="center" style="padding:32px 12px">
<table class="mt-card" role="presentation" width="580" cellpadding="0" cellspacing="0" style="width:100%;max-width:580px;background:#fffdf8;border-radius:4px;border:1px solid #e1d6c2;border-collapse:separate">
<tr>
<td style="height:41px;line-height:1px;font-size:1px">&nbsp;</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 22px">
<div class="mt-brandtext" style="font-family:Georgia,'Times New Roman',Times,serif;font-size:17px;font-weight:700;letter-spacing:-0.2px;color:#7a3b1d;text-align:left">{{app_name | Your app}}</div>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 8px">
<h1 class="mt-title" style="margin:0;font-family:Georgia,'Times New Roman',Times,serif;font-size:32px;font-weight:700;line-height:114%;letter-spacing:-0.5px;text-decoration:none;color:#2b2118;text-align:left">Thanks for your payment</h1>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 0px">
<p class="mt-text" style="margin:0 0 14px;font-family:Georgia,'Times New Roman',Times,serif;font-size:16px;font-weight:400;line-height:170%;letter-spacing:0px;text-decoration:none;color:#3a2e22;text-align:left">Hi {{first_name | there}}, we received your payment. Here are the details.</p>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 14px">
<div style="text-align:left">
<span class="mt-badge mt-badge-success" style="display:inline-block;padding:5px 12px;border-radius:999px;background:#edf7ef;color:#14471f;font-family:Georgia,'Times New Roman',Times,serif;font-size:12px;font-weight:700;letter-spacing:0.6px;text-transform:uppercase;line-height:1.2">Paid</span>
</div>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 22px">
<div class="mt-stat" style="text-align:left;font-family:Georgia,'Times New Roman',Times,serif">
<div class="mt-label" style="font-size:12px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#736c64">Amount paid</div>
<div class="mt-value" style="margin:4px 0 0;font-size:30px;font-weight:700;line-height:118%;letter-spacing:-0.8px;color:#2b2118">{{total}}</div>
<div class="mt-label" style="margin:4px 0 0;font-size:13px;color:#736c64">{{paid_at}}</div>
</div>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 14px">
<table class="mt-table" role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mt-label" style="padding:11px 0;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#736c64;text-align:left">Receipt</td>
<td class="mt-value" align="right" style="padding:11px 0;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#2b2118;text-align:right">{{receipt_number}}</td>
</tr>
<tr>
<td class="mt-label mt-rule" style="padding:11px 0;border-top:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#736c64;text-align:left">Paid with</td>
<td class="mt-value mt-rule" align="right" style="padding:11px 0;border-top:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#2b2118;text-align:right">{{payment_method}}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 14px">
<table class="mt-items" role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mt-rule mt-label" align="left" style="padding:0 0 9px;border-bottom:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:11.5px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#736c64;text-align:left">Description</td>
<td class="mt-rule mt-label" align="center" style="padding:0 0 9px;border-bottom:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:11.5px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#736c64;text-align:center">Qty</td>
<td class="mt-rule mt-label" align="right" style="padding:0 0 9px;border-bottom:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:11.5px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#736c64;text-align:right">Amount</td>
</tr>
{{#each items}}
<tr>
<td class="mt-rule mt-value" align="left" style="padding:12px 0;border-bottom:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;line-height:140%;color:#2b2118;text-align:left">{{description}}</td>
<td class="mt-rule mt-value" align="center" style="padding:12px 0;border-bottom:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;line-height:140%;color:#2b2118;text-align:center">{{quantity}}</td>
<td class="mt-rule mt-value" align="right" style="padding:12px 0;border-bottom:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;line-height:140%;color:#2b2118;text-align:right">{{amount}}</td>
</tr>
{{/each}}
</table>
</td>
</tr>
<tr>
<td class="mt-px" style="padding:0px 48px 14px">
<table class="mt-table" role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mt-label" style="padding:11px 0;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#736c64;text-align:left">Subtotal</td>
<td class="mt-value" align="right" style="padding:11px 0;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#2b2118;text-align:right">{{subtotal}}</td>
</tr>
<tr>
<td class="mt-label mt-rule" style="padding:11px 0;border-top:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#736c64;text-align:left">Tax</td>
<td class="mt-value mt-rule" align="right" style="padding:11px 0;border-top:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:400;line-height:140%;color:#2b2118;text-align:right">{{tax | none}}</td>
</tr>
<tr>
<td class="mt-value mt-rule" style="padding:11px 0;border-top:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:650;line-height:140%;color:#2b2118;text-align:left">Total paid</td>
<td class="mt-value mt-rule" align="right" style="padding:11px 0;border-top:1px solid #e8e5df;font-family:Georgia,'Times New Roman',Times,serif;font-size:14px;font-weight:650;line-height:140%;color:#2b2118;text-align:right">{{total}}</td>
</tr>
</table>
</td>
</tr>
{{#if receipt_url}}
<tr>
<td class="mt-px" style="padding:0px 48px 20px">
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse:separate;">
<tr>
<td class="mt-btncell mt-ghost" align="center" style="background:transparent;border-radius:2px;border:2px solid #7a3b1d">
<a class="mt-button" href="{{receipt_url}}" style="display:inline-block;padding:14px 28px;font-family:Georgia,'Times New Roman',Times,serif;font-size:15px;font-weight:600;line-height:100%;letter-spacing:0px;color:#7a3b1d;text-decoration:none;text-align:center;border-radius:2px">View receipt online</a>
</td>
</tr>
</table>
</td>
</tr>
{{/if}}
<tr>
<td class="mt-px" style="padding:14px 48px 0">
<div class="mt-rule" style="border-top:1px solid #e8e5df;line-height:0;font-size:0;height:0">&nbsp;</div>
</td>
</tr>
<tr>
<td class="mt-px mt-footer" style="padding:16px 48px 41px;font-family:Georgia,'Times New Roman',Times,serif;font-size:12px;line-height:165%;color:#736c64">{{footer_text | You are receiving this email because of your account.}}</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Plain text
{{app_name | Your app}}
​
Thanks for your payment
​
Hi {{first_name | there}}, we received your payment. Here are the details.
​
[Paid]
​
Amount paid: {{total}} ({{paid_at}})
​
Receipt: {{receipt_number}}
Paid with: {{payment_method}}
​
{{#each items}}{{description}} {{quantity}} {{amount}}
{{/each}}
​
Subtotal: {{subtotal}}
Tax: {{tax | none}}
Total paid: {{total}}
​
{{#if receipt_url}}View receipt online: {{receipt_url}}{{/if}}
​
{{footer_text | You are receiving this email because of your account.}}

More templates

All email templates