Skip to content

Dataset

WooCommerce order and catalog datasets for AI training

A WooCommerce dataset is an extract of a store's own WordPress database: orders with their line items, fee, shipping, tax and coupon lines, refunds and order notes, joined to products, product variations, attributes, categories and coupons, with the extension-added meta fields the store actually used. SourceX sources it to a buyer's spec from established businesses that run WooCommerce on their own sites, on the older post-based order storage or on High-Performance Order Storage. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
A self-hosted WooCommerce store's orders, order items, refunds and order notes, joined to its products, variations, coupons and tax rates
Typical systems
WooCommerce on WordPress, on legacy post storage or High-Performance Order Storage, with the extensions the store ran
Typical history
Specified by the buyer; orders stay until deleted or anonymized under the store's retention settings, while products and customer accounts hold current values only
Modality
Structured order, item and catalog tables with key-value meta; free text in order notes and product descriptions
Delivery formats
Agreed per order; JSONL or Parquet per record type keyed by order ID, or a filtered SQL dump, with a dictionary of meta keys
Preparation
Customers replaced with stable keys; names, emails, addresses and IP addresses removed; note text scrubbed; credentials and payment tokens excluded
Licensing
Scoped per store and date range; permitted use set in the license; the terms of paid extensions and payment gateways are checked by merchant and buyer
Availability
Sourced to your spec by store type, order volume and extensions in use; supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
order_idintegerOrder ID from the HPOS orders table, or the shop_order post ID on legacy storage; items, notes and refunds point to it.
storage_modeenumWhether the order was read from HPOS tables or from posts and post meta, and whether compatibility mode was on.
statusstringOrder status slug such as wc-processing or wc-completed, including custom statuses from extensions, with created_via telling checkout, admin and rest-api orders apart.
customer_keystringStable pseudonym for customer_id, a WordPress user ID. Guest orders carry customer_id 0, so guests link across orders only if a key is derived from the billing email before it is removed.
totalsobjectOrder money fields as stored: currency, discount_total, shipping_total, total_tax, total and the prices_include_tax flag.
line_itemsarrayOrder items of type line_item with item meta: product_id, variation_id, name as sold, quantity, subtotal before discounts, total after, taxes and variation attributes.
other_linesarrayOrder items of type fee, shipping, tax and coupon: fee name, shipping method, tax rate with label and compound flag, coupon code token.
order_notesarrayOrder notes, stored as WordPress comments of type order_note: text, date, author shown as WooCommerce or a staff key, and the customer-note flag.
refundsarrayRefunds, each a child order of type shop_order_refund with a negative total, a reason, and negative line items for the units returned.
meta_dataarrayRemaining order and item meta as key and value pairs, each key mapped to the core feature or extension that wrote it.
productobjectThe product or product_variation post at extract time: type, sku, regular and sale price, stock status, categories and parent product.
couponobjectThe shop_coupon post behind a coupon line: discount_type, amount, usage_limit, usage_count and date_expires, with the code tokenized.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "order_id": 18452,
  "storage_mode": "hpos",
  "status": "wc-completed",
  "created_via": "checkout",
  "date_created_gmt": "2024-03-11T18:04:27",
  "customer_key": "cust_4be1",
  "totals": {"currency": "USD", "discount_total": "6.40", "shipping_total": "7.95", "total_tax": "4.26", "total": "69.81", "prices_include_tax": false},
  "line_items": [
    {"item_id": 30911, "name": "Trail Mug - Forest", "product_id": 2204, "variation_id": 2209, "quantity": 2, "subtotal": "64.00", "total": "57.60", "total_tax": "3.74", "attributes": {"pa_color": "forest"}}
  ],
  "other_lines": [
    {"type": "shipping", "method_id": "flat_rate", "total": "7.95"},
    {"type": "tax", "rate_id": 3, "label": "State Tax", "compound": false, "tax_total": "3.74", "shipping_tax_total": "0.52"},
    {"type": "coupon", "code": "[COUPON_17]", "discount": "6.40"}
  ],
  "order_notes": [
    {"date": "2024-03-11T18:04:31", "author": "WooCommerce", "note": "Card payment completed (Transaction ID: [GATEWAY_REF])"},
    {"date": "2024-03-11T18:04:31", "author": "WooCommerce", "note": "Order status changed from Pending payment to Processing."},
    {"date": "2024-03-11T18:04:32", "author": "WooCommerce", "note": "Stock levels reduced: Trail Mug - Forest (MUG-FOR) 14→12"},
    {"date": "2024-03-13T16:41:09", "author": "staff_07", "note": "Order status changed from Processing to Completed."},
    {"date": "2024-03-19T15:20:44", "author": "staff_07", "note": "[NAME] emailed, one mug arrived chipped. Refunding one."}
  ],
  "refunds": [
    {"refund_id": 18497, "date": "2024-03-19T15:22:08", "total": "-30.67", "reason": "Arrived chipped", "line_items": [{"refunded_item_id": 30911, "quantity": -1, "total": "-28.80", "total_tax": "-1.87"}]}
  ],
  "meta_data": [
    {"key": "_wc_order_attribution_source_type", "value": "organic", "written_by": "core"},
    {"key": "_gift_note", "value": "[REDACTED_TEXT]", "written_by": "gift options extension"}
  ],
  "product": {"type": "variation", "parent_id": 2204, "sku": "MUG-FOR", "regular_price": "32.00", "extracted_at": "2025-01-15"},
  "coupon": {"discount_type": "percent", "amount": "10", "date_expires": "2024-04-01"}
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Rebuild order timelines from note text

