Skip to content

Dataset

SPS Commerce EDI document datasets for AI training

An SPS Commerce dataset is one company's history of the business documents it exchanged with trading partners through SPS Commerce Fulfillment: purchase orders (850), acknowledgments (855), changes (860), advance ship notices (856), invoices (810), inventory advice (846), product activity data (852) and warehouse shipping orders and advices (940 and 945). SourceX sources it to a buyer's spec from established businesses that run SPS Commerce Fulfillment. Each dataset is de-identified and licensed for an agreed permitted use, within what each trading partner's agreement allows.

Dataset manifest

Sourced to your spec
What it is
One company's orders, acknowledgments, ship notices, invoices and inventory documents with each trading partner, usually in SPS's layout
Typical systems
SPS Commerce Fulfillment, used through the web portal or integrated with an ERP, accounting or warehouse system
Typical history
Set by where documents were stored: confirm how far back the portal still shows them; an integrated system may hold years
Modality
Structured documents with header, line and summary levels, plus free-text notes and partner references
Delivery formats
One XML or JSON document per transaction, or CSV per document type, with partner and qualifier code lists
Preparation
Trading partners, stores and items tokenized; contacts, addresses, vendor numbers and carton serial numbers removed; prices handled as agreed
Licensing
Scoped per trading partner, document type and date range, subject to each partner's vendor agreement; permitted use agreed per license
Availability
Sourced to your spec; depends on partner agreements and stored history; 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
document_idstringA token for one document in the account's Fulfillment transactions, or for the file an integration received or sent.
document_typeenumThe document's name and X12 number, such as Purchase Order (850), Advance Ship Notice (856), Invoice (810) or Warehouse Shipping Order (940).
trading_partnerstringA token for the trading partner ID in the document header, which identifies one retailer, distributor or logistics relationship.
po_referencestringA token for the purchase order number in the header, which acknowledgments, changes, ship notices and invoices carry back to the order.
purpose_and_typeobjectThe purpose code and order type code from the order header, which mark an original, change or cancellation and the kind of order.
datesarrayHeader dates, each with the qualifier that says what it means, such as requested ship or cancel after.
addressesarrayHeader addresses by address type code, such as ship-to and bill-to, reduced to a tokenized location number.
line_itemsarrayOrder lines with buyer part number, vendor part number, consumer package code, ordered quantity, unit of measure and purchase price.
store_allocationsarrayStore quantities under an order line, where a retailer orders for many stores on one purchase order.
acknowledgmentarrayLine statuses from the PO Acknowledgment (855), with the status code, acknowledged quantity and any revised date.
shipmentobjectThe Advance Ship Notice (856) levels of shipment, order, pack and item, with carton counts and shipped quantities.
invoiceobjectInvoice (810) lines with invoiced quantity and price, charges and allowances, payment terms and the total amount.
product_activityarrayProduct Activity Data (852) rows per item and store with quantity sold, quantity on hand and reporting period, where a partner sends them.
Sample recordIllustrative

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

Example record

