> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> The data you can query with QueryfulQL, grouped by area

A query always starts with a dataset in its `FROM` clause. Each dataset covers one area of your store and groups the metrics and dimensions that belong together, so a query only uses the fields its dataset defines.

**Metrics** are the numbers a dataset lets you measure, like `net_sales` or `orders`. You return them with `SHOW`.

**Dimensions** are what you break those metrics down by, like `product_title`, `sales_channel` or `billing_country`. Group by them with `GROUP BY`, chart them over time with `TIMESERIES`, or filter on them with `WHERE`.

Many datasets also reach **linked records** (the order, its customer, the product), whose fields you write with a dot, like `order.customer.country`. See [Linked records](https://docs.queryful.app/queryfulql/records/overview.md).

## Sales

| Dataset | What it holds |
| - | - |
| [Sales](https://docs.queryful.app/queryfulql/datasets/sales.md) | Every sale on the day it happened: orders, gross and net sales, discounts, returns, shipping and taxes, matching Shopify's own reports. |
| [Orders](https://docs.queryful.app/queryfulql/datasets/orders.md) | One row per order on the day it was placed: totals, refunds, status, tags, discount codes and where the customer came from. |
| [Order line items](https://docs.queryful.app/queryfulql/datasets/order_lines.md) | One row per line item: what each order contained, with quantities, prices, discounts and custom properties. |
| [Returns](https://docs.queryful.app/queryfulql/datasets/returns.md) | Each returned item, dated by the day the return was created: quantity, value and reason, exchanges and fees collected, by product and variant option. |
| [Refunds](https://docs.queryful.app/queryfulql/datasets/refunds.md) | Each refund, by the day it was processed: refunds, amount refunded and average refund, shipping, shipping tax and duties refunded, and balancing adjustments, by refund type, adjustment reason and note. |
| [Restocks](https://docs.queryful.app/queryfulql/datasets/refund_lines.md) | Refunded units and whether their stock went back on sale: restocked quantity, rate and value, by location and product. |
| [Write-offs](https://docs.queryful.app/queryfulql/datasets/sale_write_offs.md) | Order balances written off and their reversals, per sale, by order and kind. |
| [Sales taxes](https://docs.queryful.app/queryfulql/datasets/sales_taxes.md) | Tax charged on sales by jurisdiction: tax name, rate, country, region and city, and what was taxed. |
| [Agentic sales](https://docs.queryful.app/queryfulql/datasets/agentic_sales.md) | Sales from or referred by AI agents, credited to any click, by agentic sales and referring channel. |
| [Products bought together](https://docs.queryful.app/queryfulql/datasets/product_pairs.md) | Products bought together on the same order, by the order day: how often each pair sells together and the attach rate. |
| [Profitability](https://docs.queryful.app/queryfulql/datasets/profitability.md) | Each order's revenue, costs and profit before returns, as Shopify measures them, by order and market. |

## Discounts and checkouts

| Dataset | What it holds |
| - | - |
| [Discounts](https://docs.queryful.app/queryfulql/datasets/discounts.md) | Every discount used on an order, automatic ones included, by the order day: the amount taken off and the orders it was used on, by discount name, code, method, class and type. |
| [Discount catalogue](https://docs.queryful.app/queryfulql/datasets/discount_catalog.md) | The discount catalogue with the orders that used each code: orders, order value, discount given and sales per discount, by type, method and status. |
| [Abandoned checkouts](https://docs.queryful.app/queryfulql/datasets/abandoned_checkouts.md) | Checkouts started and left unfinished: count, value, and how many customers came back to complete, by product and discount code. |
| [Draft orders](https://docs.queryful.app/queryfulql/datasets/draft_orders.md) | Draft orders and quotes by the day they were created: value, how many became orders, days to complete and open value, by status, tag, company and product. |

## Customers

| Dataset | What it holds |
| - | - |
| [Customers](https://docs.queryful.app/queryfulql/datasets/customers.md) | One row per customer, dated by their first order: lifetime spend and orders, location, marketing consent, cohorts and Shopify's RFM groups. |
| [Customer addresses](https://docs.queryful.app/queryfulql/datasets/customer_addresses.md) | Every address customers have saved today: customers and addresses by country, region, city, postcode and company. |
| [Customer segments](https://docs.queryful.app/queryfulql/datasets/segments.md) | The store's customer segments today: customers in each, and what they have spent and ordered in all. |
| [Companies](https://docs.queryful.app/queryfulql/datasets/companies.md) | B2B orders by company and location: companies ordering, orders, order value and average order value. |
| [Customer journey visits](https://docs.queryful.app/queryfulql/datasets/journey_visits.md) | Every visit to the store before each order, by the order day: visits, orders influenced and order value split evenly across visits (linear attribution), by source, source type, landing page, referrer, UTM, marketing event, position in the journey and days before the order. |

## Products and subscriptions

| Dataset | What it holds |
| - | - |
| [Products](https://docs.queryful.app/queryfulql/datasets/products.md) | The product catalogue today, one row per product: products, variants, those missing a cost, average price and stock value at price and at cost, by vendor, type, status, tag, collection and category. |
| [Price lists](https://docs.queryful.app/queryfulql/datasets/price_lists.md) | Catalogs and their price lists today (markets, B2B company locations, apps): fixed prices against each variant's own price, by catalog, currency and product. |
| [Selling plans](https://docs.queryful.app/queryfulql/datasets/subscription_plans.md) | Product sales on selling plans (subscriptions, pre-orders, try before you buy), by the day of the sale: net sales, units and orders, by plan, group and type. |
| [Subscriptions](https://docs.queryful.app/queryfulql/datasets/subscriptions.md) | Active subscriptions, and those added and canceled. |

## Inventory

| Dataset | What it holds |
| - | - |
| [Inventory](https://docs.queryful.app/queryfulql/datasets/inventory.md) | Stock at each location: units, value at cost and retail value, today or on any past date, and stock over time. |
| [Inventory adjustments](https://docs.queryful.app/queryfulql/datasets/inventory_adjustment_history.md) | Every change to stock and why: corrections, damage, receiving and orders, by reason, stock state and location. |
| [Inventory transfers](https://docs.queryful.app/queryfulql/datasets/inventory_transfers.md) | Stock moved between locations: units ordered for transfer, by origin, destination and product. |
| [Inventory shipments](https://docs.queryful.app/queryfulql/datasets/inventory_shipments.md) | Shipments between locations: units shipped, received, accepted and rejected, by carrier and product. |
| [Received items](https://docs.queryful.app/queryfulql/datasets/inventory_shipment_received_items.md) | What inbound shipments received, item by item: units and items received, accepted or rejected, by transfer, origin, destination and product. |
| [Purchase orders](https://docs.queryful.app/queryfulql/datasets/inventory_purchase_orders.md) | Stock ordered from suppliers: units, cost and tax, by supplier, status, destination and product. |

## Fulfillment and shipping

| Dataset | What it holds |
| - | - |
| [Fulfillments](https://docs.queryful.app/queryfulql/datasets/fulfillments.md) | Each shipment, dated by the day it was created: orders fulfilled, shipped and delivered, time to ship and deliver, tracking, on-time delivery and split shipments, by carrier, service and location. |
| [Fulfillment backlog](https://docs.queryful.app/queryfulql/datasets/fulfillment_orders.md) | Orders waiting to ship, now: how many, how many units, how long they have waited, holds and overdue orders, by location. |
| [Shipping labels](https://docs.queryful.app/queryfulql/datasets/shipping_labels.md) | Shopify Shipping labels: cost, count and average, what the orders charged for shipping, and shipping profit, by carrier and service. |
| [Shipping methods](https://docs.queryful.app/queryfulql/datasets/shipping_methods.md) | The shipping methods customers chose, by the order day: orders, shipping charged and shipping discounts, by method, rate source and delivery category. |

## Finance and payments

| Dataset | What it holds |
| - | - |
| [Payments](https://docs.queryful.app/queryfulql/datasets/payments.md) | Every payment and refund on the day it was processed: gross, refunded and net payments, gift card redemptions and payment fees, by gateway, method, card and location. |
| [Payment attempts](https://docs.queryful.app/queryfulql/datasets/payment_attempts.md) | Checkout payment attempts: total, unique, failed and successful, and authorization rates, by method, card, wallet and channel. |
| [Payouts](https://docs.queryful.app/queryfulql/datasets/payouts.md) | Shopify Payments payouts to your bank, by the day they were issued: amount, charges, refunds, adjustments and fees. |
| [Payout transactions](https://docs.queryful.app/queryfulql/datasets/balance_transactions.md) | Every movement on the Shopify Payments balance, with the payout that paid it: amount, fees and net, days to payout, by type and payout. |
| [Payments balance](https://docs.queryful.app/queryfulql/datasets/payments_balance.md) | The Shopify Payments balance over time, from a daily snapshot, by currency. |
| [Disputes](https://docs.queryful.app/queryfulql/datasets/disputes.md) | Chargebacks and inquiries by the day they were opened: count, value, rate, fraud, win rate and amount lost, by reason and status. |
| [Chargebacks](https://docs.queryful.app/queryfulql/datasets/chargebacks.md) | Shopify's own chargeback figures by day: chargebacks, fraud, amount, successful payments, the chargeback rate and the rolling 90-day rates card networks monitor, by reason and rapid resolution. |
| [Receivables](https://docs.queryful.app/queryfulql/datasets/receivables.md) | Orders on payment terms (B2B net terms and due on fulfillment), by the order day: what was invoiced, what's outstanding, overdue and paid, and how long payment takes, by company, terms and due month. |
| [Gift cards](https://docs.queryful.app/queryfulql/datasets/gift_cards.md) | Gift cards issued, sold, spent and disabled in the period, and what they hold at its end, including balances unused for a year. |
| [Store credit transactions](https://docs.queryful.app/queryfulql/datasets/store_credit_transactions.md) | Each store credit movement: credit added, spent and expired, by customer, order, event and source. |
| [Store credit balance](https://docs.queryful.app/queryfulql/datasets/store_credit_summaries.md) | Shopify's daily store credit liability: the starting and ending balance and its net change, by currency. |

## Online store

| Dataset | What it holds |
| - | - |
| [Sessions](https://docs.queryful.app/queryfulql/datasets/sessions.md) | Online store visits by people: sessions, visitors, bounce rate, cart, checkout and conversion rates, by device, location, referrer and landing page type. |
| [Referrers](https://docs.queryful.app/queryfulql/datasets/session_referrers.md) | Visits and conversion by the site that sent them, and by medium (social, search, email). |
| [UTM sessions](https://docs.queryful.app/queryfulql/datasets/utm_sessions.md) | Visits and conversion by UTM source, medium and campaign. |
| [Product page visits](https://docs.queryful.app/queryfulql/datasets/product_sessions.md) | Visits that started on a product page: sessions, bounce, add to cart and conversion by product, and units sold per visit. |
| [Searches](https://docs.queryful.app/queryfulql/datasets/searches.md) | Storefront searches by term: how many found something, how many found nothing, and how many led to a click. |
| [Search queries](https://docs.queryful.app/queryfulql/datasets/search_queries.md) | Online store searches by query and whether a result was clicked. |
| [Search conversions](https://docs.queryful.app/queryfulql/datasets/search_conversions.md) | Visits that searched, then clicked a result, added to the cart and bought. |
| [Product recommendations](https://docs.queryful.app/queryfulql/datasets/product_recommendations.md) | Visits shown product recommendations, then clicked, added to the cart and bought, by product. |
| [Recommendation conversions](https://docs.queryful.app/queryfulql/datasets/product_recommendation_conversions.md) | The store's product recommendation funnel per day: visits shown recommendations, clicks, cart additions and purchases. |
| [Web performance](https://docs.queryful.app/queryfulql/datasets/web_performance.md) | Page loads and how many rated good or poor on Core Web Vitals, by device and page type. |

## Marketing

| Dataset | What it holds |
| - | - |
| [Marketing attribution](https://docs.queryful.app/queryfulql/datasets/marketing_attribution.md) | Sales and orders credited to marketing campaigns under each attribution model. |
| [Marketing spend](https://docs.queryful.app/queryfulql/datasets/marketing_spend.md) | Ad spend, impressions, clicks, orders and sales the marketing channels report, with return on ad spend and cost per order. |
| [Marketing performance](https://docs.queryful.app/queryfulql/datasets/marketing_performance.md) | Sessions, sales and ad spend credited to the last click that wasn't direct, by marketing channel, campaign and autopilot activity. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.