Skip to main content
These are the emails your customers receive. Every one of their templates receives store and locale, plus the variables listed for it below. Use these names exactly: a variable not listed here does not exist, and in development and test it raises an error. See Email Templates for how to override a template.

Emails

Values

Objects

Each object’s fields, and the fields of the objects nested in it. Format an amount with the money filter ({{ order.total | money }}).

store

  • store: id, name, address, mail_from_address, default_currency, default_locale, url, support_email, logo_url, logo_width, branding
  • store.branding: background_color, card_color, text_color, heading_color, accent_color (empty unless the merchant set one), link_color, button_color, button_text_color, button_border, font, font_family, heading_font_family, font_url (a web font’s stylesheet, empty for email-safe fonts)

order

  • order: id, market_id, withdrawal_period_ends_at, within_withdrawal_period, shipping_eq_billing_address, cart_id, channel_id, company_id, company_name, po_document_filename, po_document_byte_size, number, email, customer_note, po_number, currency, locale, total_quantity, coupon_code, fulfillment_status, payment_status, completed_at, item_total, discount_total, tax_total, included_tax_total, additional_tax_total, delivery_total, fee_total, gift_card_total, store_credit_total, total, amount_due, covered_by_store_credit, adjustment_total, customer_name, total_minus_store_credits
  • order.discounts: id, promotion_id, name, description, code, amount
  • order.fees: id, label, kind, line_item_id, fulfillment_id, amount
  • order.items: id, variant_id, seller_id, preorder, preorder_ships_at, gift_card, quantity, currency, name, slug, options_text, price, total, adjustment_total, additional_tax_total, included_tax_total, discount_total, pre_tax_amount, discounted_amount, compare_at_amount, url, image_url, sku, amount
  • order.items.recipient: email, name, message, send_at
  • order.items.gift_cards: the cards a paid order issued for the line, with the same fields as gift_card and the code masked
  • order.items.option_values: id, option_type_id, name, label, position, color_code, option_type_name, option_type_label, image_url
  • order.items.custom_fields: id, label, field_type, key, value, display_value
  • order.fulfillments: id, number, tracking, tracking_url, pickup_point_data, selected_delivery_rate_id, unpriced, cost, total, discount_total, additional_tax_total, included_tax_total, tax_total, status, fulfillment_type, fulfilled_at, delivered_at, items
  • order.fulfillments.deliveries: id, tracking_number, carrier, carrier_name, service, status, tracking_url, estimated_delivery_at, delivered_at
  • order.fulfillments.delivery_method: id, name, code, estimated_transit_business_days_min, estimated_transit_business_days_max, digital, pickup, pickup_point
  • order.fulfillments.stock_location: id, name, address1, city, zipcode, country_code, country_name, state_code, state_text, pickup_ready_in_minutes, pickup_instructions, address2
  • order.fulfillments.pickup_location: id, name, address1, city, zipcode, country_code, country_name, state_code, state_text, pickup_ready_in_minutes, pickup_instructions, address2
  • order.fulfillments.delivery_rates: id, delivery_method_id, name, selected, cost, total, additional_tax_total, included_tax_total, tax_total, carrier, service_level, estimated_delivery_date, unpriced
  • order.payments: id, payment_method_id, response_code, number, status, amount, source_type, source_id, source
  • order.payments.payment_method: id, name, description, type, session_required, source_required
  • order.billing_address: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • order.shipping_address: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • order.gift_card: id, code, status, currency, amount, amount_used, amount_authorized, amount_remaining, expires_at, redeemed_at, expired, active
  • order.market: id, name, currency, default_locale, tax_inclusive, default, country_codes, country_isos, supported_locales
  • order.custom_fields: id, label, field_type, key, value, display_value
  • order.promotion_discounts: label, amount
  • order.manual_discounts: label, amount
  • order.fee_lines: label, amount
  • order.delivery_lines: label, amount

gift_card

  • gift_card: id, code, status, currency, amount, amount_used, amount_authorized, amount_remaining, expires_at, redeemed_at, expired, active. In the gift card email the code is in full; everywhere else it is masked.