{
  "po_reference": "po_4410872",
  "trading_partner": "tp_retailer_07",
  "documents": [
    {
      "document_id": "doc_a118",
      "document_type": "Purchase Order (850)",
      "received": "2024-02-05",
      "purpose_and_type": {
        "TsetPurposeCode": "00",
        "PrimaryPOTypeCode": "SA"
      },
      "dates": [
        {
          "DateTimeQualifier": "010",
          "Date": "2024-02-19"
        },
        {
          "DateTimeQualifier": "001",
          "Date": "2024-02-23"
        }
      ],
      "addresses": [
        {
          "AddressTypeCode": "ST",
          "location": "loc_dc_03"
        }
      ],
      "line_items": [
        {
          "line": 1,
          "BuyerPartNumber": "bpn_660214",
          "VendorPartNumber": "vpn_GL-12",
          "OrderQty": 48,
          "OrderQtyUOM": "CA",
          "PurchasePrice": 21.6
        }
      ]
    },
    {
      "document_id": "doc_a131",
      "document_type": "PO Acknowledgment (855)",
      "sent": "2024-02-06",
      "acknowledgment": [
        {
          "line": 1,
          "status_code": "IA",
          "quantity": 48
        }
      ]
    },
    {
      "document_id": "doc_a290",
      "document_type": "Advance Ship Notice (856)",
      "sent": "2024-02-19",
      "shipment": {
        "order_level": [
          {
            "pack_level": [
              {
                "cartons": 44,
                "item_level": [
                  {
                    "line": 1,
                    "ship_qty": 44
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "document_id": "doc_a312",
      "document_type": "Invoice (810)",
      "sent": "2024-02-20",
      "invoice": {
        "lines": [
          {
            "line": 1,
            "invoice_qty": 44,
            "price": 21.6
          }
        ],
        "total_amount": 950.4
      }
    }
  ]
}

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

What AI teams use it for

Draft outbound documents from an order

Orders paired with the acknowledgments, ship notices and invoices a supplier sent show how each partner expects to be answered.

Reconcile order, shipment and invoice

Linked documents per purchase order give examples of short shipments and price differences for matching models.

Forecast retail replenishment

Order history by partner, item and location, with 852 data where permitted, shows when and how much a retailer reorders.

Answer order desk questions

An agent can learn to say what a retailer ordered, changed and was billed for.

Evaluate document agents

Complete chains give test items such as finding lines where the invoice differs from the order.

Use-case guides: Enterprise and computer-use agents, Finance and accounting agents, Document AI, enterprise search and RAG, Private evaluation sets

What makes this data valuable

Chains complete per order

Most purchase orders arrive with their acknowledgment, ship notice and invoice.

Several trading partners

More than one retailer is present, each with a consistent token.

Stored SPS documents

The documents as SPS delivered them were kept, not only ERP rows built from them.

Qualifiers kept

Date, address and reference qualifiers survive with their code lists.

Changes and cancellations

860 changes and canceled orders are present as their own documents.

852 scope stated

The delivery says whether product activity data is included and at what level.

Record timeline

SPS Commerce dataset

This page covers SPS Commerce EDI document histories.Illustrative

One layout for every retailer, with the wire format left on the network

A supplier that trades through SPS Commerce Fulfillment often never handles X12. The retailer sends its EDI to SPS. The SPS network holds the map for that retailer's requirements and turns the purchase order into SPS's own document model, which the supplier receives as a form in the Fulfillment web portal or as a file delivered to an ERP, accounting or warehouse system, commonly in SPS's XML layout. An integration can be built on another file format, so ask which one was stored. Outbound documents go back the same way. One supplier's orders from many retailers therefore share one layout: a header with trading partner, purchase order number, purpose and type codes, dates and addresses, then line items, then a summary. In that layout, envelopes, control numbers, maps and each partner's implementation guide stay on the network side.

That decides what the data can teach. It is not material for learning to parse X12 segments or write partner maps, because the wire format is often absent. What it offers is business content that can be compared across partners without a parser per partner. Partner differences have not disappeared. They have moved into qualifiers and optional fields. One retailer identifies items by its own buyer part number and another by the GTIN in the consumer package code. One orders per store, with store quantities under each line, and another per distribution center. Keep the trading partner token on every document so a model can learn each partner's habits.

How outbound documents were made matters too. In the web portal a person builds the ship notice and invoice from the order on screen and prints carton labels, so errors are individual, and the form's own checks can stop some before sending. In an integrated account the supplier's system generates the documents, and errors repeat by rule. A dataset should say which population it is.

Where the history lives, and whose data the 852 is

The Fulfillment web portal is a working inbox. How far back it still shows documents is the first thing to ask, because a supplier that only used the portal may hold a short window. Long histories usually exist where an integration wrote each transaction into another system. The stored form is then often that system's sales order, shipment and invoice tables, with or without the SPS file kept beside them. Ask which you are getting. ERP records built from documents drop what the ERP did not map, such as notes, extra references and store allocations, and their outbound side shows the ERP's current state, not what was transmitted.

Product activity data, the 852, needs separate treatment. It is the retailer reporting its own sales and on-hand stock for the supplier's items over a period, often by store. It is the most useful document for demand modeling and the one least clearly the supplier's to license, because the retailer's vendor agreement or data-sharing terms may restrict it. Order prices, allowances and store lists can be covered by the same agreement. The data owner should check each trading partner's agreement before a history is scoped, and some partners may be excluded. Ask whether point-of-sale data came through 852 documents or a separate SPS analytics product with its own terms.

To test a sample, follow twenty purchase orders per partner and count how many have an acknowledgment, a ship notice and an invoice. Check that 860 changes are present and not folded into the order, and that store quantities add up to the line quantity. Compare invoiced quantity and price with the order: in the example record 48 cases were ordered and 44 shipped and invoiced. Ask whether onboarding test documents are mixed in.

What to check before licensing

  • Have the data owner and your counsel check what SPS Commerce's terms say about use of documents exported from Fulfillment and about API use.
  • Have the data owner check each trading partner's vendor agreement for limits on sharing its orders, prices and point-of-sale data, and ask which partners were excluded.
  • Ask whether the history comes from the Fulfillment portal, from stored SPS-format files or from ERP records built from them, and from what date each exists.
  • Ask for document counts by trading partner, document type and year, and check that inbound and outbound types are present.
  • Follow sampled purchase orders through acknowledgment, ship notice and invoice, count orders with a missing step, and ask whether 997 functional acknowledgments were kept.
  • Confirm whether 852 product activity data is in scope, whether it is at store or chain level, and that the partner's terms allow it.
  • Check that store numbers, ship-to addresses, buyer contacts, vendor numbers and carton serial numbers are tokenized consistently across document types.

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 an SPS Commerce dataset contain raw X12 EDI?

Often not. A company trading through SPS Commerce Fulfillment commonly receives and sends documents in SPS's own layout, as portal forms or as files delivered to its systems, while SPS translates to and from each partner's EDI on the network side. Some integrations exchange other file formats, so ask the data owner which format was stored, and state up front if you need segment-level data.

How far back does SPS Commerce document history go?

It depends on where the documents were stored. The Fulfillment web portal is a working tool, and the data owner should confirm how far back it still shows documents and what it can export. Companies with an integration often hold years of transactions in an ERP or a file archive. Ask for document counts by year and trading partner.

Can product activity (852) data be licensed?

Only where the trading partner's terms allow it. An 852 carries the retailer's own sales and on-hand figures, often by store, and the retailer's vendor agreement or data-sharing terms may limit onward use. The data owner should check each partner's agreement with counsel. A dataset can be scoped without 852 documents.

Are documents from different retailers comparable?

In layout, yes. SPS delivers every partner's documents in one model, so a purchase order has the same header and line fields whoever sent it. In content, partly. Partners differ in which item identifiers they use, whether they order by store or distribution center, and which dates and references they send.

Does it matter whether the supplier used the web portal or an integration?

Yes. In the portal, a person creates each ship notice and invoice from the order, so outbound documents reflect manual entry and history reaches only as far back as the portal still shows. With an integration, the supplier's own system generates the documents and usually stores them for longer. Ask which applies to each trading partner and period.

Is SourceX affiliated with SPS Commerce?

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

  • EDI message histories

    Raw trading-partner messages with acknowledgments, partner maps and translated application records

  • Purchase order histories from requisition to receipt

    Purchase orders followed from requisition and approval through revisions, acknowledgment, receipt and invoice match

  • Retail point-of-sale transaction data

    Receipt-level till transactions with every line, discount, tender, void and return, plus the store context needed to read them

  • Camelot 3PL warehouse records

    One third-party warehouse's records per client Account: Items, Receipts, Inventory lots by Location, Orders, Bills of lading, Cycle counts, EDI transactions and the Storage, Handling and Accessorial charges billed

  • Cin7 inventory and order records

    One seller's products, sales with all their stages, purchases, assemblies and stock documents, plus availability by location at extract

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