← the machine

What it writes,
and what stops it.

The definitions below are what the extraction runs against on every document, on the page you just used. Change a client’s stack, not the product: they live in one file.

Field definitions · per document type

Purchase orderpurchase_order→ ERP — Orders
customer · Customer *po_number · PO number *sku · SKU *quantity · Quantity *unit_price · Unit price *required_by · Required by *ship_to · Ship tocontact · Contact

A wrong quantity ships the wrong pallet count and the customer short-pays.

Supplier invoicesupplier_invoice→ Accounting — AP
vendor · Vendor *invoice_no · Invoice no. *po_ref · PO reference *amount · Amount *invoice_date · Invoice date *due_date · Due dateterms · Termsdescription · Description

An invoice with no PO cannot be three-way matched. That is how duplicates get paid.

Delivery bookingdelivery_booking→ WMS — Dock schedule
carrier · Carrier *dock_date · Dock date *dock_time · Time window *pallets · Pallets *site · Site *ref · Referencedriver · Drivervehicle · Vehicle

A missed dock slot means a truck waiting and a detention charge.

Quote requestquote_request→ CRM — Opportunities
company · Company *product · Product *volume · Volume *delivery_to · Deliver to *needed_by · Needed by *contact · Contactemail · Emailnotes · Notes

A quote sent on a misread volume is a margin loss you find out about at invoicing.

Goods received notegoods_receipt→ WMS — Receipts
grn_number · Receipt numberpo_ref · Order reference *sku · SKUqty_received · Quantity received *received_date · Received on *carrier · Carriersite · Site

Book an invoice without the receipt and you can pay for goods that never came through the door.

* required — a document missing it is held, not completed

The gates · a document must clear every one

AMBIGUOUS_TYPEnothing on the page says, strongly enough, what kind of document this is
MISSING_<FIELD>a field the destination requires is not stated in the document at all
LOW_CONF_<FIELD>the field was found, but under the confidence this client set for writing unattended
UNREADABLEthe file carries no machine-readable text — a scan, or a format this build does not open
NO_TRANSACTIONAL_CONTENTthere is no order, invoice or booking in it, so it is discarded rather than queued

Confidence is floored, never rounded up: a reading of 0.799 is held rather than written. The two numbers are 85% on a required field and 80% on the document type — the same thresholds the sample corpus is scored on, insrc/lib/types.ts.

The body it prepares · NetSuite, from the sample purchase order

{
  "object": "Purchase order",
  "external_id": "88241",
  "idempotency_key": "88241:df340bb8fade2f38",
  "received_at": "2026-09-18T08:12:00.000Z",
  "from": "ops@northwind.example",
  "fields": {
    "customer": "NORTHGATE INDUSTRIAL SUPPLIES LTD",
    "po_number": "88241",
    "sku": "BS-1140",
    "quantity": "4000",
    "unit_price": "0.18",
    "required_by": "2026-09-28",
    "ship_to": "Unit 7, Greenfield Park, Coventry CV3 4LP",
    "contact": "R Adeyemi, orders@northgate.example"
  },
  "confidence": {
    "customer": 0.9,
    "po_number": 0.96,
    "sku": 0.96,
    "quantity": 0.95,
    "unit_price": 0.94,
    "required_by": 0.97,
    "ship_to": 0.95,
    "contact": 0.95
  },
  "provenance": {
    "committed_by": "conduit",
    "fields_corrected_by_human": [],
    "engine": "rules"
  },
  "downstream": [
    "write:ERP — Orders",
    "email:R Adeyemi, orders@northgate.example",
    "notify:Warehouse — pick queue"
  ]
}

The reference the supplier wrote on the paper is the external_id, and the idempotency_key is that reference plus a digest of the document’s own text — so the same paperwork arriving twice, under two file names, is one order in the ledger rather than two. This deployment holds no credentials for anything, so the body is printed and never posted; in a pilot it goes behind the client’s own approval.

What this deployment is not

No account system, no storage, no inbox connector. In production documents arrive at ops@northwind.example by mailbox rule, not by a form; a pilot build writes to one named system behind the client’s own approval, and that is a scoped build, quoted as one.

← back to the machine
Conduit · Northwind Supply Co — paste a document, get a clean row