← Back

Home · Guides · CSV Outcome Import

How do you import outcome records from a CSV file?

By the Ingenious AI team · Published 2026-11-14 · Reviewed 2026-11-14

Short answer: Export the outcomes from your system of record as a CSV with the ledger's fields — workflow, outcome type, external reference, verified flag and verification source — and post it to OutcomeMeter's CSV import (POST /api/outcomes/import). The records land in the same verified ledger as API and webhook records, idempotency-checked, so a file imported twice does not double-count a single outcome.

Try the free demo measurement See pricing Start free — one provider key

What is CSV outcome import?

CSV outcome import is the file-based route for delivering outcome records to the verified ledger: a spreadsheet-shaped export from a system of record, uploaded in bulk, producing the same outcome records as the API and webhook routes. It exists for systems that can export files but cannot make authenticated calls or fire signed webhooks.

Why the file route exists — and why it is not a lesser route

Not every system of record has an API your team can call, and not every organization's procurement process lets a helpdesk fire webhooks to a metering tool this quarter. What nearly every system can do is export a file. If the ledger only accepted live integrations, teams with file-based systems would be locked out of verified measurement — usually the teams whose outcomes most need verification.

CSV import is therefore a first-class door: the records it creates are the same records, with the same fields, the same idempotency behaviour, and the same standing in the headline calculation. The door differs; the data does not. A verified success imported from a file counts exactly like one delivered by signed webhook, because both carry the verification source and external reference that make them checkable.

The fields the file must carry

Each row is one outcome record and needs the ledger's facts: the workflow the outcome belongs to, the outcome type (ticket resolved, case closed, order kept — in your system's own terms), the external reference from the system of record (that row's ticket ID, case number or order reference), the verified flag, and the verification source naming the system that confirms it. Rows missing the facts that make them checkable do not belong in the verified count, and the import treats completeness as the price of admission.

Prepare the file from the system of record's own export wherever possible, rather than re-typing results into a spreadsheet by hand. The external reference is the audit thread: a row whose reference matches a real record in the source system can be verified in a dispute; a hand-typed row's reference verifies nothing.

Idempotency for files: the double-import problem

Files get imported twice in real life — the first import's confirmation is missed, a colleague re-runs the month-end routine, an automated job overlaps a manual one. Without protection, every outcome in the file counts twice and the verified metrics inflate silently. The import therefore applies the same idempotency discipline as the API: records carry keys, duplicates are recognized, and re-importing the same file does not double-count.

This is the property to test before trusting any import pipeline, including this one: import a small file, import it again, and confirm the verified counts moved once. It takes five minutes and it is the difference between a bulk door and a bulk vulnerability.

Cadence: monthly files are fine; weekly are better

A monthly CSV rhythm aligns with reporting: export the month's outcomes, import, generate the client report from the now-complete ledger. It works, and for many teams it is the right starting point. The weakness is latency — a verification gap or a recording error hides for up to a month, and mid-month decisions (budget alerts aside, those run on cost events) fly on tagged outcomes alone.

Weekly imports shrink that blind window at trivial cost once the export is routine, and they make the month-end import a non-event because most of the month is already in. Choose the cadence your team will actually sustain; a weekly habit that survives beats a daily ambition abandoned by February.

Corrections arrive as files too

Outcomes reverse after export: the order kept in March is returned in April. The ledger's rule is that corrections are new entries that supersede the originals, never edits — and that rule holds for the file route. A corrections file posts the superseding records through the correction path (POST /api/outcomes/correct semantics), preserving the original rows and the history of what replaced them.

This matters most at audit time. A ledger where April's file silently rewrote March's rows cannot explain why March's reported verified count differs from today's query. A ledger with supersession entries explains it row by row — and an explainable history is precisely what makes a client, or an auditor, stop digging.

Keeping the file pipeline honest

Three habits keep CSV imports trustworthy. Keep the source exports: the file you imported is evidence, and storing it beside the import date closes the loop from ledger row to source document. Reconcile counts per import: rows in the file, rows accepted, duplicates skipped — a two-minute check that catches truncation and encoding damage. And restrict who can import: the door writes money-adjacent records, so it belongs to named operators, not to a shared routine nobody owns.

With those habits, the humble file route delivers the same evidentiary quality as the signed webhook. The ledger does not care how a fact arrived, provided it arrived checkable, once, and with its source attached.

Run a clean CSV outcome import: the 5-action checklist

Treat the file like evidence from the start — because in a dispute, that is exactly what it becomes.

  1. Export from the system of record: workflow, outcome type, external reference, verified flag and source on every row — no hand-typed results.
  2. Archive the source file: store it with its import date before uploading; it is the evidence behind the rows.
  3. Import and reconcile: rows in file versus rows accepted versus duplicates skipped — investigate any gap the same day.
  4. Re-import as a test once: confirm the verified counts do not move on a duplicate import of the same file.
  5. Set the cadence: weekly if you can sustain it, monthly at worst — and put corrections through the supersede path, never as edits.

Worked example: a fictional firm's legacy case system joins the ledger

A fictional claims firm, Halloway & Bright, tracks case outcomes in a legacy system with no webhook support and an API its vendor never finished. Its team exports outcomes weekly: about 600 rows every Monday covering the prior week's closed cases, each with the case number as external reference and the case system named as verification source. Import takes minutes; reconciliation shows 598 accepted and 2 duplicate rows from an overlapping export — skipped, as designed.

After one quarter the firm can state its cost per verified closed case for the first time: $4.37, against a tagged-success figure of $3.81 that had been quietly flattering it. The gap drives a review of prematurely closed cases. None of that required replacing the legacy system — the file it already produced was enough, once the ledger treated files as a first-class door.

OutcomeMeter runs this measurement on your own provider spend: connect a key on the free tier, watch the demo measurement first if you want to see the shape of the output, and read accepted-outcome economics when you are ready to value accepted work. The guides index collects every guide in this series.

Frequently asked questions

What columns does the outcome CSV need?

The ledger's facts per row: workflow, outcome type, an external reference from the system of record, the verified flag and the verification source. The reference is what makes the record checkable later, so rows should come from the source system's own export.

What happens if I import the same file twice?

Idempotency applies to imports as it does to the API: records are recognized by their keys and duplicates are not counted again. Test it once with a small file — import, re-import, confirm the verified counts moved exactly once.

Are CSV-imported outcomes worth less than webhook ones?

No. All three routes create the same ledger record with the same standing in cost-per-verified-success. What makes an outcome strong is its verification source and external reference, not the transport that carried it.

How are corrections handled for imported records?

As superseding entries, never edits. A corrections import posts new records that supersede the originals, preserving the full history — so a past period's counts can always be explained row by row.

How often should outcomes be imported?

Weekly is the practical sweet spot once the export is routine: mid-month decisions see fresh verified data and month-end becomes a non-event. Monthly aligns with reporting and is an acceptable start.

Keep reading

← Back