How to write a data spec your provider cannot misread
Updated 2026-11-25 · 5 min read · By BYM Data team
A data spec is one page: the field list with types and examples, the primary key, the dedupe rule, the refresh cadence, the delivery format, and two or three acceptance tests. If any of those is missing, the provider will guess — and you will get a file that is 'nearly right', which is the most expensive kind.
Fields: name, type, example, required
A field without an example is ambiguous. 'phone' could be a string with country code, a number, or three numbers separated by slashes. Show one real value.
The primary key and the dedupe rule
Pick a stable identifier — GSTIN, CIN, ASIN, listing id. Then state what happens on conflict: last-write-wins, prefer the record with the higher fill rate, or keep both with a source column. Silence here guarantees duplicates.
Refresh and delivery
State the cadence (daily, weekly), the cut-off time, the timezone, and whether you want a full file or deltas. Deltas need a change timestamp and soft deletes to be safe.
Acceptance tests
- Fill rate: e.g. 'city populated in ≥95% of rows'
- Key uniqueness: 'zero duplicate GSTINs'
- Freshness: 'all rows verified within 7 days'
- Spot check: 10 random rows validated by you on the source
A one-page template
Dataset: GST companies — Maharashtra
Fields:
legal_name text "Placeholder Agro Pvt Ltd" required
gstin text "27AAAAA0000A1Z5" required, unique
state text "Maharashtra" required
status enum active|cancelled|suspended required
source_url url "https://…" required
Key: gstin
Dedupe: keep newest by verification date
Refresh: weekly, Monday 09:00 IST, full file
Delivery: CSV (UTF-8) + schema doc
Acceptance: 0 duplicate gstin · state 100% · status 100% · source_url 100%Why this saves money
Every line above becomes a sentence in the quote, which makes a re-run free when it fails and a scope change obvious when it changes. Disputes happen in the gaps a spec does not fill.
Questions
How long should a spec be?
One page. If it needs three, the project is not scoped yet.
Who writes it?
You write the fields and acceptance tests; the provider adds feasibility notes per source.
What if I do not know the fields?
Ask for a sample first and choose fields from real rows — that is exactly what the 100-row sample is for.
BYM Data team
Data engineering — We build and run the extraction pipelines behind every dataset we sell. Guides are written by whoever maintains the source, and reviewed by a second engineer before publishing.