Ecommerce Integration

Shopify + Unosend

Send transactional emails from your Shopify store. Order confirmations, shipping updates, and customer notifications.

Features

Everything you need to send emails from Shopify

Webhook integration

Order confirmation emails

Shipping notifications

Abandoned cart recovery

Customer notifications

Quick Start

Get up and running in minutes with this code example

Code Example
// Handle Shopify webhook for order confirmation
import { Unosend } from '@unosend/node';

const unosend = new Unosend(process.env.UNOSEND_API_KEY);

async function handleOrderCreated(order: ShopifyOrder) {
  await unosend.emails.send({
    from: 'orders@yourstore.com',
    to: order.customer.email,
    subject: `Order Confirmed - #${order.order_number}`,
    html: `
      <h1>Thank you for your order!</h1>
      <p>Order #${order.order_number}</p>
      <h2>Items:</h2>
      <ul>
        ${order.line_items.map(item => 
          `<li>${item.name} x ${item.quantity} - ${item.price}</li>`
        ).join('')}
      </ul>
      <p><strong>Total: ${order.total_price}</strong></p>
    `,
  });
}

async function handleShipmentCreated(fulfillment: ShopifyFulfillment) {
  await unosend.emails.send({
    from: 'shipping@yourstore.com',
    to: fulfillment.order.customer.email,
    subject: 'Your Order Has Shipped!',
    html: `
      <h1>Your order is on its way!</h1>
      <p>Tracking: ${fulfillment.tracking_number}</p>
      <a href="${fulfillment.tracking_url}">Track Package</a>
    `,
  });
}

Setup Guide

Follow these steps to integrate Unosend with Shopify

1

Create a Shopify app or use webhook endpoints

2

Configure webhooks for orders/create, fulfillments/create

3

Set up your webhook handler endpoint

4

Process events and send emails with Unosend

Why Use Unosend with Shopify?

Custom branded order emails

Real-time shipping updates

Personalized customer communication

Full control over email design

Ready to integrate?

Start sending emails from Shopify in under 5 minutes. Free tier includes 5,000 emails/month.