Skip to main content

Email Templates

Time: ~10 minutes | Difficulty: Beginner TagadaPay sends transactional emails automatically when key events happen. You can customize every template per store — via the CRM dashboard or programmatically with the Node SDK and public API.
Zero code required for defaults. If you create a template for a given event type, TagadaPay sends it automatically. No webhooks, no cron jobs — just create the template and it works.

Supported Template Types

free_trial_expiration_incoming is reserved for a future release (trial expiration reminders). All other types are fully supported today.

Manage Templates with the Node SDK

List Available Types

Create a Template

List Templates for a Store

Update a Template

Send a Test Email

Always send a test email after creating or editing a template. TagadaPay renders the template with mock data so you can preview exactly what customers will receive.

Delete a Template


Template Variables Reference

Use {{ variableName }} in subjects and bodies. Variables are auto-populated from real-time event data when the email is sent.

Common Variables (All Templates)

order_paid

order_refunded

subscription_rebill_succeeded

subscription_rebill_upcoming

subscription_canceled

subscription_past_due

abandoned_checkout

Abandoned checkout emails support a configurable trigger delay — how long after the customer leaves before the email fires. Set it via params.specific.triggerDurationSinceLastActivity with values like 10min, 30min, 1h, 3h, 6h, 12h, 24h, or 48h.

customer_promotion_code

club_membership_started

club_membership_deactivated


Template Data Structure

The templateVariables field follows a specific nesting pattern:
The subject field is simpler — a flat locale map:
The key inside templateVariables must match the template type. For an order_paid template, use templateVariables.order_paid.body, not templateVariables.body.

Multilingual Emails

Set subjects and bodies per language. TagadaPay picks the locale from the checkout session or customer profile and falls back to en if the customer’s locale isn’t configured. Supported locales: en, fr, de, es, it (and any custom locale you define).

Custom Sender Domain

By default, emails are sent from noreply@tagadapay.com. Set up a custom sender domain for branded emails:
  1. Go to Settings → Emails → Custom Domain in the CRM
  2. Add your domain (e.g., your-store.com)
  3. Add the DNS records shown (SPF, DKIM, DMARC)
  4. Once verified, emails send from noreply@your-store.com
You can also set a per-template reply-to address:

Full Example: Configure All Emails for a New Store

This script creates the most common email templates in a single run:

CRM Dashboard

You can also manage templates visually in the CRM without writing any code:
The dashboard provides:
  • Template editor with live HTML preview
  • Variable picker — click to insert {{ variableName }}
  • Multilingual editor — tabs per language with independent subjects and bodies
  • Send test email — preview rendering with mock data sent to any address
  • Enable/disable toggle — per template, per store

SDK Methods Reference


Next Steps

Webhooks & Events

Listen for the same events that trigger emails — order.paid, subscription.canceled, etc.

Subscriptions

Set up recurring billing — the events that trigger subscription email templates

Build a Store with AI

Full tutorial: AI-generated storefront + TagadaPay for payments and emails

Node SDK Quick Start

Install the SDK, authenticate, and explore all resources