Skip to content

Dataset

Retail datasets of point-of-sale transactions for AI training

A retail dataset of point-of-sale transactions is the basket-level log from physical store tills: each receipt with its line items, quantities, prices paid, discounts, tender types, store, lane and timestamp, plus voids, returns and a pseudonymous loyalty key where the shopper identified themselves. SourceX sources these logs to a buyer's spec from established grocers, convenience chains, specialty retailers and restaurants, drawn from their POS back-office and sales-audit systems. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Receipt-level till transactions with every line, discount, tender, void and return, plus the store context needed to read them
Typical systems
Oracle Xstore and MICROS, NCR, Toshiba, LOC SMS, Square and Lightspeed tills; POS back-office and sales-audit databases
Typical history
Specified by the buyer; limited by how long the retailer kept transaction logs as opposed to daily summaries
Modality
Structured transaction, line, tender and event tables; item master and store calendar as dated reference tables
Delivery formats
Agreed per order; Parquet or CSV per entity with shared keys, or the till's original XML or TLOG files with a parsed copy
Preparation
Card numbers and payment tokens removed; loyalty IDs replaced with stable keys; cashier IDs pseudonymized
Licensing
Rights reviewed against the loyalty program's terms and the retailer's supplier and data-sharing agreements; permitted use set in the license
Availability
Sourced to your spec; supply is not guaranteed, and item-level detail depends on what the retailer may license
Structured recordsIllustrative

What a delivery contains

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

FieldTypeWhat it holds
transaction_idstringPseudonymous receipt ID built from store, register, business date and till sequence number.
business_datedateThe trading day the store booked the receipt to, which can differ from the calendar date after midnight.
storeobjectPseudonymous store with its format and coarse region.
registerobjectLane number and type, such as staffed lane or self-checkout, with the pseudonymous cashier.
timingobjectTill-clock times of the first scan and of tender completion, with the store's UTC offset.
transaction_typeenumSale, return, post-void, no-sale, paid-out, suspended, resumed or training mode.
line_itemsarrayLines in scan order with item key, department, receipt description, quantity or weight, unit, prices and sold or voided status.
line_items[].entry_methodenumScanned, keyed, PLU lookup, price-embedded barcode, or department key for an item not on file.
price_modifiersarrayEach discount on a line or the basket: promotion ID, coupon, loyalty price, markdown or manual override, with its amount.
totalsobjectSubtotal, tax, fees such as bottle deposits, and the total due.
tendersarrayEach tender with its type, such as cash, credit, debit, benefits card or gift card, and its amount; no card number or token.
loyaltyobjectStable pseudonymous key where a loyalty ID was presented, with a flag for store courtesy and employee cards.
original_transaction_refstringFor returns and post-voids, the receipt being reversed, where the till captured it.
context_refsobjectPointers to the item master version in force on the business date and to the store's row for that day.
Sample recordIllustrative

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

Example record

