Skip to main content

Match against your data

What you get

Matching links each document to the record it belongs to in your own data, such as the vendor, the purchase order or the contract, and shows which fields agreed. It is for finance and operations teams who reconcile documents against an ERP, CRM or master list, and for developers who load that list from code.

Before you start

  • Your master or reference data as CSV or Excel, as JSON rows, or in a connected MSSQL or PostgreSQL database.
  • Documents processed with a Spec, so there are values to compare.
  • Member or above to upload data and review matches. Over the API, read to list and write to upload, run and review.

Do it in the app

  1. Open Sources → Documents and choose the Reference Data tab. Upload a CSV or Excel file, or import from a connected SQL database. The dataset shows importing until it is ready; Used in shows which Specs and checks rely on it.
  2. To match every document as it is processed, add a Matching stage to your Spec and pick the dataset. Each document ends as a clear match, a short list of close candidates shown side by side, or no match.
  3. To match a batch you already have, open the Matching page, create a configuration (which document fields compare to which columns, and how strictly), and click Run. Watch progress on the run page; you can cancel and keep partial results.
  4. Open the results. Each document shows its top five candidates with a confidence and the field-by-field evidence: both values, how they were compared and how much each counted.
  5. Accept or reject each result. Accepted matches flow into delivery with the document; rejected ones are dropped for that document.

Do it with the API

Create a dataset from JSON rows with POST /v1/reference-data, page through it with GET /v1/reference-data/{id}/rows and download it with GET /v1/reference-data/{id}/csv. Create a configuration with POST /v1/matching/configs, start it with POST /v1/matching/configs/{id}/run, follow it with GET /v1/matching/runs/{id}/progress, read results with GET /v1/matching/runs/{id}/results, and record a decision with POST /v1/matching/runs/{runId}/results/{resultId}/review.

Load a vendor list, run a match, approve a result
curl -s -X POST https://api.talonic.com/v1/reference-data \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "vendor_registry",
    "columns": ["vendor_id", "vendor_name", "country", "tax_id"],
    "data": [
      { "vendor_id": "V-001", "vendor_name": "ACME Corporation", "country": "DE", "tax_id": "DE123456789" }
    ]
  }'

curl -s -X POST https://api.talonic.com/v1/matching/configs/CONFIG_UUID/run \
  -H "Authorization: Bearer $TALONIC_API_KEY"

curl -s "https://api.talonic.com/v1/matching/runs/RUN_UUID/results?status=review" \
  -H "Authorization: Bearer $TALONIC_API_KEY"

curl -s -X POST https://api.talonic.com/v1/matching/runs/RUN_UUID/results/RESULT_UUID/review \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "approved" }'
Node: accept every strong match from a run
const headers = {
  Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  'Content-Type': 'application/json',
};
const base = `https://api.talonic.com/v1/matching/runs/${runId}`;
const { data } = await fetch(`${base}/results?status=matched&limit=100`, { headers }).then((r) => r.json());

for (const result of data) {
  await fetch(`${base}/results/${result.id}/review`, {
    method: 'POST',
    headers,
    body: JSON.stringify({ status: 'approved' }),
  });
}
GET /v1/matching/runs/{id}/results (one result)
{
  "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
  "document_id": "doc_uuid_1",
  "document_filename": "invoice-acme-2024-001.pdf",
  "matched_reference_row_id": "ref_row_42",
  "confidence": 0.92,
  "status": "matched",
  "evidence": {
    "field_contributions": [
      { "extracted_field": "vendor_name", "extracted_value": "Acme Corp GmbH", "reference_value": "Acme Corp", "match_type": "fuzzy_string", "matched": true, "weight": 0.4, "score": 0.95, "contribution": 0.38 },
      { "extracted_field": "amount", "extracted_value": 14250.00, "reference_value": 14250.50, "match_type": "numeric_range", "matched": true, "weight": 0.3, "score": 0.82, "contribution": 0.25 }
    ],
    "candidates_considered": 3,
    "top_n_candidates": [ { "reference_row_id": "ref_row_42", "confidence": 0.92 } ]
  }
}

Each result starts as matched (at or above your configuration’s threshold, 0.85 by default), review (plausible, worth a look) or no_match. Your decision replaces that with approved or rejected. Confidence is a fraction in the API and a percentage in the app. Compare fields with exact, fuzzy_string, date_range (tolerance_days) or numeric_range (tolerance_pct), and give strong identifiers such as PO numbers the highest weight.

Do it with an agent

No agent tool for matching. Call the endpoints above from your agent. Example: "Load this vendor CSV as reference data and show me the invoices that did not match a vendor."

Limits and costs

  • Up to 500 rows per page when reading a dataset; a dataset carries up to 32 tags.
  • Results list the top five candidates per document. GET /v1/matching/runs returns the 100 most recent runs.
  • Matching is billed as an intelligence operation, 100 credits each in the published catalog (GET /v1/pricing). See Billing, credits and usage.
  • Datasets imported from SQL are snapshots; the app flags one older than 30 days. Re-import to refresh.

Errors

ParameterTypeDescription
400validation_errorMalformed rows or configuration, a missing `status` on review, or a cancel on a run that already finished.
404not_foundNo dataset, configuration, run or result with that id in your workspace.
413payload_too_largeThe upload is over the size limit. Split the file or import from SQL.
429rate_limitedWait for `Retry-After`. For many reviews, keep to about 10 parallel requests.

Next

Frequently asked questions

Which results should I review by hand?+
Start with results in review: they are plausible but not certain. Strong matches above your threshold are usually right, and very low scores usually mean the record is not in your data at all.
Does updating my reference data change finished matches?+
No. Finished runs keep their results. Upload or re-import the new data and run the match again to compare against it.
What is the difference between a Matching stage and a matching run?+
A Matching stage in a Spec matches every document as it is processed and ends each one as a match, a short list or no match. A matching run compares a set of documents you already have against a dataset and gives you results to accept or reject.