Orders Table

The Orders table is the canonical record of revenue and purchases across all connected sales platforms. One row per order.

📋

Table Guide

What You Can Answer With This Table

  • What is total revenue, gross sales, or order count for a time period? — use order_revenue, gross_product_sales, orders
  • How do revenue, AOV, or LTV split between new and returning customers? — use new_customer_revenue, returning_customer_revenue, is_new_customer, aov, ltv
  • What drives order revenue by platform, product, or discount code? — group by platform, products_info.product_name, or discount_code

Before You Query

  • Required field: event_date
  • This table includes orders from your main sales platform (e.g., Shopify, BigCommerce, WooCommerce) and any connected marketplaces (e.g., Amazon, TikTok Shop). Filter by platform to isolate a specific source.
  • Refund amounts (refund_money) are calculated based on the original order date, not the refund date. For line-item refund detail or refund-date-based analysis, use the Refunds table.

Key Relationships

TableJoin KeyUse This Join To
Pixel Ordersorder_idAnalyze which channels, campaigns, or ads drove each order
Refundsorder_idExplain the order-level refund_money total with line-item refund detail
Reviewsorder_idAnalyze customer feedback on specific purchases
Customer Journeyorder_idAnalyze the touchpoint paths and UTM parameters that led to each purchase
Customerscustomer_id_keySegment order behavior by customer attributes and lifetime metrics
Customer Segmentationcustomer_id or customer_email to customer_identityCompare purchase behavior across customer cohorts

When to Use a Different Table

  • Use Pixel Orders table when you need attribution context for which channel, campaign, ad set, or ad drove an order. The Orders table is the transactional order record without attribution context.
  • Use Product Analytics table when you need product-level performance aggregates such as top SKUs or variant comparisons. The Orders table keeps product detail per order in products_info.
  • Use Shipping table when you need carrier-level shipping detail such as tracking status, fulfillment timing, destination, or carrier costs. The Orders table has order-level shipping amounts but not carrier integration detail.
  • Use Refunds table when you need refund-date analysis, such as when a refund was processed. The Orders table's refund_money is keyed to the order date.

View the full Triple Whale Data Ontology →


Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Event Hourevent_hourstring

The hour of the day the order was placed, according to a 24-hour clock. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).

Example values: 07, 16, 21

Event Dateevent_datedateThe date the order was placed. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).
Event Dayevent_date.daydateThe day on which the event occurred. Derived from event_date.
Event Weekevent_date.weekdateThe Sunday of the week during which the event occurred. Derived from event_date.
Event Monthevent_date.monthdateThe month during which the event occurred. Derived from event_date.
Event Quarterevent_date.quarterdateThe first month of the quarter during which the event occurred. Derived from event_date.
Event Yearevent_date.yeardateThe year during which the event occurred. Derived from event_date.
Amazon Fulfillment Channelamazon_fulfillment_channelstring

The fulfillment channel of the Amazon order.

Example values: FBA, FBM

Amazon Fulfillment Statusamazon_fulfillment_statusstring

The fulfillment status of the Amazon order.

Example values: Pending, Unshipped, PartiallyShipped, Shipped, Canceled, Unfulfillable, InvoiceUnconfirmed, PendingAvailability

Amazon Is Business Orderamazon_is_business_orderboolean

Indicates if the order is a business order on Amazon.

Possible values: true, false

Amazon Marketplace IDamazon_marketplace_idstringThe Amazon marketplace ID for the marketplace associated with the order. See list of marketplace IDs.
Amazon Marketplace Nameamazon_marketplace_namestringThe human-readable name of the Amazon marketplace associated with the order (e.g., "United States of America", "United Kingdom").
Amazon Regionamazon_regionstringThe Amazon region for the marketplace associated with the order (e.g., "North America", "Europe", "Far East").
Billing Citybilling_citystring

The city of the customer's billing address.

Example value: San Francisco

Billing Countrybilling_countrystring