{
  "transaction_id": "txn_s0412_r07_20230617_004418",
  "business_date": "2023-06-17",
  "store": { "id": "st_0412", "format": "supermarket", "region": "US-Midwest" },
  "register": { "number": 7, "type": "staffed_lane", "cashier": "op_3391" },
  "timing": { "began_at": "2023-06-17T17:42:09-05:00", "ended_at": "2023-06-17T17:44:51-05:00" },
  "transaction_type": "sale",
  "line_items": [
    { "seq": 1, "item_key": "itm_00417", "department": "produce", "description": "BANANAS",
      "qty": 2.31, "uom": "lb", "regular_price": 0.59, "extended_price": 1.36,
      "entry_method": "plu_lookup", "status": "sold" },
    { "seq": 2, "item_key": "itm_51907", "department": "snacks", "description": "TORT CHIPS 13OZ",
      "qty": 3, "uom": "each", "regular_price": 4.29, "extended_price": 12.87,
      "entry_method": "scanned", "status": "sold" },
    { "seq": 3, "item_key": "itm_51907", "department": "snacks", "description": "TORT CHIPS 13OZ",
      "qty": -1, "uom": "each", "regular_price": 4.29, "extended_price": -4.29,
      "entry_method": "scanned", "status": "line_void", "reason": "customer_changed_mind" },
    { "seq": 4, "item_key": null, "department": "meat", "description": "MEAT",
      "qty": 1, "uom": "each", "regular_price": 7.42, "extended_price": 7.42,
      "entry_method": "department_key", "status": "sold", "note": "item not on file" }
  ],
  "price_modifiers": [
    { "applies_to_seq": [2], "type": "multi_buy", "promotion_id": "promo_2f6a",
      "description": "2 FOR 7.00", "amount": -1.58, "requires_loyalty": true }
  ],
  "totals": { "subtotal": 15.78, "tax": 0.00, "total": 15.78 },
  "tenders": [ { "type": "debit", "amount": 15.78 } ],
  "loyalty": { "key": "ly_9d2c71", "presented_by": "phone_lookup", "courtesy_card": false },
  "original_transaction_ref": null,
  "context_refs": { "item_master_version": "im_2023-06-12", "store_day": "sd_0412_2023-06-17" }
}

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

What AI teams use it for

Basket and next-item models

Baskets in scan order train co-purchase, substitution and next-item models on what shoppers actually combined in a store.

Demand forecasting with honest zeros

Item, store and day counts built from receipts and joined to closures and stock-outs separate no demand from no chance to buy.

Loss-prevention and exception detection

Voids, no-sales, overrides and receiptless returns, with cashier and register keys, are the events anomaly models are trained to rank.

Store operations agents

An agent asked why a category dipped on a Saturday needs the receipts, the item file of that week and the store's day to give a checkable answer.

Held-out retail evaluations

Weeks or stores withheld from training give test sets built on private transactions that public benchmark data cannot overlap.

Use-case guides: Private evaluation sets, Enterprise and computer-use agents, Finance and accounting agents

What makes this data valuable

Receipt grain

One record per transaction with every line, not units by item, store and day.

Scan order and timing

Line sequence and till-clock times survive, so substitutions and time at the lane can be read.

Non-sale events

Voids, suspends, no-sales and overrides are present with reason codes and operator keys.

Dated item master

Each receipt joins to the item file and hierarchy in force on its business date.

Store-day context

Closed days, outages and stock-out signals are explicit rows, so a missing sale can be explained.

Ties to sales audit

Receipts per store and day sum to the audited sales and tender totals, with differences listed.

Process

Retail dataset

This page covers retail point-of-sale transaction data.Illustrative

The receipt is the record, not the daily sales total

Most sales data that leaves a retailer has already been added up. The product activity feed sent to suppliers over EDI, transaction set 852, reports sales and inventory by item and reporting location for a period, and the public sets best known for retail forecasting are mostly item, store and day totals too. Those totals say how much sold, not what it sold with, in what order, or what nearly happened. The till keeps the fuller record in its transaction log, often called the TLOG, or in an XML form built on the ARTS retail schemas: one entry per register event, in sequence. Ask which format the retailer's tills write and which version.

A receipt shows which items left together and the order they were scanned, and order carries information. A line voided and followed by a different size of the same product is a substitution made at the lane. Loose produce is rung up by a four- or five-digit PLU code and a weight, so its quantity is a weight and not a count. Deli and meat labels printed in store use a barcode that starts with 2 and carries the price or the weight in the five digits before the check digit, so the same product scans as a different number on every pack. An item missing from the file is sold under a department key with a typed price and no identity.

The events around the sale are the first thing lost when receipts are netted into audited sales totals: line voids, post-voids that reverse a whole receipt after payment, suspended transactions, no-sale drawer openings, supervisor price overrides and returns without the original receipt. They are the raw material for loss-prevention models and for any agent that has to explain a till discrepancy. Ask whether the delivery is the till's own log or the audited copy. Ask how loyalty was captured too. Where cashiers scan a store courtesy card for shoppers who have none, one loyalty key collects thousands of unrelated baskets and looks like the most loyal household in the chain.