Order notes paired with stored fields train a model to turn gateway messages and status sentences into typed events.

Train support agents for small merchants

Staff notes beside line items and refunds show how a merchant resolved damaged, late and mischarged orders.

Map schemaless records onto a schema

Meta keys from many extensions, with a dictionary of what wrote each, are practice for mapping key-value data to typed fields.

Explain a total from its lines

Line items, fees, shipping, tax and coupon lines reconcile to the stored totals, including stores that enter prices with tax included.

Evaluate agents on real store states

Partial refunds, failed payments followed by a retry and admin-created orders make test items with a checkable answer.

Use-case guides: Customer support agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Storage mode stated

Each order states HPOS tables or post meta as its source.

Notes delivered whole

Every order note with date, author and customer flag in the store's language, not only a parsed summary.

Meta key dictionary

Each meta key mapped to the feature or extension that wrote it.

Refunds as child records

Refunds arrive with their own negative line items, so a partial refund ties to units.

Serialized values decoded

PHP serialized meta delivered as JSON, with rows that failed to decode flagged.

Catalog dated

Product and coupon records stamped with the extract date, since both hold current values.

Record timeline

WooCommerce dataset

This page covers wooCommerce store order and catalog records.Illustrative

The merchant holds the database, and its shape varies by store

WooCommerce is a plugin inside the merchant's own WordPress site. There is no hosted account to export from: orders, products and customers sit in the site's MySQL database beside its blog posts and user logins. On older stores an order is a post of type shop_order, with its billing email and total as post meta rows under keys such as _billing_email and _order_total. Products, variations and coupons are posts too, of types product, product_variation and shop_coupon. Order items have their own table, typed line_item, fee, shipping, tax or coupon, plus a table of item meta.

High-Performance Order Storage moved orders into dedicated tables for the order, its addresses, its operational data and its meta. A store can run on either, or on both in compatibility mode, which keeps the two in sync. The same fact is a column in one store and a meta key in another, so data from several stores must be normalized first. Refunds are child orders of type shop_order_refund with negative amounts in either storage.

A line item copies the product name, quantity, price and tax at the moment of sale, so an old order survives catalog changes. The product record holds only today's price, stock and description, and the product_id on an old line can point to a product since repriced or deleted. Every extension adds its own keys: a subscriptions plugin adds an order type and renewal links, an add-ons plugin writes choices to item meta, and a gateway stores its references on the order.

