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,
readto list andwriteto upload, run and review.
Do it in the app
- 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
importinguntil it isready; Used in shows which Specs and checks rely on it. - 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.
- 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.
- 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.
- 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.
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" }'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' }),
});
}{
"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/runsreturns 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
| Parameter | Type | Description |
|---|---|---|
| 400 | validation_error | Malformed rows or configuration, a missing `status` on review, or a cancel on a run that already finished. |
| 404 | not_found | No dataset, configuration, run or result with that id in your workspace. |
| 413 | payload_too_large | The upload is over the size limit. Split the file or import from SQL. |
| 429 | rate_limited | Wait for `Retry-After`. For many reviews, keep to about 10 parallel requests. |
Next
Frequently asked questions
Which results should I review by hand?+
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.