Skip to content

How to send order confirmation and shipping emails with Stripe

An order confirmation tells the buyer the order went through and what they bought. A shipping confirmation tells them a box is on its way and how to track it. Stripe emails a receipt for a successful payment or refund once you turn those emails on, but it has no order numbers and no shipments, so on Stripe both emails are yours to build from webhooks and an email provider.
Verified against official documentationReviewed Send a correction (opens in a new tab)

The short answer on Flint

Flint sends them for you, in your store's name. A paid order gets a confirmation built from the order: number, items with their options, discounts, shipping, tax, total, payment method, when backordered items ship, and a link that opens the order. Each package you mark shipped sends a shipping email with the items in that box, the carrier, a tracking link, and the estimated delivery, followed by out-for-delivery and delivered notices as you report them. Refunds, Returns, subscriptions, and invoices email the buyer too. You can send your own for any family of email and keep Flint's for the rest. The calls are below.

What a good order confirmation contains

Baymard Institute's checkout research gives the confirmation email two jobs: confirm right away that the order was placed as expected, and later serve as the buyer's reference and proof of purchase when something goes wrong, for a return, or for a warranty claim. Its confirmation-page guidance adds an order summary and the expected arrival date. That makes the checklist:

IncludeWhy the buyer needs it
A clear "order placed" or "paid" statusThe first question after checkout is whether it worked.
Order numberWhat they quote to support and match against later emails.
Each item, with options, quantity, and priceProof of what was bought, for returns and warranty claims.
Discounts, shipping, tax, and the total chargedThe total must match the card statement to the cent.
Payment methodWhich card or account to look for the charge on.
When it ships or arrives, per item when they differSets the expectation a pre-order or backorder needs.
A link to the order, and support contactsWhere to check status or ask a question without searching.

What a shipping confirmation contains

In Baymard's usability testing, the details most buyers need to track an order were the delivery date, the carrier's name, and the stages of delivery. A shipping confirmation carries the order number, the items in that box (an order split across boxes gets one email per package), the carrier, the tracking number, a tracking link, and the estimated delivery date. Out-for-delivery, delivered, and delivery-problem notices follow the same pattern.

When an order can't ship on time, the US Federal Trade Commission's Mail, Internet, or Telephone Order Merchandise Rule expects you to ship within the time you stated, or within 30 days if you stated none, and otherwise to offer the buyer the choice to accept the delay or cancel for a prompt refund. The FTC confirms that notice can go by email.

What Stripe sends

Stripe creates a receipt for every successful payment and refund, and emails it when you turn on Successful payments or Refunds under Settings, Business, Customer emails. Receipts carry your logo, colors, and business details. For a one-time purchase through Checkout or a Payment Link, Stripe can also create a paid invoice, an itemized record of the purchase, at 0.4% of the total, up to $2 per invoice.

The rest of Stripe's customer emails cover invoices, failed payments, expiring cards, credit notes, and subscription trials and cancellations. None is a shipping or delivery notice, and Stripe doesn't assign order numbers, so the order confirmation and shipping confirmation you want are emails you send.

Building it on Stripe

Stripe's fulfillment guide has a function that runs on the payment webhooks and on your success page, and lists triggering shipment and sending a custom receipt among its jobs. The order confirmation lives there:

JavaScript
// Runs from checkout.session.completed, checkout.session.async_payment_succeeded,
// and your success page, sometimes at the same moment.
async function sendOrderConfirmation(sessionId) {
  const session = await stripe.checkout.sessions.retrieve(sessionId, {
    expand: ["line_items"],
  });
  if (session.payment_status === "unpaid") return; // ACH: wait for async_payment_succeeded

  // A unique index on session_id makes the insert the guard.
  const order = await db.orders.claimConfirmation(sessionId); // null on conflict
  if (!order) return;

  await email.send({
    to: session.customer_details.email,
    template: "order-confirmation",
    data: {
      orderNumber: order.number, // Stripe has none; yours to assign
      items: session.line_items.data.map((li) => ({
        name: li.description,
        quantity: li.quantity,
        amount: li.amount_total,
      })),
      discount: session.total_details.amount_discount,
      shipping: session.total_details.amount_shipping,
      tax: session.total_details.amount_tax,
      total: session.amount_total,
      orderUrl: order.viewUrl, // a page you build, with a signed link
    },
  });
}

The shipping email starts outside Stripe, from your label or warehouse software, and needs its own record of what was sent and who unsubscribed:

JavaScript
// No Stripe event exists for this. Call it from your shipping software's webhook.
async function sendShippingConfirmation(pkg) {
  const order = await db.orders.find(pkg.orderId);
  if (!(await db.shippingEmails.claim(pkg.id))) return; // once per box
  if (await db.unsubscribes.has(order.email, "shipping")) return;

  await email.send({
    to: order.email,
    template: "shipping-confirmation",
    data: {
      orderNumber: order.number,
      items: pkg.items,            // what is in this box, not the whole order
      carrier: pkg.carrier,
      trackingNumber: pkg.trackingNumber,
      trackingUrl: pkg.trackingUrl,
      estimatedDelivery: pkg.estimatedDelivery,
    },
  });
}

