Purchase order and invoice matching datasets: lines, receipts and exceptions Build linked procurement datasets with line-level references, partial receipts, duplicate exports, currency context and an illustrative worked bundle. Purchase-order and invoice matching datasets preserve the relationships needed to compare what was ordered, what was billed and, where applicable, what was received. Matching is not just finding similar filenames or equal totals. A valid comparison needs document identity, line references, quantity units, currency, relevant amendments and a policy for missing or conflicting evidence. The worked bundle below uses invented records to show a partial receipt and duplicate invoice exports. It demonstrates a specification, not an actual payment decision, permissioned enterprise archive or available Fiund product. Primary unit A linked business-document bundle Comparison level Header and line relationships, not totals alone Essential distinction Matching evidence versus authorization to pay Known exception Partial receipts, duplicate exports and unavailable context Begin with document identity and business meaning A purchase order expresses an order under a defined business process. An invoice requests payment, while a receipt or delivery record supplies different evidence about fulfillment. The source system’s conventions matter. Do not assume every organization uses the same identifiers, statuses or approval sequence. State which objects are available and which comparison the model is expected to perform. [OASIS Universal Business Language 2.3](https://docs.oasis-open.org/ubl/UBL-2.3.html) describes structured business documents, including order and invoicing forms. It is useful for understanding why different document types carry different semantics. A custom dataset should still preserve the actual source fields and mappings. Renaming an export field to match a standard-looking term does not establish that its business meaning is the same. Use stable identifiers before fuzzy similarity Preserve source IDs, document revisions, line references, supplier relationships and export lineage when they exist. A supplier name can vary across documents, while an internal ID may provide a more precise link. Conversely, an apparent exact ID can be reused across subsidiaries or periods. Keep the namespace and context, rather than stripping prefixes or leading zeros without a stated policy. When relationships are inferred rather than directly recorded, retain the method and uncertainty. A match based on amount and date is not the same evidence as a source-system link. Store candidate relationships separately from accepted ones. The evaluation target may include identifying unresolved candidates instead of forcing every invoice into a single order. Match lines without losing units and amendments A header total can match while individual lines do not. Compare item references, ordered and billed quantities, quantity units, unit price, discounts and any required tax or shipping treatment. A unit such as case, pack or each needs an explicit conversion before quantities can be compared. Do not assume that equal numeric quantities mean equal physical units. Order amendments can change price, quantity or delivery conditions. Preserve the amendment sequence and applicable version. A later invoice may correctly use revised terms while an earlier purchase-order export still shows the original values. Define which records are authoritative for the task and keep missing amendments visible as a limitation rather than marking the invoice wrong by default. A partial-receipt example The invented purchase order requests ten units at twelve dollars each. A receipt records six units, while the invoice bills ten. The corresponding pre-tax billed amount is 120 dollars; the received quantity valued at the stated order price is 72 dollars. The quantity difference is four units. These simple calculations reveal a partial-receipt condition, but they do not by themselves determine whether payment is authorized. An organization may allow prepayment, staged billing or other arrangements. Those rules are not supplied in this example. The dataset should therefore distinguish a factual mismatch from the policy decision that follows it. A model that labels every quantity difference as fraud or rejects every unmatched receipt is applying assumptions the source may not justify. Object Illustrative value Meaning Order line 10 each × USD 12 Ordered scope in mock record Receipt line 6 each Recorded fulfillment evidence Invoice line 10 each × USD 12 Billed scope Review result 4-unit difference Exception needing applicable policy Handle duplicate exports and credit adjustments The download includes the same mock invoice under two export IDs. Counting both as separate liabilities would be a source-reconciliation error. Keep original export references and a duplicate group, then define whether the training unit is the original document, one canonical source record or multiple representations of the same business event. Distinguish duplicates from corrected invoices, credit notes and reversals. Similar text and equal totals do not prove that two records are interchangeable. Preserve issue dates, referenced originals and source-defined statuses. A credit note can offset a prior charge without making the original invoice disappear. Review whether the task needs a current net position or the historical document sequence. Keep currency and amount derivations explicit Use currency codes and decimal conventions, and state whether values are major or minor units. Do not compare invoice and order totals across currencies without a supplied conversion rule, rate and date. An equal numeric value in different currencies is not a match. Similarly, a pre-tax amount should not be compared with an inclusive total as though a difference necessarily indicates an error. [FinQA official repository](https://github.com/czyssrs/FinQA) provides a research comparison in which numerical reasoning is represented with supporting facts and programs. A procurement collection can use a similar distinction between source values, operations and result. This does not make a financial-report benchmark an invoice archive; it explains why an auditable derivation is more informative than a bare match label. Design labels around evidence and uncertainty Useful labels can include exact source link, plausible candidate, partial receipt, price difference, unit mismatch, duplicate representation, missing source and conflicting evidence. Define their boundaries and whether several can apply to one bundle. A document can have a confident identity match and an unresolved quantity or policy issue at the same time. Have reviewers cite the source fields supporting each label. Do not ask general annotators to infer purchasing authority, commercial intent or fraud from document appearance. If a policy judgment is required, supply the appropriate rule and qualified review. The reference should distinguish factual reconciliation from decisions that depend on information outside the document bundle. Validate relationships and splits Run structural checks for unique identifiers, referenced lines, schema conformance and valid quantity/currency fields. Then inspect semantic cases: missing receipts, split shipments, merged invoices, multiple orders and corrections. [W3C PROV overview](https://www.w3.org/TR/prov-overview/) offers a framework for recording source entities and preparation activities; practical lineage can be simpler while still retaining the relationships needed to review transformations. Group source families, organizations, templates and duplicate representations before splitting. If the same invoice appears as an original PDF in training and an OCR export in evaluation, the split may not test the intended generalization. Keep document-link evidence and related-group identifiers with the delivery, together with an issue log that explains unresolved relationships. Sourcing and price components Count accepted linked bundles, original documents and annotated lines separately. A folder of invoices without corresponding orders or receipts supports a different task from a coherent three-document package. Ask whether the quote includes reconciliation, extraction, line annotation, policy references, expert review and correction of disputed examples. Fiund can discuss a request that defines the intended task, available source types, necessary relationships, formats, review criteria and permitted uses. Access and feasibility depend on the selected records and supporting documentation. No general price per invoice is asserted here: the labor and source scope of a simple header extraction differ substantially from reviewed, line-level matching across a coherent business history. Distinguish split billing from duplicate liability One purchase order can be billed across several invoices, while one invoice can cover several purchase orders. Preserve the line-level allocation rather than requiring a one-to-one header relationship. If an invoice bills four of ten ordered units and a later invoice bills the remaining six, the pair may be coherent even though neither equals the order total. The expected interpretation depends on retained references and applicable terms. Conversely, two exports of the same four-unit invoice should not be counted as eight billed units. A useful pilot includes both patterns and asks reviewers to identify the evidence that separates them. Do not infer a split-shipment policy when the source contains only coincidentally matching amounts. Download the worked specification The purchase order, receipt and invoice bundle is entirely fictional. Its amounts and identifiers exist only to demonstrate reconciliation rules, partial receipts and review evidence; they are not business transactions or accounting advice. The companion CSV records example checks rather than an executed audit. Real procurement data needs its own relationship validation, applicable policy, access permission and exception-handling agreement. [Illustrative PO/invoice/receipt JSON bundle](/downloads/po-invoice-receipt-worked-example.json) [Matching and exception worksheet CSV](/downloads/po-invoice-matching-review.csv) Does a matching total prove a correct match? No. Line identity, units, currency, revisions and source relationships can differ even when totals happen to agree. Does a mismatch mean an invoice should not be paid? Not automatically. Payment decisions depend on the applicable process and authority. Preserve factual reconciliation separately from a policy judgment. Can duplicate PDFs be used as independent examples? They can be retained as representations when relevant, but group their shared source identity and do not count them as independent business events. Research method: Fiund research desk; public sources, explicit worked-example labels and project-specific availability review. Editorial contact: hello@fiund.com. Sources OASIS Universal Business Language 2.3: https://docs.oasis-open.org/ubl/UBL-2.3.html FinQA official repository: https://github.com/czyssrs/FinQA W3C PROV overview: https://www.w3.org/TR/prov-overview/