Skip to content
Coritan Docs

Write the emails your store sends

Change each email the store sends shoppers and your team, choose who gets the staff emails, preview with sample data, send a test and go back to the default.

View as Markdown

Emails lists every email the store sends: to shoppers about their orders and their accounts, the contact form's and the support inbox's answers, the marketing flows, and the emails to your own team. Each one sends Coritan's default until you save your own version. You can change its subject, its HTML and its plain text, see it rendered with sample data, send yourself a test, and go back to the default at any time.

  • You need the Admin or Owner role to change an email, send a test or turn the shipping, delivery or affiliate commission email on or off. Every member can open Emails, read each template and see its preview.
  • The emails go out in your organization's email design, with its logo, colours and footer. An owner or admin changes those on the Email design tab of Settings (Design your emails), not here.
  • The header draws your logo in its own proportions. By default a wide logo (a wordmark) shows on its own, a square one shows beside your organization's name, and a logo we cannot load shows as the first letter of the name.

The list groups the emails, names each one and says whether it sends Your version or the Default. Emails marked Marketing are sent by the store's flows, such as the abandoned cart reminders, and by the lists of email marketing. They carry an unsubscribe link and never go to an address that unsubscribed or that you added to the suppression list. Emails marked Staff go to your own people and never to a shopper.

Order emails

Email When it is sent
Order confirmation When an order is placed: what was ordered, the totals, the fees and the link to the order.
Order shipped When a parcel leaves: the items in it, the carrier, the tracking number and the tracking link. A split shipment sends one email for each parcel.
Order delivered When a parcel is delivered, if you turned it on: the items in it, the day it arrived and the tracking link. It sends once for each parcel, and it is off until you turn it on (Turn the delivery email on or off).
Order cancelled When the store cancels an order, with what was refunded.
Refund issued When part or all of an order is refunded.
Gift card To the recipient of each gift card an order sold, with its code.
Order lookup When a shopper asks for links to the orders placed with their address.

Account emails

Email When it is sent
Account created When a shopper creates an account.
Confirm the email address When a shopper creates an account or asks again, with the link that confirms their address.
Reset the password When a shopper asks to reset their password, or you send them a reset link.
Set your password To a shopper whose account needs a password, such as one made at checkout, with the link that sets one.
Password changed When a shopper's password changes, so they hear of a change they did not make.
Password changed by the store When your staff set a new password on a shopper's account.
Email address changed To the old address, when a shopper's email address changes.
Two-factor sign-in on, Two-factor sign-in off When two-factor sign-in is turned on or off on a shopper's account.
Sign-in provider paused, Sign-in provider back When you pause a sign-in provider a shopper used, such as Google, and when it works again.
Commission earned When an order earns an affiliate commission, if you turned it on: the commission and what they are owed. It goes to the affiliate only, once for each referral, and it is off until you turn it on (Turn the affiliate commission email on or off).

Contact and support

Email When it is sent
Contact form received To whoever writes through your storefront's contact form, to say the message arrived.
Contact form message To the store's support address with each message from the contact form. Replying answers the sender.
Support email received When an email to your support inbox opens a ticket.
Support email without an account, from an unconfirmed address, that cannot open a ticket When an email to your support inbox cannot open a ticket, saying why and how to write instead.

Marketing holds the flows' emails: the three abandoned cart reminders, the unpaid checkout email and the restock reminder (Marketing). It also holds two emails of email marketing's lists:

Email When it is sent
Confirm subscription When someone signs up to a list that needs a confirmation click: the link that confirms their address, which works for 7 days. A list can replace its subject and words with its own (Manage your email contacts, lists and segments).
Welcome to a list When someone joins a list that has a welcome email on, with the link to choose their emails and the link to unsubscribe. A list can replace its subject and words with its own.

Both are given first_name, list_name and store_name. Confirm subscription also has confirm_url and support_email, and Welcome to a list has preferences_url and unsubscribe_url. A list's own words arrive as custom_subject, custom_body and custom_paragraphs.

To your team

Email When it is sent
New order When an order is placed: the order, the shopper and where the order came from.
Reward claim When an affiliate claims a reward: what to ship and where.
Payment to refund When your payment page took money that could not become an order.
Stock running low When items reach their low-stock threshold (Settings, Low stock).

A test order's emails go out too, with [TEST] in front of the subject. Amounts read as your storefront writes them, such as $19.99 or €5.00.

The Staff emails card on Emails says who gets the first three emails of To your team. For each, tick Email each new order, Email each reward claim or Email each payment to refund, list up to 10 addresses of your own people under Send to, one per line, and choose Save changes. An email that is ticked but lists nobody goes to nobody. The low-stock email has its own recipients, under Settings, Low stock.

  • New order goes to each address once per order, as soon as it is placed, and the order's timeline notes who got it. It lists the items, the totals with the fees and the codes used, how it was paid, the shopper's email address, phone number and addresses, and how many orders the address has placed with your store, what they came to in all and on average. Under "Where the order came from" it shows the shopper's first visit and their latest one, each with the page they landed on, the traffic source (the site that sent them, or direct) and the UTM parameters, and the shopper's clock when they ordered. Your storefront sends those details with the cart (Store API); without them the email says it has none.
  • Reward claim names the affiliate, the reward to ship and the address it goes to, with a link to the claims.
  • Payment to refund gives the amount, why it could not become an order, the payment page's reference and the shopper's address when the page sent it. Nothing is refunded on its own: refund it with your payment page's provider (Payments).