order_group

  • order_group: id, number, email, currency, item_total, discount_total, tax_total, included_tax_total, additional_tax_total, delivery_total, fee_total, gift_card_total, store_credit_total, total, amount_due, covered_by_store_credit, fulfillment_status, payment_status, completed_at, customer_name, total_minus_store_credits, po_number, order_count
  • order_group.billing_address: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • order_group.shipping_address: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • order_group.payments: id, payment_method_id, response_code, number, status, amount, source_type, source_id, source
  • order_group.payments.payment_method: id, name, description, type, session_required, source_required
  • order_group.custom_fields: id, label, field_type, key, value, display_value
  • order_group.items: id, variant_id, seller_id, preorder, preorder_ships_at, quantity, currency, name, slug, options_text, price, total, adjustment_total, additional_tax_total, included_tax_total, discount_total, pre_tax_amount, discounted_amount, compare_at_amount, url, image_url, sku, amount
  • order_group.items.option_values: id, option_type_id, name, label, position, color_code, option_type_name, option_type_label, image_url
  • order_group.items.custom_fields: id, label, field_type, key, value, display_value
  • order_group.promotion_discounts: label, amount
  • order_group.manual_discounts: label, amount
  • order_group.fee_lines: label, amount
  • order_group.fulfillment_groups: name, unpriced, cost, seller_names
  • order_group.fulfillment_groups.pickup_location: id, name, address1, city, zipcode, country_code, country_name, state_code, state_text, pickup_ready_in_minutes, pickup_instructions, address2
  • order_group.fulfillment_groups.items: id, url, image_url, name, quantity, sku, options_text, price, amount
  • order_group.fulfillment_groups.items.custom_fields: id, label, field_type, key, value, display_value
  • order_group.unfulfilled_items: id, variant_id, seller_id, preorder, preorder_ships_at, quantity, currency, name, slug, options_text, price, total, adjustment_total, additional_tax_total, included_tax_total, discount_total, pre_tax_amount, discounted_amount, compare_at_amount, url, image_url, sku, amount
  • order_group.unfulfilled_items.option_values: id, option_type_id, name, label, position, color_code, option_type_name, option_type_label, image_url
  • order_group.delivery_lines: label, amount

fulfillment

  • fulfillment: id, number, tracking, tracking_url, pickup_point_data, selected_delivery_rate_id, unpriced, cost, total, discount_total, additional_tax_total, included_tax_total, tax_total, status, fulfillment_type, fulfilled_at, delivered_at, items, delivery_method_name
  • fulfillment.deliveries: id, tracking_number, carrier, carrier_name, service, status, tracking_url, estimated_delivery_at, delivered_at
  • fulfillment.delivery_method: id, name, code, estimated_transit_business_days_min, estimated_transit_business_days_max, digital, pickup, pickup_point
  • fulfillment.stock_location: id, name, address1, city, zipcode, country_code, country_name, state_code, state_text, pickup_ready_in_minutes, pickup_instructions, address2
  • fulfillment.pickup_location: id, name, address1, city, zipcode, country_code, country_name, state_code, state_text, pickup_ready_in_minutes, pickup_instructions, address2
  • fulfillment.delivery_rates: id, delivery_method_id, name, selected, cost, total, additional_tax_total, included_tax_total, tax_total, carrier, service_level, estimated_delivery_date, unpriced
  • fulfillment.delivery_rates.freight_summary: total_units, total_cartons, total_pallets, total_volume, total_weight, complete
  • fulfillment.delivery_rates.delivery_method: id, name, code, estimated_transit_business_days_min, estimated_transit_business_days_max, digital, pickup, pickup_point
  • fulfillment.manifest_items: id, url, image_url, name, quantity, sku, options_text, price, amount

return

  • return: id, number, status, order_id, reason_id, refund_total, approved_at, received_at, refunded_at, canceled_at, refunded_total
  • return.returned_items: id, url, image_url, name, quantity, sku, options_text, price, amount
  • return.returned_items.custom_fields: id, label, field_type, key, value, display_value

customer

  • customer: id, email, first_name, last_name, phone, accepts_email_marketing, email_marketing_consent_updated_at, full_name, available_store_credit_total
  • customer.addresses: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • customer.default_billing_address: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • customer.default_shipping_address: id, label, first_name, last_name, full_name, address1, address2, postal_code, city, phone, company, country_name, country_code, state_text, state_code, quick_checkout, is_default_billing, is_default_shipping, state_abbr, country_iso, state_name
  • customer.newsletter_subscriber: id, email, created_at, updated_at, verified, verified_at, customer_id
  • customer.customer_groups: id, name

company

  • company: id, name, kind, po_number_required, parent_id, ancestors

Custom fields

order.custom_fields and order_group.custom_fields list the order’s custom fields whose definition is visible on the storefront, such as the details a shopper filled in at checkout. Fields visible only in the admin dashboard are never included, not even in the emails sent to staff. Print display_value rather than value: it shows a choice field’s labels instead of its stored values, a boolean as Yes or No, and rich text without its markup. Dates stay ISO 8601, so format them with the date filter, as the default templates do (spree/shared/custom_fields).
Each item carries its own in item.custom_fields: what the shopper wrote for that item, such as an engraving or a gift note. Items of a fulfillment group and returned items carry their line’s fields the same way. The default line tile (spree/shared/line_item) prints them under the item’s name.