The full name of the customer's billing country. See list of countries.

Example values: United States, Canada, United Kingdom

Billing Country Codebilling_country_codestring

The country code of the customer's billing address. See list of countries.

Example values: US, CA, GB

Billing Statebilling_provincestring

The state or province of the customer's billing address.

Example values: Oregon, British Columbia, Michigan

Canceled Datecancelled_attimestamp

The time at which the order was canceled. Formatted according to the ISO 8601 international standard. NULL if the order was not canceled.

Example value: 2023-06-15T19:26:30.000Z

Order Created Datecreated_attimestamp

The time at which the order record was created. Formatted according to the ISO 8601 international standard.

Example value: 2022-06-15T19:26:30.000Z

Order Currencycurrencystring

The original currency of the order, before conversion to the shop's currency. All monetary values are automatically converted to the shop's selected currency for display.

Example values: USD, GBP, EUR

Customer Emailcustomer_emailstring

The customer's email address.

Example value: [email protected]

Customer First Namecustomer_first_namestring

The customer's first name.

Example value: John

Customer Citycustomer_from_citystring

The city of the customer's default address.

Example value: San Francisco

Customer Country Codecustomer_from_country_codestring

The country code of the customer's default address. See list of countries.

Example values: US, CA, GB

Customer Country Namecustomer_from_country_namestring

The full name of the customer's country. See list of countries.

Example values: United States, Canada, United Kingdom

Customer State Codecustomer_from_state_codestring

The state or province code of the customer's default address.

Example value: CA

Customer IDcustomer_idstring

The unique identifier for the customer, assigned by the main sales platform.

Example value: 5209503793328

Customer ID Keycustomer_id_keystring

Join key for connecting this table to the Customers table. Contains customer_id for Shopify shops and customer_email for non-Shopify shops (e.g., Amazon, BigCommerce, WooCommerce).

Example values: 5209503793328, [email protected]

Customer Last Namecustomer_last_namestring

The last name of the customer.

Example value: Doe

Customer Tagscustomer_tagsrepeated string

Tags associated with the customer, set in the main sales platform.

Example values: Active Subscriber, PayPal_user, Login with FB

Discount Codediscount_codestring

The discount code or promotion name used in the order. Set by the seller in the main sales platform.

Example values: WELCOME10, Replacement for defective item, 807QRWMNK2

Discount Typediscount_typestring

The type of discount received by the customer in the order.

Example values: fixed_amount, percentage

Fulfillment Statusfulfillment_statusstring

The fulfillment status of the order.

Example values: fulfilled, partial, restocked

Integration Shipping Statusintegration_shipping_statusstring

The shipping status of the order, according to the integrated shipping provider.

Example values: LabeledCreated, Completed

Is First Order in Subscriptionis_first_order_in_subscriptionboolean

True if the order is the first in a subscription series.

Possible values: true, false

Is New Customeris_new_customerboolean

True if this is the customer's first order.

Possible values: true, false

Learn how Triple Whale classifies new/returning customers.

Is Subscription Orderis_subscription_orderboolean

True if the order is part of a subscription.

Possible values: true, false

Metafieldsmetafieldsrecord repeatedCustom key–value pairs attached to each order record, used to store additional structured or unstructured data beyond standard fields.
Metafield IDmetafields.metafield_idstring

The unique identifier of the metafield record.

Example value: 44187839136031

Metafield Keymetafields.keystring

The unique key of the metafield within its namespace, indicating what data it holds.

Example values: promised_delivery_date, zone, agree_to_terms

Metafield Valuemetafields.valuestring

The raw stored value of the metafield. Format depends on the metafield type (e.g., text, date, boolean, JSON).

Example values: 2025-11-10, true, #241194, 5a

Metafield Namespacemetafields.namespacestring

Logical grouping used to organize metafields by source or purpose.

Example values: custom, klaviyo, checkoutblocks

Metafield Typemetafields.typestring