A zero means nothing without the store's day

A till log records only what sold. When an item sells nothing in a store on a given day there is no row, and the missing row has at least five explanations: nobody wanted it, the shelf was empty, the item was not ranged in that store or had been delisted, the store was closed, or the registers ran offline and their logs were uploaded late or lost. Filled in as zeros, all five become no demand, and a model learns to order less of whatever sold out.

The item file has to be the one in force on the day. Retailers reorganize the department, class and subclass hierarchy, and applying today's hierarchy to old receipts moves history between categories. When a pack changes size and is given a new barcode, one product to the shopper becomes two items to the system unless a link table joins them. Ask for the item master as dated snapshots, with links between superseded and replacement items.

The rest of the context is a table with one row per store per date, closed days included: trading hours, closures and register outages, a stock-out or on-hand signal, and weather and local events joined from outside sources. Check how the business date is assigned. A store open around the clock rolls its trading day at the end-of-day close, so a receipt printed at one in the morning can belong to the day before. Rebuilding this table afterwards means guessing which zeros were real.

What to check before licensing

  • Ask whether the delivery is the till's own transaction log or a sales-audit copy, and what sales audit removed, netted or corrected.
  • Reconcile the sample: receipts per store and day should sum to the audited sales and tender totals, and unexplained gaps point to offline tills or missing registers.
  • Check how loyalty-linked baskets were consented under the program's terms, how IDs were pseudonymized, and whether courtesy and employee cards are flagged.
  • Confirm that card numbers, truncated card digits, payment tokens and authorization codes are absent from tender lines, free-text fields and any receipt images.
  • Ask whether supplier agreements or contracts with data-sharing and market-measurement partners restrict the retailer from licensing item-level sales, and for which categories.
  • Request the item master and hierarchy as dated snapshots, and test that an item reclassified during the period keeps its old department on old receipts.
  • Ask for a store-day table that includes closed days and outage and stock-out flags, and for the rule that assigns a business date to receipts after midnight.

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

How is point-of-sale data different from the sales data retailers share with suppliers?

Point-of-sale transaction data is the individual receipt, while the sales data retailers share with suppliers is a total. Supplier feeds and portal reports give sales by item, store and period. Transaction data keeps each basket with its lines in scan order, the price paid after every discount, the tenders, and the voids and returns around it. Only the receipt shows what was bought together and what happened at the lane before the sale closed.

Can baskets be linked to the same shopper over time?

Only where the shopper identified themselves, usually with a loyalty card, phone number or app. Those baskets carry a stable pseudonymous key, and the rest are single unlinked receipts. The share of linked baskets differs by retailer and category, so ask for it by year. Card numbers and payment tokens are removed, so baskets cannot be linked through the payment card.

Are voids, returns and no-sale events included?

They can be, if the retailer kept the till's own log and you ask for them. Some archives hold only netted sales, with voids gone and returns reduced to negative lines. State in the request that you need line voids, post-voids, suspended transactions, no-sale events, overrides and returns as separate records with reason codes.

Does this cover restaurant and convenience-store tills?

Yes, with differences worth specifying. Restaurant systems record checks with modifiers, courses, tips and comps, and a check can stay open for hours. Convenience stores add fuel pump transactions and age-restricted items. Header, lines, discounts and tenders are structured the same way, but the reference data differs: a menu with modifier groups in place of an item hierarchy.

How far back does basket-level history usually go?

It varies by retailer, and it is often shorter than the sales history. Many retailers keep daily summaries for a long time and the full transaction log for less, and after a POS replacement the older logs may survive only in a data warehouse at reduced detail. Ask for a coverage table by year showing the grain available and the event types present.

What reference data should come with the transactions?

At least the item master with its hierarchy as it stood on each date, the store list with format and region, a store calendar with trading hours and closures, and the code lists for tenders, void and return reasons and promotion IDs. Price and promotion plans, stock ledgers and product attributes are separate datasets that join on the same item and store keys.

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 25 November 2026.

See if your company qualifies