Order notes are the event log, and extension data has no schema

WooCommerce has no table of order events. When an order changes status, core writes an order note such as Order status changed from Pending payment to Processing. Gateways note charges and declines, stock reductions are noted with old and new quantity, and staff type their own remarks. Each note is a WordPress comment of type order_note, flagged in comment meta when it was sent to the customer, and notes stay in the comments table under either storage. The text is in the site's language, uses status labels and not slugs, and varies by gateway and release, so a timeline is parsed out of prose. Not every change is noted: an address corrected on the admin order screen, for one, typically leaves no note.

The REST API returns an order with line_items, tax_lines, shipping_lines, fee_lines, coupon_lines and meta_data, a list of id, key and value entries. Nothing says which plugin wrote a key or what it means, and notes are a separate request per order. Core has a product CSV exporter but no matching order export, so order files come from an Analytics report, an export extension the merchant configured, or a database dump. The dump is the most complete and also carries what must not ship: password hashes, session tokens, the payment token and API key tables, and gateway customer references in order meta.

Test a sample on orders with a failed payment and a partial refund. The status history parsed from notes should end at the stored status, and an order with no notes suggests the comments table was left out. PHP serialized values such as line tax data should arrive decoded. List every meta key with its frequency and ask which extension wrote it. Read the notes too: gateway messages hold transaction references and staff notes hold names. Ask as well whether the store's personal data retention settings trashed or anonymized older orders, since those rows arrive with their customer fields already blanked.

What to check before licensing

  • Have the merchant and counsel check the terms that govern its exported store data and API use: Automattic's for WooCommerce and any hosted services, and those of each paid extension and payment gateway.
  • Ask whether orders sit in High-Performance Order Storage tables, in legacy posts or in both, and when the store switched.
  • Request the plugins active over the period and, for every meta key delivered, the extension that wrote it. Confirm which fields come from paid extensions.
  • Confirm the extract leaves out WordPress password hashes and session tokens, the payment token and API key tables, and gateway customer or card references in order meta.
  • Check de-identification of customer accounts, billing and shipping addresses, customer_note and IP address, and above all order note text, where gateways and staff write names and references.
  • On a sample, rebuild each order's status history from its notes. Record the notes' language and the share of orders whose notes are missing or cannot be parsed.
  • Reconcile lines to totals, count old line items whose product_id no longer resolves, and ask whether trashed orders are in scope.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Does it matter whether the store uses High-Performance Order Storage?

It matters for extraction and should not matter in the delivered schema. On legacy storage an order is a post with fields in post meta, and under High-Performance Order Storage it is a row in dedicated order tables. A good delivery maps both to one layout and states each order's source.

Can order status history be delivered as structured events?

It can be, as events parsed from order notes, with the original text kept beside them. WooCommerce stores the current status on the order and writes each change as a free-text note, so no event table exists to export. Ask for the parse rate on a sample, and for the share of orders whose last parsed status disagrees with the stored one.

What is in meta_data, and how is it documented?

It holds whatever core features and extensions attached to the order or line item as key and value pairs: attribution, gift messages, subscription links, gateway references. WooCommerce supplies no schema for it. A usable dataset comes with a dictionary naming the extension behind each key and its value format.

Are customer accounts and payment details included?

Not as stored. Ask for customer accounts as stable keys and for payment details as the order's payment_method and payment_method_title only. Because an extract can start from a full database dump, the buyer should confirm that WordPress user credentials, saved payment tokens, API keys and gateway references were excluded at source, and that addresses and note text were de-identified.

Does the dataset include product price history?

Only as far as orders show it. Each line item keeps the price charged at the time of sale, but product and variation records hold the current regular and sale price and nothing earlier. A price series can be inferred from order lines. Ask whether dated catalog exports exist.

Is SourceX affiliated with Automattic?

WooCommerce is named to identify the system the records come from. That does not imply a partnership with or endorsement by Automattic. The records belong to the business that runs WooCommerce, 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.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell 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.

See if your company qualifies