Use case

Failed payment email

When a subscription charge fails and the user must update payment. Copy the HTML into your app and send with one API call.

Subject line ideas

  • Payment failed — update your card
  • We could not process your payment
  • Action needed: billing

HTML example

Replace placeholders in your app before send. This is not a Notify template product — it is a starting snippet.

<p>We could not process your latest payment.</p>
<p>Please update your payment method to avoid interruption.</p>
<p><a href="{{BILLING_URL}}">Update billing</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: "Payment failed — update your card",
    message: `${html}`
  })
});

Security notes

  • Do not include full card numbers
  • Link to a secure billing portal
  • Be clear about grace period / access impact

Related

Frequently asked questions

When should I send a failed payment email?

When a subscription charge fails and the user must update 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.