Sales

Line-item sales — gross/net/total sales, discounts, returns, taxes and quantities by product, channel and customer.

190 fields — 136 dimensions, 54 metrics. Date clauses (SINCE, UNTIL, DURING) use createdAt.

The live, authoritative list is always GET /v1/datasets — this page is regenerated from the same catalog, but the endpoint reflects exactly what is deployed.

Query it

FROM sales
  SHOW orders
  GROUP BY product_title
  SINCE -30d

See Querying with SoloQL for the language.

This dataset is queryable through SoloQL; it has no record-retrieval endpoint.

Fields

FieldTypeRoleDescription
product_titlestringdimensionDisplay name of the product that your customers see — the CURRENT catalog title. For the title as it was on the order, use product_title_at_time_of_sale.
variant_titlestringdimensionDisplay name of the product variant — the CURRENT catalog variant title. For the title as it was on the order, use product_variant_title_at_time_of_sale.
skustringdimensionSKU of the product variant — the CURRENT catalog SKU. For the SKU as it was on the order, use product_variant_sku_at_time_of_sale.
vendorstringdimensionVendor of the product — the CURRENT catalog vendor. For the vendor as it was on the order, use product_vendor_at_time_of_sale.
product_typestringdimensionType (category) that you've assigned to the product.
product_title_at_time_of_salestringdimensionDisplay name of the product at the time of its sale.
product_variant_title_at_time_of_salestringdimensionDisplay name of the product variant at the time of its sale.
product_variant_sku_at_time_of_salestringdimensionSKU of the product variant at the time of its sale.
product_vendor_at_time_of_salestringdimensionVendor of the product at the time of its sale.
product_type_at_time_of_salestringdimensionType (category) assigned to the product at the time of its sale.
sales_channelstringdimensionChannel the sale was made on.
order_risk_levelstringdimensionShopify's fraud risk level for the order (None/Low/Medium/High).
order_namestringdimensionName of the order the sale belongs to, e.g. #1001.
order_payment_statusstringdimensionPayment status of an order, such as Pending or Paid.
customer_namestringdimensionName of the customer, surname first, so lists sort by family name. To match Shopify's reports exactly use Customer name (customer_display_name) instead.
customer_display_namestringdimensionCustomer's name as Shopify shows it. Falls back to the customer's email, then phone, when they have no name on file. Blank on orders placed without a customer.
new_or_returning_customerstringdimensionLabel specifying whether an order is from a new or returning customer.
billing_countrystringdimensionBilling country of the order.
shipping_countrystringdimensionShipping country of the order.
currencystringdimensionCurrency of the STORE, not of the order. To group by what the customer actually paid in, use Checkout currency.
order_checkout_currencystringdimensionCurrency the customer checked out in. Blank on older orders until the store is re-indexed, so filter to non-blank when reporting by currency.
reasonstringdimensionWhy the sale line exists — ORDER for the original sale, ORDER_EDIT for order-edit additions, RETURN or REFUND for reversals.
return_reasonstringdimensionReason the item was returned. Set on reversal rows only — order rows have no reason. Requires the read_returns scope; blank on stores that have not granted it. When one item is returned twice for different reasons, the earliest reason is used.
order_or_sales_reversalstringdimensionWhether the row is an order or a sales reversal — a return, cancellation or order edit.
line_typestringdimensionLine type, e.g. Product, Shipping, Sale adjustment, Gift card.
created_atdatedimensionWhen the sale occurred.
ordersnumbermetricDistinct orders in the group — order/product line items only, matching the classic reports. Sums across stores.
customersnumbermetricDistinct customers in the group — order/product line items only, matching the classic reports. Sums across stores.
returning_customersnumbermetricDistinct customers in the group who had ordered before. Sums across stores.
returning_customer_ratepercentmetricPercentage of returning customers relative to all customers who placed orders.
high_risk_ordersnumbermetricDistinct orders marked high risk by Shopify's fraud analysis.
high_fraud_risk_ratepercentmetricPercentage of orders marked high risk by Shopify's fraud analysis.
new_customersnumbermetricNumber of new customers who placed an order. Sums across stores.
orders_first_timenumbermetricNumber of orders from first-time customers. Sums across stores.
orders_returningnumbermetricNumber of orders from customers who've bought from you before. Sums across stores.
total_sales_first_timemoneymetricAmount new customers spent in your store (subtotal, discounts, taxes, fees, shipping, sales reversals).
total_sales_returningmoneymetricAmount returning customers spent in your store (subtotal, discounts, taxes, fees, shipping, sales reversals).
customers_with_limited_historynumbermetricCustomers counted as returning because their earlier orders predate the history we hold. Zero when your stores are fully synced.
amount_spent_per_customermoneymetricAverage cumulative amount customers have spent at your store.
number_of_orders_per_customernumbermetricAverage cumulative number of orders customers have placed at your store.
sales_countnumbermetricNumber of sale line items in the group (document count — value_count on createdAt). Sums across stores.
gross_salesmoneymetricLine item price times quantity, before discounts, returns and taxes.
net_salesmoneymetricGross sales minus discounts and returns.
total_salesmoneymetricNet sales plus taxes and shipping.
average_order_valuemoneymetricAverage value of orders placed, excluding any post-order adjustments.
discountsmoneymetricTotal discounts applied to the line item.
sales_reversalsmoneymetricValue of items removed from orders — returns, cancellations and order edits — before discounts and taxes.
taxesmoneymetricTotal tax on the line item.
shipping_chargesmoneymetricAmount customers spent on shipping.
shipping_charge_discountsmoneymetricDiscounts applied to shipping charges.
shipping_charge_taxesmoneymetricTax charged on shipping.
total_shipping_chargesmoneymetricShipping charges less shipping discounts, plus shipping tax.
dutiesmoneymetricDuties and import taxes charged on the line item.
additional_feesmoneymetricAdditional fees charged on the line item.
ordered_quantitynumbermetricUnits ordered.
returned_quantitynumbermetricUnits returned.
net_quantitynumbermetricOrdered units minus returned units.
quantity_orderednumbermetricItems ordered, excluding reversed quantity.
quantity_ordered_per_ordernumbermetricAverage items ordered, excluding reversed quantity.
reversed_quantitynumbermetricItems removed from orders — returns, cancellations and order edits — shown negative.
reversed_quantity_ratepercentmetricReversed items relative to items ordered.
total_sales_reversalsmoneymetricTotal value reversed — returns, refunds and cancellations including taxes and shipping, shown negative.
gross_sales_reversalsmoneymetricValue of reversed items before their discounts — returns, refunds and cancellations, shown negative. Blank until the store is re-indexed.
discount_reversalsmoneymetricDiscounts returned when items were reversed — positive, because reversing a discounted line gives the discount back. Blank until the store is re-indexed.
net_sales_reversalsmoneymetricValue of reversed items after their discounts — returns, refunds and cancellations, shown negative.
shipping_reversalsmoneymetricShipping charges returned on reversals, shown negative.
tax_reversalsmoneymetricTaxes returned on reversals, shown negative.
billing_address_idstringdimensionShopify identifier for the billing address.
billing_address_1stringdimensionFirst line of the billing address.
billing_address_2stringdimensionSecond line of the billing address.
billing_citystringdimensionCity of the billing address.
billing_companystringdimensionCompany of the billing address.
billing_first_namestringdimensionFirst name on the billing address.
billing_last_namestringdimensionLast name on the billing address.
billing_namestringdimensionFull name on the billing address.
billing_phonestringdimensionPhone number on the billing address.
billing_regionstringdimensionState or province of the billing address (e.g., California, Ontario).
billing_region_codestringdimensionState or province code of the billing address.
billing_postal_codestringdimensionPostal code of the billing address.
billing_country_codestringdimensionCountry code of the billing address.
shipping_address_idstringdimensionShopify identifier for the shipping address.
shipping_address_1stringdimensionFirst line of the shipping address.
shipping_address_2stringdimensionSecond line of the shipping address.
shipping_citystringdimensionCity of the shipping address.
shipping_companystringdimensionCompany of the shipping address.
shipping_first_namestringdimensionFirst name on the shipping address.
shipping_last_namestringdimensionLast name on the shipping address.
shipping_namestringdimensionFull name on the shipping address.
shipping_phonestringdimensionPhone number on the shipping address.
shipping_regionstringdimensionState or province of the shipping address (e.g., California, Ontario).
shipping_region_codestringdimensionState or province code of the shipping address.
shipping_postal_codestringdimensionPostal code of the shipping address.
shipping_country_codestringdimensionCountry code of the shipping address.
pos_location_idstringdimensionShopify identifier for your physical retail location.
pos_location_namestringdimensionName of your physical retail location.
customer_emailstringdimensionEmail address of the customer.
customer_first_namestringdimensionFirst name of the customer.
customer_last_namestringdimensionLast name of the customer.
customer_phonestringdimensionPhone number of the customer.
customer_notestringdimensionNote on the customer.
customer_tagsstringdimensionSet of tags associated with the customer.
customer_account_statusstringdimensionStatus of the customer's account.
customer_currencystringdimensionDespite the name this is the STORE's currency, recorded on the customer row. For what the customer actually paid in, use Checkout currency.
customer_accepts_marketingbooleandimensionWhether the customer accepts marketing.
tax_exemptbooleandimensionWhether the customer is tax exempt.
verified_emailbooleandimensionWhether the customer's email is verified.
customer_email_subscription_statusstringdimensionEmail marketing subscription status of the customer.
email_opt_in_levelstringdimensionEmail marketing opt-in level of the customer.
email_consent_updated_atdatedimensionWhen the customer's email marketing consent last changed.
customer_sms_subscription_statusstringdimensionThe customer's SMS marketing subscription status.
sms_opt_in_levelstringdimensionSMS marketing opt-in level of the customer.
sms_consent_updated_atdatedimensionWhen the customer's SMS marketing consent last changed.
sms_consent_collected_fromstringdimensionWhere the customer's SMS marketing consent was collected.
customer_first_order_datedatedimensionDate of the customer's first order.
customer_first_order_idstringdimensionShopify identifier for the customer's first order.
customer_first_order_namestringdimensionName of the customer's first order.
customer_last_order_datedatedimensionDate of the customer's last order.
customer_last_order_idstringdimensionShopify identifier for the customer's last order.
customer_last_order_namestringdimensionName of the customer's last order.
customer_number_of_ordersnumberdimensionNumber of orders the customer has placed across all time.
customer_amount_spentmoneydimensionAmount the customer has spent across all time.
order_utm_sourcestringdimensionUTM source of the campaign associated with the order.
order_utm_mediumstringdimensionUTM medium of the campaign associated with the order.
order_utm_campaignstringdimensionUTM name of the campaign associated with the order.
order_utm_contentstringdimensionUTM content of the campaign associated with the order.
order_utm_termstringdimensionUTM term of the campaign associated with the order.
marketing_channelstringdimensionMarketing channel or platform that drove the order.
order_marketing_event_typestringdimensionType of marketing activity that led to the order.
order_referrer_domainstringdimensionDomain of the site that led to the order.
order_referrer_namestringdimensionName of the site that led to the order.
order_referrer_source_classstringdimensionTraffic class of the referrer — search, social, email, ai, referral, direct. Grouped our way rather than Shopify's, whose own report classifies the same referrer inconsistently. Use order_referrer_source for the raw value.
order_referrer_name_normalizedstringdimensionName of the site that led to the order, folded to Shopify's grouping — subdomains merged, scheme/path/TLD stripped, lowercased. Use order_referrer_name for the raw value.
order_referrer_pathstringdimensionPath of the site that led to the order.
order_referrer_sourcestringdimensionReferrer type that led to the order (organic, email, etc.).
order_referrer_urlstringdimensionExternal page that referred a customer and led to the order.
first_visit_landing_pagestringdimensionLanding page of the customer's first visit before the order.
last_visit_landing_pagestringdimensionLanding page of the visit that resulted in the order.
user_agentstringdimensionBrowser user agent of the converting session.
days_to_conversionnumberdimensionDays from the customer's first visit to the order.
total_sessionsnumberdimensionNumber of sessions before the order was placed.
is_b2b_orderbooleandimensionLabel for whether the order is a B2B order.
company_idstringdimensionShopify identifier for the company.
company_namestringdimensionName of the company that placed the order.
company_location_idstringdimensionShopify identifier for the company location.
company_location_namestringdimensionThe company location or branch that placed the order.
order_idstringdimensionShopify identifier for the order.
is_canceled_orderbooleandimensionLabel indicating whether the order is canceled.
cancelled_atdatedimensionWhen the order was cancelled.
order_cancellation_reasonstringdimensionReason why the order was cancelled.
delivery_methodstringdimensionDelivery method of the order — the shipping line's title, as the merchant named it.
discount_namestringdimensionPromo code entered by the customer, or the name of an automatic or manual discount. Set on product lines only. Blank means either no discount or an order not re-fetched since 2026-08-08, when we began collecting it — read blank as unknown, not as zero. A backfill recovers the name (it re-fetches from Shopify); a plain re-index does not. A line with several discounts reports the first applied.
discount_classstringdimensionWhat the discount applied to: the whole order, specific products, or nothing in particular for a manual discount. Set on product lines only, with the same coverage caveat as discount name — read blank as unknown, not as zero.
discount_methodstringdimensionHow the discount was applied. Set on product lines only. Blank means either no discount or an order synced before we began collecting this — the two cannot be told apart, so read blank as unknown, not as zero. A line with several discounts reports the first applied.
discount_typestringdimensionWhether the discount took a percentage off or a fixed amount off. Set on product lines only. A line with several discounts reports the first applied.
order_emailstringdimensionEmail address on the order.
order_fulfillment_statusstringdimensionOrder's fulfillment status, such as Fulfilled.
order_numberstringdimensionNumber of the order.
number_of_itemsnumberdimensionNumber of items on the order.
order_statusstringdimensionStatus of the order (Open, Archived, Cancelled).
gatewaystringdimensionPayment gateway of the order.
order_notestringdimensionNote on the order.
order_tagstringdimensionTag associated with the order.
tracking_numberstringdimensionShipment tracking number on the order.
sale_item_typestringdimensionOur derived line classification — product, shipping, gift card, duty, additional fee.
sale_idstringdimensionShopify identifier for the sale line.
line_item_idstringdimensionShopify identifier for the line item.
publication_idstringdimensionShopify identifier for the sales channel publication.
publication_namestringdimensionName of the sales channel publication.
barcodestringdimensionBarcode of the variant sold.
product_tagstringdimensionTag associated with the product.
product_idstringdimensionShopify identifier for the product, which may have multiple variants.
product_variant_idstringdimensionShopify identifier for the product variant.
product_variant_pricemoneydimensionPrice of the product variant.
line_item_pricemoneymetricSum of line item unit prices.
line_item_discountsmoneymetricAll discounts applied to this line, including its share of any whole-order discount. For the order-level portion on its own, use Order-level discounts.
applied_discountsmoneymetricDiscount money taken off the sale, shown negative the way Shopify shows it. Includes each line's share of any whole-order discount.
discounted_ordersnumbermetricDistinct orders carrying a discount. Blank-name rows are excluded, so this reads zero for windows not yet backfilled — a backfill re-fetches the names from Shopify and fills them in.
order_level_discountsmoneymetricThe part of a line's discount that came from a discount on the whole order, rather than one aimed at specific products. Blank until the store is re-indexed.
line_item_discount_pricemoneymetricLine item price after discounts.
line_item_taxmoneymetricTax on the line item.
line_item_tax_ratepercentdimensionTax rate applied to the line item.
line_item_refundsmoneymetricRefunded amount on the line item.
gift_card_gross_salesmoneymetricGift card sales revenue, before discounts and sales reversals are factored in.
gift_card_net_salesmoneymetricGift card sales revenue, discounts and sales reversals factored in.
gift_card_discountsmoneymetricValue of discounts on gift card sales.
gift_card_outstanding_salesmoneymetricOutstanding (unredeemed) gift card sales value.
is_sale_adjustmentbooleandimensionLabel specifying whether the sale was an adjustment.
line_item_unit_gramsnumberdimensionWeight in grams of one unit of the line item.
line_item_total_gramsnumbermetricTotal weight in grams of the line item.
storestringdimensionThe shop the record belongs to. Filter with WHERE store IN ('Shop name') or GROUP BY store.