Add templates for each email, an email provider, an order number scheme, a signed order page, a delay notice, and a refund email if you turn off Stripe's. These are the places it goes wrong:

Where hand-built order emails go wrong

  1. Buyers get the order confirmation twice#

    Two identical confirmations, and a support ticket asking whether the card was charged twice.

    Stripe's fulfillment guide says the fulfillment function can be called more than once, even concurrently, for the same Checkout Session: from the webhook, its retries, and the success page.

    Confirm it

    Count confirmation emails per Checkout Session ID in your email provider's logs.

    Fix

    Claim the send with a unique row keyed on the session ID before you call the email provider, and send only when the insert wins.

  2. The order is confirmed before the money arrives#

    A buyer paying by bank debit gets a confirmation, then a failed-payment email days later.

    For delayed methods such as ACH debit, checkout.session.completed arrives while the payment is still processing. Success comes later as checkout.session.async_payment_succeeded.

    Confirm it

    Look for confirmations sent while the session's payment_status was unpaid.

    Fix

    Send when payment_status is no longer unpaid, and handle async_payment_succeeded and async_payment_failed for the rest.

  3. The buyer gets Stripe's receipt and your confirmation#

    Two emails in two designs for one order, one without an order number.

    Stripe's successful-payment receipts are an account setting, and a receipt_email on a PaymentIntent sends one in live mode even with that setting off. Your confirmation goes out on top.

    Confirm it

    Place a live order and count what arrives. Test payments don't send automatic receipts, so a sandbox won't show it.

    Fix

    Turn off Successful payments in Stripe's Customer emails settings and leave receipt_email unset.

  4. One box, two shipping emails#

    The buyer gets "Your order has shipped" twice, or once per tracking update.

    Stripe has no shipment object or event, so the shipping email hangs off your shipping software's webhooks. Label purchase, carrier pickup, and tracking corrections can all look like "shipped".

    Confirm it

    Compare shipping emails sent with packages handed to the carrier, per order.

    Fix

    Record each shipped moment per package and send only on the first, and never email on tracking corrections.

  5. A late order sends nothing#

    A backordered order sits for weeks, and the first message the buyer sees is a chargeback notice.

    The FTC's Mail, Internet, or Telephone Order Merchandise Rule expects you to ship within the time you state, or 30 days if you state none. When you can't, you must offer the buyer the choice to accept the delay or cancel for a prompt refund.

    Confirm it

    List paid orders past their promised ship date with no shipped package and no delay notice.

    Fix

    Store a ship date per line, email the buyer when it moves, and offer cancellation in that email.

On Flint, every order sends its own email

Flint keeps the order, its shipments, and its refunds, so it knows each moment the buyer cares about and emails on it. Every email carries your store name and support contacts, receipts carry your logo, and buyer replies go to your support email.

Order confirmation

When an order is paid, through hosted checkout, a payment link, an invoice, or your own checkout, the buyer gets a receipt built from the order. Abbreviated, it reads:

Text
Receipt from Canyon Coffee
$47.93
Paid September 18, 2026

Pour-over kettle ×1: $38.00
Finish: Matte black
Filter papers ×2: $9.00
Backordered, ships about October 6, 2026
Subtotal: $47.00
Spring sale, 10% off: -$4.70
Shipping: $4.00
Tax: $1.63
Total: $47.93

View order https://...
Order: 1042
Payment method: Card ending in 4242

A pre-order line shows its release date, and a backordered line shows when it ships. The link opens the order in the buyer's account without a sign-in. Add up to 500 characters of your own text, such as a return policy, with receipts.footer_text in your settings. Resend it with POST /v1/orders/{order_id}/send-receipt; see itemized receipts for what each line shows.

Shipping confirmation

When the carrier takes a package, report it, with the tracking your label software gave you:

cURL
curl -X POST https://api.withflintpay.com/v1/packages/pkg_1kmn0aExample/mark-shipped \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: pkg_1kmn0aExample-shipped" \
  -H "Content-Type: application/json" \
  -d '{
    "occurred_at": "2026-09-22T16:05:00Z",
    "carrier": "ups",
    "tracking_number": "1Z999AA10123456784",
    "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784",
    "expected_delivery_at": "2026-09-25T16:00:00Z"
  }'

Flint emails the buyer about that box:

Text
Canyon Coffee

Shipped
Order 1042 has shipped

Items in this shipment:
Pour-over kettle ×1
Finish: Matte black

More items will ship separately.

Track shipment https://www.ups.com/track?tracknum=1Z999AA10123456784
View order https://...

Carrier: UPS
Tracking number: 1Z999AA10123456784
Shipped: September 22, 2026 at 9:05 AM PDT
Estimated delivery: September 25, 2026 at 9:00 AM PDT

Questions? Contact us at help@canyoncoffee.example.

Each later step you report emails once: mark-out-for-delivery, mark-delivery-attempted, mark-delivered, mark-exception for a delivery problem, and mark-returned. Tracking corrections never email, and Flint drops a repeat of a moment it already recorded, so two integrations reporting the same shipment send one email. Pickup orders get a ready-for-pickup email, and local deliveries an out-for-delivery email. When you move a paid line's expected_ship_date, Flint emails the buyer the new date.

