Dataset
Accounts payable datasets of invoices and exceptions for AI training
An accounts payable dataset is a set of supplier invoices as received, as PDF, scan or EDI, each joined to the fields keyed from it, the general ledger coding, the approval route, the match result against purchase order and receipt, and the payment that settled it. Mismatched invoices carry the exception reason and the steps that cleared them. SourceX sources these to a buyer's spec from established businesses whose accounts payable departments, shared service centers or AP outsourcers hold them in AP automation tools and ERP payables modules. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Supplier invoices as received, joined to posted fields, GL coding, approval route, match result, exceptions and payment
- Typical systems
- SAP, Oracle Payables and NetSuite payables modules; Coupa, SAP Ariba, Basware, Tipalti and similar AP automation tools
- Typical history
- Varies by data owner; images, capture output and workflow history are often retained by different systems
- Modality
- Invoice PDFs, scans and EDI or XML messages; structured header, line, match, workflow and payment records
- Delivery formats
- Agreed per order; redacted original files with JSONL records keyed to each file; EDI and XML as received
- Preparation
- Supplier names, addresses, tax IDs and bank details removed or replaced in fields and on page images; approvers pseudonymized
- Licensing
- Rights reviewed per dataset; supplier pricing under confidentiality terms is a point to confirm; permitted use set in the license
- Availability
- Sourced to your spec; exception counts and image retention depend on the data owner's systems; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| invoice_id | string | Pseudonymous ID joining the file, the captured and posted fields, the workflow and the payment. |
| intake | object | Arrival channel, such as AP mailbox, supplier portal, EDI or paper scan, with file type and receipt time. |
| document_files | array | The invoice as received, with attachments and the regions redacted, by type. |
| captured_fields | object | What the capture engine extracted, per field with its confidence, before anyone corrected it. |
| posted_header | object | The header as finally posted: invoice number, dates, currency, amounts and payment terms. |
| field_corrections | array | Each change between capture and posting, with old and new value, role and stage. |
| lines | array | Posted lines with description, quantity, unit of measure, unit price, tax code and the order line matched. |
| gl_distribution | array | Account, cost center and project charged per line, and whether a person or a rule coded it. |
| match_result | object | Match type, the order, receipt and invoice values compared as of the match date, tolerance applied and outcome. |
| exceptions | array | Each hold with its type, the system's own reason code, amount at stake, dates and release reason. |
| resolution_steps | array | Ordered actions that cleared a hold, with role, date, what changed and any workflow comment. |
| approval_route | array | Approvers by role in order, with decisions, timestamps, delegations and rejections. |
| payment | object | Payment date, method, amount paid, discount taken and credit memos netted, with bank details excluded. |
| supplier_profile | object | Pseudonymous supplier ID with spend category, country and an invoice layout cluster. |
Field names from the table above; values are masked placeholders.
Example record
{
"invoice_id": "inv_5c81d0",
"intake": {"channel": "ap_mailbox", "file_type": "pdf_image_only", "pages": 1, "received_at": "2024-03-05T14:12:00Z"},
"document_files": [{"file": "inv_5c81d0.pdf", "redactions": ["remit_to_bank_account", "supplier_tax_id", "contact_name"]}],
"captured_fields": {
"invoice_number": {"value": "INV-00812O", "confidence": 0.71},
"po_number": {"value": "PO-031877", "confidence": 0.96}
},
"posted_header": {"invoice_number": "INV-008120", "invoice_date": "2024-03-04", "currency": "USD", "net": 500.00, "tax": 41.25, "gross": 541.25, "terms": "net_30"},
"field_corrections": [{"field": "invoice_number", "from": "INV-00812O", "to": "INV-008120", "by_role": "ap_clerk", "stage": "validation"}],
"lines": [{"n": 1, "description": "Filter cartridge, 10 inch", "qty": 40, "uom": "EA", "unit_price": 12.50, "po_line": 10}],
"gl_distribution": [{"line": 1, "account": "received_not_invoiced", "source": "po_line"}],
"match_result": {"type": "three_way", "as_of": "2024-03-05", "po_qty": 40, "received_qty": 36, "invoiced_qty": 40, "po_price": 12.50, "qty_tolerance_pct": 0, "outcome": "held"},
"exceptions": [{"type": "billed_over_received", "reason_code": "QTY_OVER_RECEIPT", "amount_at_stake": 50.00, "opened": "2024-03-05", "closed": "2024-03-12", "release_reason": "credit_received"}],
"resolution_steps": [
{"n": 1, "t": "2024-03-06", "role": "ap_clerk", "action": "asked_receiving_to_confirm_count"},
{"n": 2, "t": "2024-03-07", "role": "receiving", "action": "confirmed_36_received", "comment": "4 damaged in transit, refused at dock"},
{"n": 3, "t": "2024-03-07", "role": "ap_clerk", "action": "requested_credit_memo"},
{"n": 4, "t": "2024-03-12", "role": "ap_clerk", "action": "matched_credit_memo", "credit_gross": 54.13}
],
"approval_route": [{"step": 1, "role": "ap_supervisor", "decision": "release_approved", "t": "2024-03-12T16:40:00Z"}],
"payment": {"paid_on": "2024-04-03", "method": "ach", "amount": 487.12, "credit_netted": 54.13},
"supplier_profile": {"supplier_id": "sup_0392", "category": "mro_supplies", "layout_cluster": "lc_117"}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train extraction on posted values
Page images paired with posted values teach a model the fields a payables team needs, not only the characters printed.
Train exception handling for AP agents
Holds with reason codes and resolution steps show which action cleared each kind of mismatch, and when the right action was to wait.
Predict GL coding for invoices without an order
Account and cost center choices on non-PO invoices, with recodings after rejection, are labels for coding models.
Model approval routing
Routes with roles and rejections let an agent learn who must sign off on what and which invoices come back.
Evaluate touchless processing
Held-out invoices with known postings and outcomes measure how many an agent would process correctly unaided.
Use-case guides: Finance and accounting agents, Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Capture output kept
The value the capture engine read is stored beside the posted value.
Images linked by ID
Each file is tied to its posted invoice by a system document ID.
System reason codes
Holds carry the ERP's own codes and release reasons.
Recorded resolution steps
Each step that cleared a hold is an event with a role and a date.
Values as of the match
Order and receipt values are the ones the match saw, before any amendment.
Stable supplier IDs
Pseudonymous supplier and layout IDs allow test sets made of unseen suppliers.
Value drivers
Accounts payable dataset
The invoice image paired with what was finally posted
Public invoice sets stop at extraction. An annotator transcribes what is printed, so the label is the page. In accounts payable the value that matters is the one finally posted, and it differs from the page in regular ways. The letterhead shows a trading name and the posting goes to a supplier record under the legal entity. The purchase order number on the invoice is wrong or missing, and the clerk found the right one. A quantity billed by the case is converted to the unit on the order. A model trained on transcription learns to read. One trained on posted values learns what the payables team needed from the page.
The corrections between capture and posting are the densest signal. AP automation tools run a capture step and show uncertain fields to a clerk, who fixes them before the invoice moves on. Where the tool kept both values, every correction is a labeled error made by a real extraction system on a real document: a letter O read for a zero, the ship-to address taken for the bill-to, a subtotal picked up as the total, a credit memo read as an invoice. Some tools overwrite the captured value at validation, so ask whether both survive. Images usually sit in a separate archive, and an ERP extract alone contains none.
The channel matters. Invoices that arrive as EDI or structured e-invoices, such as an X12 810 or an EDIFACT INVOIC message, never pass through capture. Their errors are mapping errors, a wrong unit of measure code or order line number, and they should be labeled apart from scans and PDFs. So does the split. A supplier sends the same layout every month and a few suppliers often send most of the volume, so a random split puts one template in both training and test. Ask for a stable pseudonymous supplier ID and a layout cluster on every record, so whole suppliers can be held out.
Exceptions are the scarce part
An invoice that agrees with its purchase order and receipt is matched and paid without anyone deciding anything. It teaches extraction and little else. The work is in the invoices that do not match. A three-way match compares the invoice with the purchase order and the goods receipt inside tolerances the company has set, and anything outside is held with a reason. SAP blocks such an invoice for payment and records a blocking reason on the item, such as price, quantity, date or quality. Oracle Payables places named matching holds for price and for quantity against the order and the receipt, and stores a release reason when a hold comes off. Ask which codes the source system uses and what each one means.
The code is where a case starts. The label an agent needs is the path that cleared it. A quantity hold can end with receiving posting a late receipt, the buyer amending the order, the supplier issuing a credit memo, AP short-paying, or an approver overriding the tolerance. Which one happened depends on facts held outside the payables tables, in the workflow comment and the order's change history. Many missing-receipt holds clear with no action when the receipt is booked a few days later, so part of the skill is knowing when to wait and when to chase. Ask for the ordered steps with roles and timestamps.
Two gaps make exception records misleading. Tolerances are policy, so the same variance passes at one company and holds at another, and each record should carry the tolerance applied. And the order and receipt values must be those at the time of the match. Once a buyer amends the price on the order, a current-state extract shows an invoice that agrees with its order and a hold with no visible cause. Invoices with no order have no match at all. Their decisions are coding and approval, so count them separately.
What to check before licensing
- Confirm the files are the invoices as received, linked to posted documents by a system ID, and ask how far back images, capture output and workflow history each go.
- Ask whether the capture engine's original values are stored or were overwritten when a clerk validated the invoice.
- Inspect sample pages, including footers and remittance slips, and confirm supplier bank details and remittance account numbers are removed from images as well as fields.
- Ask which supplier contracts carry confidentiality terms that cover pricing, and whether those suppliers' prices are excluded, masked or in scope of the license.
- Request counts by exception reason and resolution path, and confirm the steps come from workflow logs and linked documents, not inference.
- On a sample of price and quantity holds, check that the order and receipt values in the record are those at the time of the match.
- Ask for the distribution of invoices per supplier and layout, and confirm credit memos, non-PO and EDI invoices are labeled.
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 public invoice datasets?
An accounts payable dataset continues past the page to what the company posted, coded, matched, approved and paid. Public invoice sets stop at extraction, where an annotator marks what is printed. That gives ground truth for what the business accepted, and adds the exception and approval history that a document-only set does not have.
What counts as an invoice exception?
An invoice exception is any invoice the system would not pass for payment without a person. The common kinds are a price above the purchase order, a quantity above what was ordered or received, a missing goods receipt, a missing or closed order, a suspected duplicate and a tax or supplier mismatch. Specify the kinds and how many of each you need.
Are supplier bank details and identities removed?
Supplier bank details and identities should be removed, and you should check both the fields and the page images. Invoices print remittance bank accounts, tax IDs, addresses and contact names on the page itself, so removing them from the structured record is not enough. Ask how redaction was applied to images, then inspect a sample yourself. No de-identification method is perfect.
Can supplier prices be included?
Supplier prices can be included only where the data owner's contracts with its suppliers allow it. Unit prices on an invoice may be covered by confidentiality terms in those contracts, and that has to be checked, with counsel where needed, before the prices are in scope of a license. Where prices are masked instead, the match logic stays intact only if invoice, order and receipt values are transformed the same way.
Does the dataset include invoices without a purchase order?
The dataset can include invoices without a purchase order if you ask for them. Non-PO invoices, such as utilities, rent and professional fees, have no match step. Their value is in the coding and approval: which account and cost center the invoice was charged to, who approved it and which were rejected or recoded. Say what mix of PO and non-PO invoices you need.
How far back do invoice images and workflow histories go?
How far back the history goes varies by system, so ask about each layer separately. Page images often live in a separate archive with its own retention, capture output may be overwritten at validation, and workflow comments may sit in an AP automation tool adopted later than the ERP. The usable history is the period where all layers overlap.
Related datasets
- 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
- Employee expense reports with receipts and audit outcomes
Submitted expense reports with line items, receipt images, card matches, policy flags and approval and audit decisions
- ERP transaction histories across modules
One company's ERP documents across modules, with flow links, change logs, master data and the data dictionary
- Vendor and supplier correspondence
Buyer-side supplier threads with quote attachments, each tied to the purchase order, credit or settlement that ended it
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. Own data like this? See how companies license it to AI developers.