Dataset
Shopify order and catalog records datasets for AI training
A Shopify dataset is an export of a merchant's Shopify store: orders with their line items, discount applications, payment transactions, fulfillment orders, fulfillments and refunds, together with the products, variants and inventory levels they were sold from, plus draft orders and abandoned checkouts where requested. SourceX sources it to a buyer's spec from established businesses that run Shopify, with customer records replaced by pseudonymous keys so repeat purchases stay linked. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Orders, line items, transactions, fulfillments and refunds from one Shopify store, with its product, variant and inventory records
- Typical systems
- Shopify online store and Shopify POS on any plan, including Shopify Plus, with Shopify Payments records and app metafields where in scope
- Typical history
- Varies by store; specify a date range and confirm the extract reached orders older than the API's default window
- Modality
- Structured order and catalog records with free text in notes, tags, line item properties and product descriptions
- Delivery formats
- JSONL from GraphQL bulk operations, Parquet per object, or the admin's CSV exports
- Preparation
- Customer names, emails, phones and addresses removed, customer IDs pseudonymized; notes, note attributes and line item properties screened
- Licensing
- Scoped per store and date range; permitted use agreed per license; Shopify's API terms and any app terms checked by owner and buyer
- Availability
- Sourced to your spec; history, channels and app data depend on the store, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| order_ref | string | Pseudonymous key replacing the Order's ID and name (the store's order number), stable across lines, transactions and refunds. |
| processed_at | datetime | The Order's processedAt time, which can differ from createdAt on an order imported from another system. |
| source_name | string | The Order's source name and app, separating online checkouts, Shopify POS sales, orders completed from a DraftOrder and other channels. |
| customer_key | string | Pseudonymous key for the Customer record, whose tags and order count reflect the extraction date, not the order date. |
| line_items | array | LineItem records with title, variant title, SKU, vendor, quantity and unit price as copied at the sale, plus custom properties. |
| line_items[].variant_ref | object | The LineItem's link to its ProductVariant and Product, empty for custom items and for products deleted since the sale. |
| discount_applications | array | The Order's discount applications (code, automatic, manual or script) and their allocations across LineItems. |
| transactions | array | OrderTransaction records with kind (authorization, capture, sale, void or refund), status, gateway, amount and parent transaction. |
| fulfillment_orders | array | FulfillmentOrder records with assigned location, status, request status and holds for each group of items shipped from one place. |
| fulfillments | array | Fulfillment records with the LineItems shipped, origin location, carrier, shipment status and dated tracking events. |
| refunds | array | Refund records with refund line items, quantity and restock type, shipping adjustments, the staff note and refund transactions. |
| tags_and_note_attributes | object | The Order's tags, note and note attributes, where staff, themes and apps leave workflow flags; screened for personal data. |
| metafields | array | Metafield records on the Order, Product or ProductVariant with namespace, key, type, value and owning app where known. |
| catalog_state | object | Product and ProductVariant records as of extraction (status, options, price, compare-at price, update time) with InventoryLevel quantities by location. |
Field names from the table above; values are masked placeholders.
Example record
{
"order_ref": "ord_7f3a91c2",
"processed_at": "2025-02-11T18:42:07-05:00",
"source_name": "web",
"customer_key": "cus_b20e77",
"line_items": [
{
"title": "Merino Trail Sock",
"variant_title": "Charcoal / L",
"sku": "MTS-CH-L",
"quantity": 2,
"price": "18.00",
"variant_ref": {"variant_key": "var_55d1", "product_exists": true}
},
{
"title": "Waxed Canvas Tote",
"variant_title": "Olive",
"sku": "WCT-OL",
"quantity": 1,
"price": "64.00",
"properties": [{"name": "Monogram", "value": "[INITIALS]"}],
"variant_ref": {"variant_key": null, "product_exists": false}
}
],
"discount_applications": [
{
"type": "discount_code",
"code": "WINTER10",
"value_type": "percentage",
"value": "10.0",
"allocated": "10.00"
}
],
"shipping_price": "8.00",
"total_price": "98.00",
"transactions": [
{"txn": "t1", "kind": "sale", "status": "success", "amount": "98.00"},
{"txn": "t2", "kind": "refund", "status": "success", "parent": "t1", "amount": "16.20"}
],
"fulfillment_orders": [{"assigned_location": "loc_east_wh", "status": "closed"}],
"fulfillments": [
{
"location": "loc_east_wh",
"shipment_status": "delivered",
"events": [{"status": "delivered", "happened_at": "2025-02-14T13:31:00-05:00"}]
}
],
"refunds": [
{
"created_at": "2025-02-24T10:15:33-05:00",
"refund_line_items": [{"sku": "MTS-CH-L", "quantity": 1, "restock_type": "return"}],
"note": "One pair too small, keeping the other",
"transaction": "t2"
}
],
"tags_and_note_attributes": {
"tags": ["gift", "returns-portal"],
"note_attributes": [{"name": "gift_wrap", "value": "yes"}]
},
"metafields": [{"namespace": "custom", "key": "delivery_window", "value": "weekday"}],
"catalog_state": {
"extracted_at": "2025-06-30",
"variants": [
{"variant_key": "var_55d1", "price": "21.00", "updated_at": "2025-05-02T09:00:00-04:00"}
]
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train order-support agents on real order states
Orders with their transactions, fulfillment orders and refunds show what an agent can still change at each point.
Model returns and refunds per line
Refund line items with restock type and the refund transactions tie money returned to the units that came back.
Ground merchandising assistants in what sold
Line items carry the title, variant and price sold, so demand can be read by variant even after the product changed.
Study discount behavior
Discount applications and their per-line allocations show which code, automatic or manual discount moved each line.
Build evaluation sets for commerce agents
Held-out orders with a known refund, exchange or cancellation let a lab score an agent's proposed action against what the store did.
Use-case guides: Customer support agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Full order history reached
An extract made with the read_all_orders scope covers the store's whole life, not the last 60 days.
Nested objects kept
Transactions, fulfillments with tracking events and refunds arrive as their own records.
Catalog captured over time
Dated product and variant snapshots, or a price log, let past and current prices be compared.
Metafield definitions supplied
A list of namespaces and keys with types and owning apps makes app data interpretable.
Channels labeled
Source name and location separate online, point of sale and draft orders.
Customer keys and customerless sales
One key per Customer record keeps repeat orders linked, and point of sale orders rung with no customer are marked.
System export
Shopify dataset
A Shopify order remembers what was sold, and the catalog does not
When a Shopify checkout completes, each line item takes a copy of the product title, variant title, SKU, vendor and unit price. From then on the order does not read the catalog again. Rename the product, raise the price or delete the variant, and the old order still shows what the customer bought and paid. A line item also keeps a link to its ProductVariant and Product. That link goes empty when the product is deleted, and a custom item typed into a draft order never had one.
The catalog works the other way. A Product and its ProductVariants hold their current title, description, options, price and compare-at price with a time of last update, and no list of earlier values. The compare-at price is a field the merchant types to show a markdown, not a record of what the price used to be. The store's own price history is therefore whatever was copied onto order lines. A price nobody paid, or a description changed between two sales, left no trace unless a snapshot or a feed file captured it.
This decides what can be learned. Price response can be read only at prices that sold. Joining old lines to today's catalog by SKU puts the current description on an earlier sale, and Shopify does not require a SKU to be unique, so one code can sit on two variants. Customer records are current state too. Order count, amount spent and tags describe the customer on the extraction date, so using them as features for an old order shows a model the future.
What the Shopify API, the CSV export and metafields give back
How the archive was pulled decides what is in it. An app reading orders through the Admin API sees only the last 60 days unless it also holds the read_all_orders scope, so an extract can be shallower than the store. Customer names, addresses, emails and phones are protected fields. A public app needs a separate approval to read them, and unapproved fields come back empty, which is not the same as de-identified. The GraphQL bulk operation, the usual route for a full pull, writes JSONL in which each nested record is its own line and points to its parent through a __parentId value. A loader that drops that pointer leaves line items with no order.
The admin's CSV order export writes one row per line item, with most order-level columns left blank on the rows after an order's first. It has financial status, fulfillment status and a refunded amount, but not the fulfillment events or which line a refund was for. Transactions come in a second file, the transaction history export, which holds captured payments and no authorizations.
Much of what makes a store particular was added by apps, such as subscription terms, return requests and bundle contents, written to metafields, order tags, note attributes and line item properties. A metafield has a namespace, a key, a type and a value, and its meaning is set by whoever wrote it, so the same idea has a different name in every store. To test a sample, count orders per month back to the store's opening, check that ten refunded orders each name the lines refunded, and ask for the metafield definitions with the app behind each namespace.
What to check before licensing
- Have the data owner and your counsel read Shopify's API terms on the use of exported data before a permitted use is agreed.
- Ask whether the extract was made with the read_all_orders scope, then count orders per month back to the store's opening date and look for a cliff.
- Confirm whether the source was the Admin API, a bulk operation or the admin's CSV exports, since the order CSV carries no fulfillment events or per-line refunds and transactions sit in a separate transaction history file.
- Check that customer names, emails, phones, addresses, order notes, note attributes and line item properties were de-identified, and that empty fields were not simply withheld by the API.
- List every metafield namespace, tag pattern and note attribute in the sample, and ask which app wrote each and whether its terms cover the data.
- Ask whether dated catalog snapshots exist. Without them, treat product, variant and inventory fields as their state on the extraction date.
- Verify that test, draft, imported and Shopify POS orders are flagged, and ask whether deleted orders and erased customers are absent or marked.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does a Shopify dataset contain that a generic order history does not?
It carries Shopify's own split between the order and the catalog. Each line item holds the title, variant, SKU and price copied at the sale, while fulfillment orders, fulfillments, transactions and refunds are separate linked records. Products and variants come as current-state tables, and app data arrives in metafields, tags and line item properties.
How far back can Shopify order history go?
As far back as the store itself, if the extract was made with the right access. An app reads only the last 60 days of orders through the Admin API unless it also holds the read_all_orders scope, so a shallow archive may reflect the extract and not the store. Ask for order counts by month back to the store's opening.
Can past product prices and descriptions be recovered from Shopify?
Only partly. The price and title on each order line are the ones in force at the sale, so sold prices can be rebuilt by date. Product and variant records keep only their current values and an update time. A price that never sold, or an earlier description, exists only if the merchant kept snapshots or feed files.
Is data written by third-party Shopify apps included?
It can be, where the data owner has the right to license it. Subscription, returns, loyalty and bundle apps leave metafields, tags, note attributes and line item properties on Shopify records. The manifest should say which namespaces are included and which app wrote them. Buyer and owner check each app's terms, which are separate from Shopify's.
How are customers de-identified in Shopify order data?
Customer records are replaced with pseudonymous keys before delivery, so repeat orders stay linked without names. Names, emails, phones and addresses are removed from the order. Free text needs its own pass, because order notes, gift messages and monogram text in line item properties often hold personal details. No method is perfect, so read a sample yourself.
Is SourceX affiliated with Shopify?
Shopify is named to identify the system the records come from. That does not imply a partnership with or endorsement by Shopify. The records belong to the business that runs Shopify, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- E-commerce order histories
Order-level records that follow every line to its end: canceled, kept, exchanged, returned or refunded
- Product catalogs and product information records
One holder's product master: variant trees, taxonomy, typed attributes, localized copy, images and the edit history from supplier submission to publication
- WooCommerce store order and catalog records
A self-hosted WooCommerce store's orders, order items, refunds and order notes, joined to its products, variations, coupons and tax rates
- BigCommerce store order and catalog records
A BigCommerce store's orders with every sub-resource, joined to the catalog, customer groups and price lists that explain the prices charged
- Loop Returns return and exchange records
Return requests with line items, two-level reasons, comments, the outcome taken, credit amounts and labels, keyed to the store orders they came from
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026. Own data like this? See how companies license it to AI developers.