The data type of the metafield value (e.g., text, date, boolean, JSON, reference).

Example values: date, boolean, json, single_line_text_field, customer_reference

Metafield Updated Datemetafields.updated_attimestamp

When the metafield was last updated, in shop time zone.

Example value: 2025-10-21 07:08:01

Metafield Created Datemetafields.created_attimestamp

When the metafield was first created, in shop time zone.

Example value: 2025-10-21 07:08:01

Order IDorder_idstring

The unique order ID, assigned by the main sales platform.

Example value: 4930225799243

Order Nameorder_namestring

The name of the order as assigned by the seller on the main sales platform.

Example values: #2188464, Ex-2163819-9

Sales Platformplatformstring

The sales platform where the order was processed.

Example values: Shopify, BigCommerce, WooCommerce, Amazon

Productsproducts_inforecord repeatedDetails about the products associated with the order (at the level of the variant), including name, product ID, variant ID, type, SKU, etc. Returns the latest product information, not necessarily the data at the time the order was placed.
Product IDproducts_info.product_idstring

The unique ID of the product as set within the main sales platform.

Example value: 3891505496131

Product Nameproducts_info.product_namestring

The name of the product as set within the main sales platform.

Example values: Green Soft Socks 3-Pack, Paring Knife Travel Case, Gift Subscription

Product Vendorproducts_info.vendorstring

The vendor of the product as set within the main sales platform.

Example values: Acme, XYZ Corp, Brandless

Product Typeproducts_info.product_typestring

The product type as set within the main sales platform.

Example values: Jackets, Coffee Mugs, Books

Product Tagsproducts_info.product_tagsrepeated string

Tags associated with the product, set in the main sales platform.

Example values: Upsell, Order Credits, discount_eligible

Product SKUproducts_info.product_skustring

The SKU (Stock Keeping Unit) for the product as set within the main sales platform.

Example values: GP-BACK-02, A02630, POP200NAVY

Product Variant IDproducts_info.variant_idstring

The unique identifier for a specific variant of a product as set within the main sales platform.

Example value: 29275946877001

Is Gift Cardproducts_info.is_gift_cardboolean

True if the product purchased is a gift card.

Possible values: true, false

Product Propertiesproducts_info.propertiesrecord repeatedCustom key–value properties attached to the product line item (e.g., personalization details, bundle metadata, app-specific fields).
Product Property Nameproducts_info.properties.namestringThe name or key of the product property.
Product Property Valueproducts_info.properties.valuestringThe value assigned to the product property.
Product Dutiesproducts_info.dutiesrecord repeatedImport duties or tariffs applied to the product.
Product Duty IDproducts_info.duties.duty_idstringThe unique identifier of the duty applied to the product.
Product Duty Tax Linesproducts_info.duties.tax_linesrecord repeatedTax lines charged on the product duty.
Product Duty Tax Line Amountproducts_info.duties.tax_lines.pricenumericThe tax amount charged on the product duty per tax line.
Product Duty Amountproducts_info.duties.pricenumericThe monetary amount of duty charged for the product.'
Product Priceproducts_info.product_name_pricenumeric

The price of a single product (to the buyer), before discounts. By default shown in the shop's currency.

Note: Tax will be included in the product price if the seller has configured the sale to require taxes in the main sales platform.

Total Product Discountproducts_info.discount_amount_for_productnumericThe amount discounted from the product price, before taxes. By default shown in the shop's currency.
Net Product Discountproducts_info.net_discount_amount_for_productnumericThe amount discounted from the product price, after taxes. By default shown in the shop's currency.
Product Units Soldproducts_info.product_name_quantity_soldnumericThe total number of individual units sold for the product.
Product Costproducts_info.single_product_costnumericThe cost of a single product (to the seller). By default shown in the shop's currency.
Shipping Cityshipping_citystring

The city of the shipping address.

Example value: San Francisco

Shipping Country Codeshipping_country_codestring

The country code of the shipping address. See list of countries.

