Dataset
Flexport shipment and customs datasets for AI training
A Flexport dataset is an export of one importer's or exporter's Flexport account: the purchase orders it uploaded, bookings, shipments with legs, containers and milestones, commercial invoices and packing lists, customs entries, the documents exchanged and Flexport's freight invoices to the client. SourceX sources it to a buyer's spec from established businesses that ship through Flexport. Each dataset is de-identified and licensed for an agreed permitted use, and the spec states how supplier names, prices and document contents are handled.
Dataset manifest
Sourced to your spec- What it is
- One shipper's Flexport account history: purchase orders, bookings, shipments, legs, containers, commercial invoices, customs entries, documents and freight invoices
- Typical systems
- A Flexport client account, with ocean, air and trucking freight, customs brokerage and purchase orders where the client uses them
- Typical history
- From the client's first shipment with Flexport; freight moved by other forwarders is absent unless tracked as visibility-only, so specify lanes and dates
- Modality
- Structured shipment and order records, plus document files such as commercial invoices, packing lists, bills of lading and entry summaries
- Delivery formats
- JSONL per shipment with nested legs, containers, items and invoices, document files by type, and port and charge code lists
- Preparation
- Sellers and consignees tokenized; addresses and contacts removed; bill, container and entry numbers tokenized; documents redacted or excluded
- Licensing
- Scoped per client account, entity, mode, lane and date range; permitted use agreed per license
- Availability
- Sourced to your spec; depends on the shipper's supplier agreements, Flexport's client terms and API access; 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 |
|---|---|---|
| shipment_ref | object | A token for the Shipment ID, with status, transportation_mode, freight_type such as door_to_door, Incoterm, service flags including visibility_only, and any parent or child shipment. |
| shipment_parties | array | Shippers, consignees, buyers, sellers and importers of record on the Shipment, each a token for a Company Entity. |
| shipment_items | array | Shipment items: purchase order number, product SKU, total units, weight and volume carried on this shipment. |
| po_line_items | array | Purchase Order Line Items: item key, product, units, unit cost, HS codes, must-arrive date and the Booking Line Items that booked them. |
| booking | object | The Booking behind the shipment: status, cargo ready date, origin and destination, and Booking Line Items with units per purchase order line. |
| legs | array | Shipment Legs in order: origin and destination place and terminal, mode, carrier name, and estimated and actual departure and arrival. |
| shipment_containers | array | Containers on an ocean shipment: type, size, a container number token, the items loaded, and dates such as last free day, pickup, delivery and empty return. |
| milestone_events | array | Events delivered for the shipment: type such as /shipment_leg#departed, occurred time, location, and any exception with its root cause. |
| commercial_invoices | array | Commercial Invoices: invoice number token, currency, terms of sale, related-party flag and line items with country of origin, quantity, unit price and value. |
| customs_entry | object | The Customs Entry: an entry number token, release status of pending, customs_hold or cleared, and release date. |
| documents | array | Documents on the shipment: document_type such as commercial_invoice, packing_list or bill_of_lading, upload time and a pointer to the file. |
| freight_invoices | array | Flexport's Invoices to the client: status, issue and due dates, and items with charge slug, category, rate, quantity, amount and container numbers. |
Field names from the table above; values are masked placeholders.
Example record
{
"shipment_ref": {
"id": "shp_60412",
"status": "final_destination",
"transportation_mode": "ocean",
"freight_type": "port_to_door",
"incoterm": "FOB",
"visibility_only": false
},
"shipment_parties": [
{
"role": "seller",
"company_entity": "ent_0193"
}
],
"shipment_items": [
{
"purchase_order_number": "po_7734",
"sku": "LMP-HSG-22",
"total_units": 4800
}
],
"po_line_items": [
{
"item_key": "po_7734-3",
"sku": "LMP-HSG-22",
"units": 6000,
"unit_cost": {
"amount": 3.85,
"currency": "USD"
},
"hs_codes": [
"9405.99"
],
"must_arrive_date": "2024-06-10",
"booking_line_items": [
{
"booking": "bkg_5521",
"units": 4800
}
]
}
],
"legs": [
{
"origin": "CNYTN",
"destination": "USLGB",
"transportation_mode": "ocean",
"estimated_arrival_date": "2024-05-27",
"actual_arrival_date": "2024-05-30"
}
],
"shipment_containers": [
{
"container": "cnt_9e21",
"container_size": "fourty_ft_hc",
"last_free_day_date": "2024-06-04"
}
],
"milestone_events": [
{
"type": "/shipment_leg#arrived",
"occurred_at": "2024-05-30T08:15:00Z"
}
],
"customs_entry": {
"entry_number": "ent_num_41c7",
"release_status": "cleared",
"release_date": "2024-05-31"
},
"documents": [
{
"document_type": "customs_entry_summary_7501",
"file": "doc_c81f.pdf"
}
],
"freight_invoices": [
{
"id": "inv_22871",
"status": "paid",
"items": [
{
"slug": "fcl_40_hq",
"category": "freight",
"amount": 2140.0,
"container_numbers": [
"cnt_9e21"
]
}
]
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Predict arrival and delay by lane
Estimated and actual dates on each leg and container, with delay events and their root cause, train models that forecast transit.
Read commercial invoices into lines
An invoice file beside its digitized lines of origin, quantity, unit price and value is a labeled extraction example.
Compute landed cost per SKU
Order unit cost, freight invoice items by container and units per container let an agent allocate cost to each product.
Plan bookings against orders
Order lines with must-arrive dates set against booked units and cargo ready dates show what was booked late.
Test order tracking agents
The path from an order line to a container to its latest milestone makes graded items for agents that say where goods are.
Use-case guides: Enterprise and computer-use agents, Document AI, enterprise search and RAG, Finance and accounting agents, Private evaluation sets
What makes this data valuable
Order lines tied to shipments
Shipment items resolve to purchase order lines, not only a typed order number.
Estimated and actual dates
Legs and containers keep both, so delay is measurable.
Events captured at the time
Webhook events were stored as they arrived, preserving revisions to estimated dates.
Documents typed and matched
Each file carries its document type and shipment token.
Invoice items with charge codes
Freight invoices arrive itemized by charge code, category and container.
Coverage stated
The supplier states what share of its freight moved with Flexport, by mode and lane.
System export
Flexport dataset
Purchase order lines follow the cargo into the container
At many forwarders a file starts with the booking, and the tie between what was ordered and what is in the box sits in email and spreadsheets. Flexport lets the client load its purchase orders with line items: SKU, units, unit cost, HS codes, a must-arrive date and the seller. A Booking is then built from those lines, and each booking line item names a purchase order line and the units booked. The Shipment carries items with purchase order number and SKU, and on ocean freight each container lists the items loaded in it. A commercial invoice line can name the purchase order line and the container, and the customs entry points to the shipment.
That chain makes splits readable. One order line can be booked across several bookings, and one container can hold lines from several orders and sellers. Units ordered, booked and shipped can be compared at each step. Dates are layered the same way: a must-arrive date on the order, a cargo ready date, estimated and actual times on each leg, and container dates for last free day, pickup, delivery and empty return. Delay events carry a root cause party, such as carrier, terminal, shipper, client, government agency or Flexport itself.
Purchase orders are an optional feature, and the API's purchase order and booking line item endpoints need special permission, so ask before assuming the chain exists or can be exported. History is thinner than the links. The API returns one current value for each estimated date on a shipment, leg or container, with no list of earlier values. The sequence of changes survives only as events, and the API lists only events that were delivered to a webhook the client had registered. A purchase order line is shown at its latest version, a removed leg keeps a deleted time, and a document keeps an archived time.
The account holds the client's side of what Flexport moved
A Flexport account is one customer's view of one forwarder. It holds freight booked with Flexport, plus any shipments the client asked Flexport only to track, which carry a visibility-only flag. Importers often split volume among forwarders by lane, mode or season, so an account may cover one trade lane or only air freight, and nothing in the data states the share. The money is one-sided as well. Freight invoices are Flexport's charges to the client, itemized by charge code and category with rate, quantity and container. The client API has no object for what Flexport paid the carrier, trucker or terminal, or for its internal operations notes.
The API returns less than its object names suggest in a few places. The customs entry object holds an entry number, a release status, a release date and the shipment. The classified lines, duty and fees are on the entry summary, which arrives as a document file, and partly in commercial invoice lines where those were digitized. A shipment returns its legs, containers and documents as references that must be expanded or fetched per shipment. Documents carry a type from a long list set at upload, so check a sample of each type. Shipments and containers also hold client-defined tags, and a booking's notify party is one free-text field, so both can contain names and contact details.
Much of this is trade-sensitive. Seller names, unit prices and manufacturer codes describe the importer's supply chain, and bill of lading and container numbers can be matched against sources outside the dataset, so they and entry numbers should arrive tokenized. To test a sample, take twenty delivered ocean shipments. Confirm each has legs, containers and documents, that item units tie to order lines, and that invoice items sum to invoice totals. Check that entry summaries exist where Flexport cleared customs and are absent where the client's own broker did. Then search tags, file names and document pages for untokenized parties.
What to check before licensing
- Have the data owner and your counsel check what Flexport's client terms and API terms say about exported data and its use.
- Confirm the data owner may disclose supplier names, prices on commercial invoices and customs data under its supplier agreements, and get the list of suppliers excluded.
- Ask what share of the company's freight moved with Flexport in each year, by mode and lane, and which shipments are flagged visibility-only.
- Ask whether the account used purchase orders and had API permission for them, and count shipments whose items tie to an order line against those with no order link.
- Check which customs entries Flexport filed and which a nominated broker filed, and whether entry summary documents are delivered, since the entry record holds only a number, status and date.
- Ask whether milestone events were captured by webhook as they happened and from what date; without them only current dates exist.
- Search the sample for raw bill of lading, container, entry and invoice numbers, seller names in tags and file names, and unredacted document pages.
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
Does a Flexport dataset cover all of a company's shipments?
No, only what moved through or was tracked in its Flexport account. Many importers split freight among forwarders by lane, mode or season, and the account does not record what went elsewhere. Ask what share of its volume Flexport handled each year, and whether any shipments are visibility-only records of freight another party moved.
Can a Flexport dataset link a purchase order line to a container and a customs entry?
Yes, where the client loaded purchase orders into Flexport. Booking line items name the order lines they book, shipment items carry order number and SKU, containers list the items loaded, and the customs entry points to the shipment. Accounts that book without purchase orders have at most an order number typed on the shipment.
Does a Flexport dataset show tariff classification and duty paid?
Partly. Products and purchase order lines can carry HS codes, and digitized commercial invoice lines carry origin and value. The customs entry record itself holds only the entry number, release status and release date. Classified lines, duty and fees are on the entry summary document, so ask for those files where Flexport acted as broker.
Are freight costs included, and whose costs are they?
Yes, as the client's costs. Freight invoices are Flexport's bills to the client, itemized by charge code and category with rates, quantities and credit memos. They do not show what Flexport paid carriers or truckers. That suits landed-cost and freight audit work from the shipper's side, not forwarder margin.
Can the history of estimated arrival dates be recovered?
Only if the client captured events as they happened. The API returns only the current estimated dates on shipments, legs and containers. Flexport can send milestone events to a client's webhook, and those stored events hold each revision. Ask whether the supplier kept them and from what date.
Is SourceX affiliated with Flexport?
Flexport is named to identify the system the records come from. That does not imply a partnership with or endorsement by Flexport. The records belong to the business that runs Flexport, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Customs entries and trade compliance records
Import files linking commercial documents to the filed entry, line classifications with rationale and the authority's response
- Bills of lading and freight documents
Freight paperwork as received, with keyed fields, the matched load and audit findings
- Purchase order histories from requisition to receipt
Purchase orders followed from requisition and approval through revisions, acknowledgment, receipt and invoice match
- CargoWise forwarding and customs records
Shipments, consols, bookings and customs declarations from one CargoWise company, with parties, containers, legs, milestones, eDocs and charge lines
- project44 shipment tracking histories
Tracked shipments from one project44 account with identifiers, stops, route segments, positions, events, estimated and actual arrivals and exceptions, joined to the owner's order or load numbers
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 26 November 2026.