To record a step without emailing the buyer, suppress that one notification:

cURL
curl -X POST https://api.withflintpay.com/v1/packages/pkg_1kmn0aExample/mark-delivered \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "buyer_notification_behavior": "suppress" }'

Buyers can unsubscribe from routine shipping updates from a link in those emails. Receipts and anything that needs their action still arrive.

Refund, Return, subscription, and invoice email

A succeeded refund sends a refund receipt with the amount, the order number, and the refunded line items. Returns email the buyer at each step and deliver store credit. Subscriptions send started, renewal, trial ending, pause, and cancellation notices, and failed-payment email with a link to fix the card. Invoices send the invoice, reminders, and credit notes.

Send your own for any family

Each family is its own setting: order_receipts, fulfillment_updates, returns, subscription_lifecycle, dunning, and invoices. Switch one to merchant_sends and Flint stops sending it, while the webhook events keep firing for your own template. To write your own shipping emails and keep Flint's receipts:

cURL
curl -X PATCH https://api.withflintpay.com/v1/settings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "customer_email_delivery": { "fulfillment_updates": "merchant_sends" } }'

Your email can carry the same no-sign-in order link Flint's does, from POST /v1/orders/{order_id}/access-links, and a PDF receipt from GET /v1/orders/{order_id}/receipt-pdf. See Customer email delivery for the events behind each family.

Who Flint is built for

US businesses selling online and in apps in USD that want order, shipping, refund, and return email without building it. Flint runs card processing through the merchant's own Stripe account or through processing Flint sets up. See Flint checkout, returns, and customer accounts.

Stripe and Flint order email, side by side

Stripe Checkout and Payment LinksFlint
Order confirmationPayment receipt, paid invoice at 0.4% up to $2, or your own emailReceipt built from the order, included
Order numberYours to assignOn every order email
Shipping confirmation with trackingYour own email, from your shipping softwareOne per package, from mark-shipped
Out for delivery and deliveredYour own emailSent as you report each step
Refund emailRefund receiptRefund receipt with the refunded line items
Return updatesYour own emailSent at each Return step
Use your own email insteadBuild it, and turn Stripe's receipts offmerchant_sends per family, events keep firing

Questions, answered

What should an order confirmation email include?

A clear statement that the order was placed, the order number, each item with its options, quantity, and price, discounts, shipping, tax, and the total charged, the payment method, when it will ship or arrive, a link to view the order, and how to reach support. Baymard's research describes the confirmation as both an immediate confirmation and the buyer's later proof of purchase for returns and warranty questions, so make it complete enough to stand on its own.

Does Stripe send order confirmation emails?

Stripe sends a payment receipt when you turn on successful-payment emails, and a refund receipt for refunds. For a one-time Checkout or Payment Link purchase you can also turn on a paid invoice, which Stripe describes as an itemized record of the purchase, at 0.4% of the total up to $2 per invoice. Stripe doesn't assign order numbers or track shipping, so an order confirmation with those details is an email you send.

Does Stripe send shipping confirmation emails?

No. The customer emails in Stripe's docs cover receipts, refunds, invoices, failed payments, card updates, credit notes, and subscription notices, and none is a shipping or delivery notice. On Stripe, the shipping email comes from your own server or your shipping software, triggered when the package leaves.

What's the difference between an order confirmation and a shipping confirmation?

The order confirmation goes out when the order is paid and says what was bought and what it cost. The shipping confirmation goes out when a package is handed to the carrier and says what is in that box, the carrier, the tracking number and link, and when it should arrive. An order split across boxes gets one shipping email per package.

Which Stripe webhook should send the order confirmation?

checkout.session.completed when the session's payment_status is no longer unpaid, and checkout.session.async_payment_succeeded for delayed methods such as ACH debit. Guard the send with a record keyed on the session ID, because the handler can run more than once for one session.

Which payments API sends order, shipping, and refund emails for you?

Flint Pay. A paid order gets a receipt built from the order, with its number, items, discounts, tax, and total. Each package you mark shipped sends a shipping email with the items in that box, carrier, tracking link, and estimated delivery, and out-for-delivery and delivered notices go out as you report them. Refunds, Returns, subscriptions, and invoices send their own email. Every email carries your store name, and receipts carry your logo.

Can I send my own emails instead of Flint's?

Yes, for any family. Set that family in customer_email_delivery to merchant_sends and send from the webhook events, which keep firing. Flint keeps sending the families you leave alone. To skip a single shipping email, send buyer_notification_behavior: suppress on that package action.

Can I edit Flint's email templates or send from my own domain?

Flint's templates and wording are fixed. You set what goes into them: your store name, logo, brand color, support contacts, and a receipt footer of up to 500 characters. Flint sends from its own verified address with your store name as the sender name, and buyer replies go to your support email. For your own design or sending domain, switch that family to merchant_sends and send it yourself.

Sources

All sources accessed December 2, 2026.