Example values: US, CA, GB

Shipping Country Nameshipping_country_namestring

The full name of the shipping country. See list of countries.

Example values: United States, Canada, United Kingdom

Shipping Dateshipping_datedate

The most recent shipping-related date (in case of multiple shipments for the same order), selected from fields supported by the connected shipping platform (e.g., shipped, fulfilled, or shipping label created).

Example value: 2024-12-25

Shipping Providershipping_provider_idstring

The integrated shipping provider that manages and processes the order's shipment.

Example values: shipbob, shipstation

Shipping Stateshipping_statestring

The province or state of the shipping address.

Example value: California

Shipping State Codeshipping_state_codestring

The province or state code of the shipping address.

Example value: CA

Shipping Zip Codeshipping_zipstring

The zip/postal code of the customer's shipping address.

Example values: 48104, 18235-2239, CH25 9BH

Shop IDshop_idstring

The unique ID of the shop (often corresponds to the shop domain). Can be used to group or filter data by shop in multi-store reports.

Example values: example-US.myshopify.com, example-EU.myshopify.com

Shop Nameshop_namestring

The name of the shop. Can be used to group or filter data by shop in multi-store reports.

Example values: example-US, example-EU

Shop Timezoneshop_timezonestring

The designated timezone of the shop according to the

timezone database

.

Sourcesource_namestring

The origin of the order as designated by the seller on the main sales platform.

Example values: web, pos, tiktok

Tagstagsrepeated string

Tags associated with the order, assigned by the seller on the main sales platform.

Example values: Upsell, Order Credits, discount_eligible

Transactionstransactionsrecord repeatedDetails about transactions associated with the order, including payment information and status.
Transaction Created Datetransactions.created_attimestamp

The time at which the transaction record was created. Formatted according to the ISO 8601 international standard.

Example value: 2024-12-25 11:30:09

Transaction Processed Datetransactions.processed_attimestamp

The time at which the transaction was processed. Formatted according to the ISO 8601 international standard.

Example value: 2024-12-25 11:30:09

Transaction Payment Gatewaytransactions.payment_gateway_namestring

The payment gateway used for the transaction.

Example values: shopify_payments, paypal, gift_card

Transaction Currencytransactions.currencystring

The currency in which the transaction was processed.

Example values: USD, EUR

Transaction Statustransactions.statusstring

The status of the transaction.

Example values: SUCCESS, FAILURE, AWAITING_RESPONSE, PENDING, ERROR

Transaction Amounttransactions.amountnumericThe amount of the transaction.
Transaction Feestransactions.feesnumericThe fees associated with the transaction.

Measures

Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.

TitleIDTypeDescription
Amazon Estimated Feesamazon_estimated_feesnumeric

The estimated fees to be charged by Amazon for the order, based on products purchased.

Note that this amount is an estimate and is not final until Amazon reports on actual fees.

Cost of Goods (COGS)cost_of_goodsnumeric

The cost of goods for orders within the selected time frame (before refunds).

Imported from the main sales platform, or edit these in Cost Settings > Cost of Goods.

Currency Ratecurrency_ratenumericThe rate used to convert monetary values to the shop's currency. If no conversion was applied, the value is 1. To convert back to the original currency, divide by this rate.
Custom Expensescustom_expensesnumeric

Additional custom expenses associated with individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Gross Profitcustom_gross_profitnumeric

Custom gross profit for individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Gross Salescustom_gross_salesnumeric

Custom gross sales for individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Net Revenuecustom_net_revenuenumeric

Custom net revenue for individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Orders Quantitycustom_orders_quantitynumeric

The custom-defined quantity of orders to count for the single order_id.

Possible values: 0, 1

Import using the Enrich Orders Data API endpoint.

Custom Total Itemscustom_total_items_quantitynumeric

The custom-defined total number of items in the order.

Import using the Enrich Orders Data API endpoint.