The same switches are the store setting staff_emails in the Commerce API: PATCH .../commerce/store with {"settings": {"staff_emails": {"new_order": {"enabled": true, "recipients": ["orders@example.com"]}}}}. An email you leave out of the object is turned off.

Turn the shipping email on or off

Section titled Turn the shipping email on or off

At the top of Emails, Email the shopper when a parcel ships is on for a new store. Turn it off if your fulfilment provider already emails your shoppers with tracking, so they do not get two. While it is off, no shipping email goes out, and the shopper can still follow the order from its page.

Turn the delivery email on or off

Section titled Turn the delivery email on or off

Under the shipping switch on Emails, Email the shopper when a parcel is delivered is off for a new store. Turn it on to send each shopper one email for each parcel that arrives.

The email goes out whichever way the parcel is marked delivered:

The email names the day the parcel arrived, in your store's time zone, and says when other parcels of the order are still on their way. Each parcel sends it once. A parcel that arrives while the switch is off is never emailed later.

When a parcel is delivered without ever being shipped through Coritan, such as one your provider reports only as delivered, the shopper gets the delivery email and no shipping email. The shipping switch and the delivery switch work on their own, so you can turn either one off.

The switch is the store setting notify_delivered in the Commerce API: PATCH .../commerce/store with {"settings": {"notify_delivered": true}}. Unset means off. The shipping switch is notify_shipped, which is on unless you set it to false.

Turn the affiliate commission email on or off

Section titled Turn the affiliate commission email on or off

Under the delivery switch on Emails, Email the affiliate when an order earns them commission is off for a new store. Turn it on to send each affiliate one email for each referral that earns them commission (Affiliates).

The email goes out when the referral becomes Unpaid: the order is paid and the commission is owed.

  • Each referral sends it once. A referral you reject and then restore to unpaid is not emailed a second time, and an event that is delivered again sends nothing twice.
  • A referral that is still a draft or is rejected gets none. Neither does a referral you imported, or one whose affiliate you disabled.
  • A test order sends none, unless your store's flows send in test mode (Email test carts and orders under Marketing). Then the email is marked [TEST].
  • A referral that became unpaid while the switch was off is not emailed when you turn it on. If you reject it and restore it to unpaid after that, the affiliate gets the email then, once.

The email goes to the affiliate's own address. It names the order's number and day, what the commission is worked out on, the rate, the commission, what the affiliate is owed in all and the least a payout may be, and links to the affiliate dashboard on your storefront, which is your storefront address followed by /affiliate-dashboard/. It never gives the referred shopper's name, address or order link.

The switch is the store setting notify_new_referral in the Commerce API: PATCH .../commerce/store with {"settings": {"notify_new_referral": true}}. Unset means off. It is a setting of its own and not a key of settings.affiliates, so saving the program does not change it. The same events reach your organization webhook as commerce.affiliate.referral.created and commerce.affiliate.referral.updated.

  1. In the partner dashboard, open your organization. In the sidebar, select Store setup under Store, then the Emails tab, and choose the email.
  2. Change the Subject, the HTML or the Plain text. The preview follows a moment after you stop typing.
  3. Choose Save changes. The next email of that kind uses your version.

The HTML goes inside the organization's email layout, so write only the body: paragraphs, links and buttons. The plain text is what mail apps that show no HTML display. You need a subject and at least one of the two bodies.

When a field cannot be used, Save refuses it and says which field and which line, under that field. Nothing is saved until every field works.

A variable puts a value from the order into the email. Write its name in double braces: {{ order_number }} becomes #1042. The editor lists each variable the email is given, with what it holds. You can also choose between words with {% if %} and list items with {% for %}, for example:

{% for item in items %}{{ item.quantity }} x {{ item.title }}
{% endfor %}

Every order email is given these:

Variable What it holds
customer_name The shopper's first name, or "there" when the order has none.
store_name The store's name.
order_number The order's number, such as #1042.
order_url The link to the order on the storefront, which opens without signing in. The gift card email does not have it.
invoice_number The number of the order's invoice, when it has one.
seller_legal_name The Coritan company that sold the order on behalf of the store.
currency The order's currency code, such as EUR.
support_email The store's support address, when it has one.
subject_prefix [TEST] on a test order, and nothing on a live one.
is_test True on a test order.

The shipping email and the delivery email are also given these:

Variable What it holds
items The items in this parcel, each with title and quantity.
carrier The carrier of the first tracking number, such as DHL.
tracking_number The first tracking number.
tracking_url The link to follow the first tracking number, when the carrier gave one.
tracking Every tracking number of the parcel, each with carrier, number and url.
shipping_address The address the parcel goes to, on one line.
shipping_name The shipping method's name.
partial In the shipping email, true when more of the order ships later. In the delivery email, true when other parcels of the order are not delivered yet.

The delivery email is also given delivered_on, the day the parcel arrived in your store's time zone, such as 8 October 2026.

The commission email is not about the shopper's order, so it is given none of the order variables above. It is given these, and nothing of the shopper who was referred:

Variable What it holds
affiliate_name The affiliate's first name, or "there" when the account has none.
affiliate_code The affiliate's code.
order_number The referred order's number, such as #1042.
placed_at When the order was placed, in your store's time zone, such as 21 September 2026, 14:03 CEST.
base What the commission is worked out on, as money: the order's items after discounts, without tax, shipping, fees or gift cards.
rate The commission rate, such as 20% or 12.5%.
commission The commission this order earns, as money.
first_order True when it is the shopper's first order, false for a repeat order.
unpaid_total What the affiliate is owed, this commission included, as money.
min_payout The least a payout may be in this currency, as money, or empty when you set none.
dashboard_url The link to the affiliate dashboard on your storefront, when the store has a storefront address.
store_name, shop_url, support_email, subject_prefix, is_test The store's name, its storefront address, its support address, [TEST] on a test order and whether it is one.

The order confirmation and the new order email also get the order's items (each with name, variant, sku, quantity, image_url and the price fields below), fees, promo_codes, payment_method, shipping_address_lines and billing_address_lines, and amounts, the totals in cents for a test such as {% if amounts.shipping == 0 %}Free{% endif %}. The new order email adds customer_orders, visits, browser_time and device, as described under Emails to your team.

Each item in the order emails and in the abandoned cart and unpaid checkout emails has the same price fields. amount is the line before discounts and discounted_amount the line after them. discounted is true when a promotion took something off, discount is how much, promo_codes lists the codes that did (such as BOGO) and promotions lists each promotion with its code, description and amount; an automatic promotion has no code. free is true for a line that costs nothing after its discounts, such as a free gift, and amounts holds the line's figures in cents. The cart emails price the cart as checkout would at the moment they are sent, and also get cart_subtotal, discount_total, promo_codes and cart_total, the items after their discounts. To strike through a discounted line's old price:

{% if item.free %}Free{% elif item.discounted %}<s>{{ item.amount }}</s> {{ item.discounted_amount }}{% else %}{{ item.amount }}{% endif %}

The editor lists the variables of the other emails: the amounts of a refund, the code of a gift card, the orders of an order lookup, the links of the account emails and what the contact form sent.

Templates run in a sandbox on Coritan's servers. A template can read the variables listed for it and use if, for and filters such as upper. It cannot reach anything else: not the server, not other organizations' data, and not Python's internals. A template that tries is refused when you save it.

The sandbox also refuses a template that would build something huge, such as a word repeated a billion times.

If a saved template fails when a real email goes out, for example because a variable holds something you did not expect, Coritan sends the default for that email instead, so the shopper still gets it. The failure is logged for Coritan's staff with the email's name, never with your text.

The preview on each email's page shows it as a shopper would get it, in the organization's layout, with sample data: an order #1042 from your store to a shopper called Alex. The preview runs no scripts, and its links point at sample addresses.

Choose Send a test to me on an email's page. The test goes to your own address, the one you sign in with, and to no one else. It is the saved version with sample data, and its subject starts with [Test]. Save your changes first if you want to test them.

You can send ten tests an hour. After that, the page says to try again later.

Choose Reset to default on an email you changed, and type the email's name to confirm. Your version is deleted, and the store sends Coritan's default from then on. This cannot be undone, so copy your text somewhere first if you may want it again.

  • Orders: shipping a parcel, which sends the shipping email, and marking it delivered, which sends the delivery email.
  • Fulfilment providers: a provider that reports a parcel as shipped or delivered sends them too, and FedEx delivery tracking marks parcels delivered.
  • Settings: the store's name and support address the emails use.
  • Sent email: each email the store sent, as the shopper got it.

API operations on this page

MethodPathWhat it does
GET/api/v1/orgs/{org_slug}/commerce/email-templatesList templates
GET/api/v1/orgs/{org_slug}/commerce/email-templates/{slug}Get template
PUT/api/v1/orgs/{org_slug}/commerce/email-templates/{slug}Save the store's own version of a template: {subject, html, text}
DELETE/api/v1/orgs/{org_slug}/commerce/email-templates/{slug}Go back to the platform's default: the store's own version is deleted
POST/api/v1/orgs/{org_slug}/commerce/email-templates/{slug}/previewPreview template
POST/api/v1/orgs/{org_slug}/commerce/email-templates/{slug}/testSend test