Dataset
Customs entry and tariff classification datasets for AI training
A customs dataset is a set of customs broker and importer files: commercial invoices and packing lists, the entry or declaration filed from them, the tariff classification chosen for each line with its rationale, valuation and origin determinations, binding rulings requested, and the customs authority's response, including holds, exams and post-entry amendments. SourceX sources these files from established businesses such as customs brokerages, freight forwarders and importers' trade compliance teams. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Import files linking commercial documents to the filed entry, line classifications with rationale and the authority's response
- Typical systems
- CargoWise, Descartes, SAP Global Trade Services, Oracle Global Trade Management, Thomson Reuters ONESOURCE, Magaya
- Typical history
- Specified by the buyer; each entry is read with the tariff schedule edition it was filed under
- Modality
- Scanned and native PDFs, with entry and classification records as structured fields
- Delivery formats
- Agreed per order; PDFs with page-level text, entry lines and classifications as JSONL or CSV
- Preparation
- Importer and supplier identities pseudonymized; declared values masked or banded as scoped; export-control and sanctions screening for you to confirm
- Licensing
- Rights reviewed per source; where a broker holds the files, confirm the importer of record approved release; permitted use set in the license
- Availability
- Sourced to your spec by customs territory and product sector; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| entry_id | string | Pseudonymous ID of one entry or declaration, the key for its documents, lines and authority actions. |
| jurisdiction | object | Customs territory, entry type and the port or office, kept at the level the scope allows. |
| entry_date | date | The date that fixes which tariff schedule, duty rates and trade measures applied. |
| schedule_edition | string | Edition and revision of the national tariff schedule in force on the entry date. |
| source_documents | array | Commercial invoice, packing list, transport document, certificates and product literature as received, each with page text. |
| lines | array | Entry lines, each tied to the invoice lines it covers, with quantity, unit and the description as invoiced. |
| lines[].tariff_number | string | The full national tariff number declared, with the internationally shared Harmonized System digits separable. |
| lines[].classification_rationale | object | Headings considered, the interpretive rule and legal notes applied, the product facts relied on and who prepared it. |
| lines[].ruling_refs | array | Published or binding rulings relied on or requested, with what each supports. |
| lines[].valuation | object | Basis of the declared value and the additions or deductions considered, such as assists, royalties and freight. |
| lines[].origin | object | Country of origin declared, the basis for it and any preference program or certificate claimed. |
| lines[].additional_measures | array | Trade-remedy measures declared on the line: additional tariff numbers, antidumping case references or exclusions claimed. |
| authority_actions | array | Holds, document requests, exams and proposed or final changes from the customs authority, with dates and results. |
| post_entry | object | Corrections, protests and disclosures filed after entry, and the entry's status on the export date. |
Field names from the table above; values are masked placeholders.
Example record
{
"entry_id": "ent_5b20c7",
"jurisdiction": {
"territory": "US",
"entry_type": "consumption",
"port": "West Coast seaport"
},
"entry_date": "2023-05-18",
"schedule_edition": "HTSUS 2023, revision in force on entry date",
"source_documents": [
{
"doc_id": "d1",
"type": "commercial_invoice"
},
{
"doc_id": "d2",
"type": "packing_list"
},
{
"doc_id": "d3",
"type": "product_spec_sheet"
}
],
"lines": [
{
"line_no": 1,
"invoice_lines": [
"d1:3",
"d1:4"
],
"description_as_invoiced": "ITEM 77-4102 RECHRG WORK LIGHT LED W/ MAG BASE",
"quantity": 4800,
"unit": "NO",
"tariff_number": "8513.10.4000",
"classification_rationale": {
"headings_considered": [
"8513",
"9405"
],
"rule": "GRI 1",
"reasoning": "Portable lamp that runs on its own built-in rechargeable battery, so heading 8513 describes it. Heading 9405 covers luminaires not specified elsewhere.",
"facts_relied_on": [
"d3: integrated lithium-ion battery"
],
"prepared_by": "licensed_broker"
},
"ruling_refs": [
{
"ref": "ruling_ref_0193",
"type": "published",
"used_for": "portable lamps with built-in batteries"
}
],
"valuation": {
"basis": "transaction_value",
"additions_considered": [
"assists: none",
"royalties: none"
],
"entered_value": "[BANDED]"
},
"origin": {
"country": "VN",
"basis": "manufacturer declaration",
"preference_claimed": null
},
"additional_measures": []
}
],
"authority_actions": [
{
"date": "2023-07-11",
"type": "request_for_information",
"form": "CBP Form 28",
"asked_for": [
"product literature",
"basis of classification"
]
},
{
"date": "2023-08-02",
"type": "importer_response"
},
{
"date": "2023-09-14",
"type": "closed",
"result": "no_change"
}
],
"post_entry": {
"amendments": [],
"status_at_export": "liquidated_as_entered",
"status_date": "2024-03-29"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train tariff classification with reasons
Invoice text and product literature in, tariff number and written rationale out, with the headings that were considered and rejected.
Extract entry lines from trade documents
Invoices and packing lists paired with the lines filed from them are extraction labels, including where invoice lines were combined.
Screen entries before filing
Entries that drew a document request, an exam or a reclassification show a review agent which lines customs is likely to question.
Check valuation, origin and measures
Recorded determinations show when an assist belongs in the value, when a preference claim holds and which measures applied.
Build adjudicated test sets
Lines settled by a ruling, a customs decision or a protest make test items with an answer an authority confirmed.
Use-case guides: Legal AI, Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Rationale on the line
A written reason per classification, not only the number, makes the record trainable.
Authority response linked
Requests, notices and exams tied to the line they concern give adjudicated labels.
Schedule edition stated
Each entry names the tariff schedule revision it was filed under.
Documents as received
Original invoices and packing lists are kept, not only the data keyed from them.
Product evidence attached
Spec sheets, photos and composition statements show the facts the classifier had.
Post-entry history
Corrections and protests are joined to the original entry.
Provenance trail
Customs dataset
Classification is a legal judgment with a paper trail
A tariff number is the result of legal reasoning. The General Rules of Interpretation send the classifier first to the heading texts and the section and chapter notes, and only then to rules for unfinished goods, mixtures, sets and essential character. The same product description can sit under several headings. A rechargeable work light is a portable lamp with its own power source under one heading and a luminaire under another. What decides is usually a fact the invoice does not state: composition by weight, principal function, whether items are put up together for retail sale. A broker's file shows which facts were gathered, which headings were weighed and why one was chosen.
Published rulings cover part of this. They are reasoned decisions, but only for products someone asked about, described with care for that purpose. Daily files hold the other side: invoice text such as "ITEM 77-4102 RECHRG WORK LIGHT", part numbers, mixed languages, and descriptions written for a purchaser, not a tariff. A model that has seen only rulings has never classified from an invoice line.
The label needs care. Customs authorities review a selection of entries, not every line, so an entry that closed without change was not challenged, which is different from correct. The strongest labels are lines an authority looked at: a request for information closed with no change, a notice proposing another number, an exam, a binding ruling or a decided protest. Repetition is the second trap. Brokers and importers often keep a parts database that maps each part number to a tariff number, so thousands of consistent lines may be one decision made once and copied, right or wrong.
Every entry belongs to one territory and one date
The Harmonized System gives countries a shared set of headings and subheadings. Each customs territory adds its own digits, legal notes and duty rates below that level. A US entry carries a number from the Harmonized Tariff Schedule of the United States, and an EU declaration carries a Combined Nomenclature or TARIC code. The two can part ways for the same product, because national subdivisions differ and a ruling in one territory does not bind another. Every record should state its territory, and records should not be pooled below the shared digits.
Time matters as much. The World Customs Organization revises the Harmonized System periodically, and national schedules are revised more often, so a number that was right on one entry date may not exist a few years later. Duty also depends on things beside the number. Preference programs can lapse and be renewed. In the United States, additional duties under trade statutes are declared with a second tariff number beside the base classification, and product exclusions from those duties have been granted, have expired and in some cases have been reinstated. Antidumping and countervailing duty orders have scopes and deposit rates that change after reviews.
So each entry has to be delivered with its entry date and the schedule edition in force, and an old classification should never be graded against today's schedule. Entries also have their own timeline. A filing can be corrected before it is finalized and protested afterward, so an export is a snapshot, and entries still open on that date have labels that may yet change.
What to check before licensing
- Where a broker or forwarder holds the files, confirm that each importer of record approved release, not only the broker. Brokers commonly owe clients confidentiality, so have counsel check the rules that apply.
- Check how declared values, unit prices and supplier, manufacturer and consignee identities were masked, in page images as well as in extracted text.
- Ask how goods subject to export-control or sanctions restrictions were screened out, including controlled technical data in product literature, and have your own compliance team review the sample.
- Confirm that every entry carries its territory, entry date and schedule edition, and test a sample of tariff numbers against the schedule for that date.
- Count the lines with a written rationale and the lines with a customs response. Ask whether numbers were filled from a parts database, and how many distinct classification decisions the file holds.
- Ask for each entry's status on the export date: open, finalized or under protest, and whether later corrections are linked to the original.
- Check that invoice lines map to entry lines where several were combined, and that scans carry page-level text.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
How is this different from public customs rulings and trade statistics?
It holds the daily filing work that public rulings and trade statistics leave out. Rulings give an authority's reasoning only for products someone asked about, and statistics give totals by tariff number. Broker and importer files hold the chain for routine goods: a terse invoice line, the documents the broker had, the number chosen, the reason and what customs did next, described the way suppliers write real invoices.
Which countries' customs entries can be sourced?
That depends on which holders agree to license, so coverage of a given territory is not guaranteed. A brokerage's files cover the territories it files in, while an importer with operations in several countries may hold declarations filed in each. State the territory in your request, because national tariff digits, legal notes and duty measures differ and records should not be pooled across them.
Are declared values and supplier names included?
Not in identifying form. Supplier, manufacturer and importer names are pseudonymized, and declared values are masked, scaled or banded as the scope requires. Classification tasks rarely need exact values. Valuation tasks need the structure, such as which additions were considered and why, more than the amounts. Say which you need, and check the sample, since names also appear in letterheads, stamps and invoice footers.
How should entries filed under an older tariff schedule be used?
Read each entry against the schedule in force on its entry date, never against today's. The Harmonized System is revised periodically and national schedules more often, so numbers are split, merged and renumbered. Older lines remain valid examples of reasoning. To train for current filing, map old numbers forward with the published correlation tables and treat one-to-many splits as lines to reclassify.
Does a cleared entry mean the classification was correct?
No. Customs authorities examine a selection of entries, not every line, so release and finalization show only that the number was not challenged. Stronger labels come from lines an authority reviewed: a request for information closed without change, a notice of a proposed change, a binding ruling or a decided protest. Ask how many lines in the delivery carry each kind of outcome.
Who has to approve the license when a customs broker holds the files?
The importer of record should approve, as well as the broker, and you should check that it did. The entry is filed in the importer's name from the importer's invoices and product documents, which the broker holds while acting for that client. Ask to see how importer approval was obtained for each account in scope, and have counsel confirm what the broker's own obligations to its clients permit.
Related datasets
- Supply chain and logistics operations records
Linked orders, shipments, tracking events, exceptions and freight documents from real operations
- Bills of lading and freight documents
Freight paperwork as received, with keyed fields, the matched load and audit findings
- EDI message histories
Raw trading-partner messages with acknowledgments, partner maps and translated application records
- Contract negotiation and redline histories
Contract version chains with tracked changes, comments, approvals and executed versions
- Compliance control records and policy exceptions
Control library, test records with evidence and conclusions, issues, remediation plans and policy exception requests
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.