Discountsdiscount_amountnumericThe total discount amount applied to the order, including shipping discounts.
Product Discount Amountdiscount_amount_for_productnumericThe total product discount amount applied to the order.
Shipping Discount Amountdiscount_amount_for_shippingnumericThe total shipping discount amount applied to the order.
Estimated Shipping Costsestimated_shipping_costsnumeric

Estimated shipping costs paid by the seller for orders within the select timeframe.

Edit these in: Cost Settings > Shipping

Gross Salesgross_product_salesnumeric

Gross sales revenue (before shipping, taxes, discounts, or refunds).

Gross Sales = Product Price x Units Sold

Handling Feeshandling_feesnumeric

Handling fees (e.g. boxing, packaging, or “pick & pack” services) paid by the seller for orders in the selected time frame.

Edit these in Cost Settings > Cost of Goods.

Order Revenueorder_revenuenumeric

Revenue earned after shipping, taxes, and discounts (before refunds).

Order Revenue = Gross Sales + Shipping + Taxes − Discounts

Payment Gateway Costspayment_gateway_costsnumeric

Payment processing fees (not including currency conversion fees) paid by the seller.

Edit these in Cost Settings > Gateway Costs.

Units Soldproduct_quantity_sold_in_ordernumericThe total number of individual product units sold in the order.
Refundsrefund_moneynumeric

Total amount returned to customers for refunded sales, refunded taxes, and refunded shipping. Calculated based on the order date.

Note that Triple Whale does not track refunds from third-party return management apps (e.g., Loop), so totals may vary from the sales platform.

Refunds = Refunded Sales + Refunded Shipping + Refunded Tax

Shipping Costsshipping_costsnumeric

Shipping costs paid by the seller for orders within the select timeframe.

Edit these in Cost Settings > Shipping.

Shipping Priceshipping_pricenumericThe total shipping price of the order (paid by the buyer), including shipping taxes and shipping discounts.
Sale TaxestaxesnumericTotal amount customers paid in taxes, before refunds.

Derived

Derived fields are metrics that are pre-calculated using multiple measures or advanced formulas.

TitleIDTypeDescription
Average Order Valueaovformula

The average order value (before shipping or taxes), as reported by the sales platform.

AOV = (Order Revenue - Shipping Price - Taxes) / Number of Orders

Lifetime Valueltvformula

The average order revenue per customer, for orders placed within the selected timeframe.

LTV = Order Revenue / Unique Customers

New Customer Ordersnew_customer_ordersformula

The total number of orders placed by new customers within the selected time frame.

Learn how Triple Whale classifies new/returning customers.

New Customer Revenuenew_customer_revenueformula

The total revenue derived from orders by new customers.

Learn how Triple Whale classifies new/returning customers.

New Customers Percentnew_customers_percentformula

The percentage of purchases made by new customers.

New Customers % = Number of New Customer Orders / Total Orders

Learn how Triple Whale classifies new/returning customers.

OrdersordersformulaThe total number of orders placed within the selected timeframe.
Non-Zero Ordersorders_with_amountformula

The total number of orders with a revenue greater than zero.

Non-Zero Orders = Count of Orders where Order Revenue > $0

Returning Customer Ordersreturning_customer_ordersformula

Number of orders placed by Returning Customers.

Learn how Triple Whale classifies new/returning customers.

Returning Customer Revenuereturning_customer_revenueformula

Amount of revenue derived from Returning Customers.

Learn how Triple Whale classifies new/returning customers.

Returning Customers Percentreturning_customers_percentformula

Percentage of orders placed by Returning Customers.

Returning Customers % = Number of Returning Customer Orders / Total Orders

Learn how Triple Whale classifies new/returning customers.

True Average Order Valuetrue_aovformula

The average non-zero order value (before shipping or taxes), as reported by the sales platform.

True AOV = (Order Revenue - Shipping Price - Taxes) / Number of Orders > $0

Unique Customersunique_customersformulaNumber of unique customers who placed orders within the selected timeframe.