Dataset
Inventory ledger history datasets for AI training
An inventory dataset is the stock ledger of a business over time by item and location: on-hand balances and every movement that changed them, including receipts, issues, transfers, adjustments, scrap and write-offs with reason codes, plus the reorder parameters, lot and expiry data and valuation in force at each date. SourceX sources these from established retailers, distributors and manufacturers, which hold them in ERP and inventory systems. Each dataset is de-identified, with items, locations and suppliers tokenized, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Item-location stock ledgers with movements, adjustments, reorder settings, lots and valuation
- Typical systems
- SAP S/4HANA, NetSuite, Dynamics 365 Business Central, Oracle E-Business Suite, Infor, Epicor
- Typical history
- Varies by partner; specify years and ask how far back movement detail and parameter changes go
- Modality
- Structured ledger tables, balance snapshots and parameter change logs
- Delivery formats
- Parquet or CSV tables keyed by item and location, with a data dictionary and code lists
- Preparation
- Items, locations and suppliers tokenized; unit costs masked or indexed as agreed; user IDs replaced with roles
- Licensing
- Scoped per business unit, location set and period; permitted use and derivatives agreed per license
- Availability
- Sourced to your spec; parameter history depends on the holder's change logging
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| item_key | string | Pseudonymous item or SKU token, with category, base unit of measure and ABC class where assigned. |
| location_key | string | Token for the store, warehouse, plant or storage location, with location type and region band. |
| movements | array | Every posting that changed stock, with signed quantity, unit, posting date and the time it was entered. |
| movement_type | enum | Receipt, issue, transfer, adjustment, scrap or write-off on a common scale, with the source system's own code kept beside it. |
| reason_code | string | The stated reason on an adjustment or scrap posting, such as damage, expiry, count variance or sample, with the code list in force. |
| source_document | object | The purchase order, sales order, transfer, production order or count document the posting refers to, by token. |
| reversal_link | string | On a canceling posting, the movement it reverses, so pairs can be netted or studied. |
| balance_snapshots | array | On-hand quantity by stock status, such as unrestricted, in inspection, blocked or in transit, at period ends or extract dates. |
| lot | object | Lot or batch token with manufacture and expiry dates, and whether the item is serial tracked. |
| valuation | object | Costing method, unit cost at posting, extended value and any value-only revaluation. |
| replenishment_params | array | Reorder point, safety stock, minimum and maximum, order multiple and planned lead time, each with an effective date and who or what changed it. |
| replenishment_orders | array | Orders raised for the item and location with order date, quantity, promised date, receipt date and what triggered them. |
| open_commitments | object | Quantities on order, allocated and backordered at each snapshot date, which with on-hand give the inventory position. |
Field names from the table above; values are masked placeholders.
Example record
{
"item_key": "itm_5c20a",
"item": {
"category": "dairy_chilled",
"base_uom": "EA",
"abc_class": "A",
"shelf_life_days": 21
},
"location_key": "loc_store_114",
"replenishment_params": [
{
"effective_from": "2023-01-09",
"reorder_point": 36,
"safety_stock": 12,
"order_multiple": 12,
"planned_lead_time_days": 2,
"changed_by": "planner"
},
{
"effective_from": "2023-06-05",
"reorder_point": 60,
"safety_stock": 24,
"order_multiple": 12,
"planned_lead_time_days": 2,
"changed_by": "seasonal_profile_job"
}
],
"balance_snapshots": [
{
"as_of": "2023-06-11",
"unrestricted": 14,
"blocked": 0
},
{
"as_of": "2023-06-25",
"unrestricted": 22,
"blocked": 0
}
],
"movements": [
{
"doc": "md_88410",
"posting_date": "2023-06-12",
"entered_at": "2023-06-12T06:41:00Z",
"movement_type": "receipt_purchase",
"source_code": "PO-RCPT",
"qty": 48,
"lot": "lot_a91",
"unit_cost": 1.42,
"source_document": {
"type": "purchase_order",
"key": "po_30117"
}
},
{
"doc": "md_88977",
"posting_date": "2023-06-18",
"movement_type": "issue_sales",
"qty": -31,
"source_document": {
"type": "pos_weekly_summary"
}
},
{
"doc": "md_89544",
"posting_date": "2023-06-19",
"movement_type": "scrap",
"source_code": "SCRAP",
"qty": -6,
"reason_code": "EXP",
"reason_text": "past sell-by",
"lot": "lot_a77",
"value": -8.52
},
{
"doc": "md_89602",
"posting_date": "2023-06-20",
"entered_at": "2023-06-22T09:15:00Z",
"movement_type": "count_adjustment",
"source_code": "PHYS-ADJ",
"qty": -3,
"reason_code": "CNT",
"value": -4.26,
"reversal_link": null
}
],
"valuation": {
"method": "moving_average",
"unit_cost": 1.42,
"cost_basis": "indexed"
},
"replenishment_orders": [
{
"key": "po_30117",
"ordered": "2023-06-10",
"qty": 48,
"promised": "2023-06-12",
"received": "2023-06-12",
"trigger": "reorder_point"
}
],
"open_commitments": {
"as_of": "2023-06-25",
"on_order": 36,
"allocated": 0
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train replenishment models
Balances, the parameters in force and the orders and stock-outs that followed give a policy and its measured result for each item and location.
Predict shrink and write-offs
Dated adjustments with reason codes and cost support models that forecast expiry, damage and unexplained loss by item, location and season.
Detect posting errors
Reversals, unit-of-measure mistakes and negative balances are labeled examples for anomaly detection on stock postings.
Build inventory agents
An agent that explains why a balance changed, or proposes a parameter change, needs real movement histories to reason over.
Replay policies for evaluation
A full ledger lets a candidate policy be replayed against real receipts and lead times, with the business's own result as the baseline.
Use-case guides: Enterprise and computer-use agents, Finance and accounting agents, Private evaluation sets
What makes this data valuable
Ledger ties to balances
An opening balance plus movements reproduces each later snapshot for a stated share of item-locations.
Reasons populated
Adjustment and scrap rows carry specific reason codes with a dated code list, not one default code.
Parameter history dated
Reorder points, safety stock and lead times have effective dates, not only current values.
Two dates per posting
Each movement has the date it applies to and the time it was keyed, which exposes backdated postings.
Cost on every movement
Unit cost and costing method are present where licensed, so a write-off has a value as well as a quantity.
Reversals linked
A canceling posting points to the document it reverses.
Checklist
Inventory dataset
Adjustments are the rows that explain the balance
Most ledger rows are routine: a receipt against a purchase order or an issue against a sale is stock that moved as planned. An adjustment is different in kind: the business is recording that the book and the shelf disagreed, and saying why. Scrap for expiry, a write-off for damage, a count variance, a sample given away and a loss nobody can explain each arrive as a posting with a reason code and a cost. Each system marks them its own way. In Dynamics 365 Business Central they post from item journals and physical inventory journals as positive and negative adjustments. In SAP they carry movement type codes of their own, apart from the codes for receipts and issues. Ask the holder which transaction types and codes mark an adjustment, and for the code table.
A snapshot extract, the on-hand quantity per item and location on each date, holds none of this. A drop of nine units between two dates could be nine sales, or six sales and three units thrown away. Only the movement table tells them apart, and it is often the first thing cut when a holder archives old years or summarizes history into monthly totals. Ask how far back line-level movements survive, separately from how far back balances do.
Read the adjustments with their habits in mind. Unexplained loss is recognized when someone counts, not when it happens, so shrink appears as a step on count dates. A default reason code used on most postings carries little information. Reversals and unit-of-measure mistakes, such as a case received as a single unit and then corrected, create large pairs that cancel. Where negative balances are allowed, an issue posted before its receipt pushes stock below zero, and the entry that later clears it is a timing fix, not a loss. And some write-downs change value with no change in quantity.
Balances need the policy that produced them
An on-hand quantity is the output of a rule. Someone, or some job, set a reorder point, a safety stock, a minimum and maximum, an order multiple and a planned lead time for that item at that location, and the system proposed orders accordingly. To learn from a stock-out or a pile of excess, a model has to see the settings in force on that date along with the balance.
This is the hard part to source, because ERP systems usually store the current setting, not its history. In Business Central the values sit on the item card or the stockkeeping unit card. In SAP, earlier values of a material's planning fields survive only in change documents, which are written only for fields flagged for change logging. In NetSuite and other systems, ask whether system notes or an audit trail cover the item's planning fields. An extract that joins today's parameters to three years of balances gives the model information from the future. Ask for parameter changes as dated rows, each with its source: a planner, a mass update, a seasonal profile or an optimization tool.
With that history, each replenishment cycle becomes a decision with a result. The record shows when stock on hand plus stock on order fell to the reorder point, what was ordered, when it arrived against the planned lead time, and whether the shelf ran empty first or the receipt landed on stock that later expired. That requires open purchase orders and allocations at each date, not only on-hand. It also shows manual orders placed ahead of the trigger. Flag parameters left at system defaults, since a zero safety stock that nobody chose is not a policy.
What to check before licensing
- Confirm with the holder that unit costs, supplier identities and store-level shrink figures are masked, indexed or aggregated to the level it approved, and check the sample at that level.
- On the sample, add movements to an opening balance and compare with later snapshots. Record the share of item-locations that tie and ask what explains the rest.
- Ask how many years of line-level movements exist, as distinct from monthly summaries or balances, and whether archived years can be restored.
- Count adjustment rows by reason code. One default code on most postings means the reasons were not captured.
- Ask whether reorder points, safety stock and lead times come with change dates, from which log, and for which years.
- Check posting date against entry time on movements, and ask whether negative balances were allowed, since backdating changes what the balance was on a given day.
- Confirm how consignment, in-transit, quality-hold and customer-owned stock are flagged, and that units of measure and conversion factors are delivered.
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
How is this different from a stock level time series?
A ledger history holds every posting that changed the stock, while a stock level time series holds only the quantity on hand at each date. Each posting has a type, reason, document and cost, so each change can be explained. The time series can be rebuilt from the ledger, but not the other way round. If balances are all you need, say so. For shrink, write-off or replenishment work, ask for line-level movements.
Is this the same as warehouse management system data?
No. A warehouse management system records tasks inside a building: putaway, picks and counts by bin, user and device. The inventory ledger records the stock position of the business by item and location, including stores and plants, with valuation and replenishment settings. The two meet at receipts, shipments and count adjustments. Choose the ledger for policy and loss questions, and warehouse records for questions about work on the floor.
Can unit costs and shrink figures be included?
Sometimes, at the level the holder approves. Unit costs reveal supplier pricing and margins, and store-level shrink is commercially sensitive, so a holder may index costs to a base, band them, or aggregate shrink to region or category. Many loss models work with indexed cost and relative rates, while valuation work needs real amounts. State which you need in your request.
How far back do inventory histories go?
It varies by holder and by table. Balances and period totals often survive system migrations, while line-level movements get archived or summarized, and parameter change logs may start only when logging was switched on. Ask for the earliest date of each: movements, snapshots, costs and parameter changes. A shorter window with full detail can serve better than a longer one without it.
Which businesses hold this kind of data?
Retailers, wholesale distributors and manufacturers, and logistics providers that keep stock for clients. The shape differs by type. Retail ledgers usually have many locations and sales issues summarized from point of sale. Distributors often have fewer locations and more lot and expiry control. Manufacturers add material consumption and production receipts. Say which kind fits your model, since pooling them mixes very different movement patterns.
Are sales and demand data part of the dataset?
Only as stock issues. The ledger records units leaving for sales, production or transfers, which approximates demand while stock was available. It does not hold forecasts, promotions or lost sales. If you need those, request demand planning records as well, keyed to the same item and location tokens, so the two can be joined.
Related datasets
- Warehouse management system records
Task-level WMS history: receiving, putaway, replenishment, picking, packing, loading and cycle counts by bin
- Demand plans and forecast histories
Versioned forecasts, overrides, consensus plans and actual demand by item, location and period
- Supply chain and logistics operations records
Linked orders, shipments, tracking events, exceptions and freight documents from real operations
- Accounting and reconciliation workflows
Coded transactions, reconciliations and close records with reviewer corrections and approvals
- Purchase order histories from requisition to receipt
Purchase orders followed from requisition and approval through revisions, acknowledgment, receipt and invoice match
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 25 November 2026.