Use case
Receipt email
After a successful charge or invoice payment. Copy the HTML into your app and send with one API call.
Subject line ideas
- Your receipt from {{PRODUCT}}
- Payment received — {{AMOUNT}}
- Receipt #{{ID}}
HTML example
Replace placeholders in your app before send. This is not a Notify template product — it is a starting snippet.
<p>Thanks for your payment.</p>
<ul>
<li>Amount: {{AMOUNT}}</li>
<li>Date: {{DATE}}</li>
<li>Receipt: {{ID}}</li>
</ul>
<p><a href="{{RECEIPT_URL}}">View receipt</a></p>Send with Notify
const res = await fetch('https://notify.cx/api/email/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': process.env.NOTIFY_API_KEY
},
body: JSON.stringify({
to: 'user@example.com',
from: 'noreply@yourdomain.com',
subject: "Your receipt from {{PRODUCT}}",
message: `${html}`
})
});Security notes
- Pull amounts from your ledger, not the email client
- Include support path for disputes
Related
Frequently asked questions
When should I send a receipt email?
After a successful charge or invoice payment.
Do I need Notify templates?
No. Paste HTML (or plain text) into the message field. Notify delivers — your app owns the content.
How do I send this with Notify?
POST https://notify.cx/api/email/send with x-api-key and fields to, from, subject, message. Free 1,000/mo; Pro $10 for 10,000.