Sales

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

152 fields — 126 dimensions, 26 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.
variant_titlestringdimensionDisplay name of the product variant.
skustringdimensionSKU of the product variant.
vendorstringdimensionVendor of the product.
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_namestringdimensionName of the order the sale belongs to, e.g. #1001.
financial_statusstringdimensionPayment status of the order (paid, pending, refunded, etc.).
customer_namestringdimensionName of the 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.
currencystringdimensionOrder currency code.
reasonstringdimensionWhy the sale line exists — ORDER for the original sale, ORDER_EDIT for order-edit additions, RETURN or REFUND for reversals.
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.
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.
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.
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_statestringdimensionStatus of the customer's account.
customer_currencystringdimensionCurrency associated with the customer.
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_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.
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, closed, 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_typestringdimensionWhether the sale line is a product or a gift card.
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_discountsmoneymetricAmount deducted from specific line items in the sale.
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.