Skip to main content

EDI & Data Exchange in Logistics

Modern logistics depends on the rapid, accurate exchange of structured data between trading partners — shippers, carriers, freight forwarders, customs authorities, warehouses, and financial institutions. Electronic Data Interchange (EDI) is the foundational technology that makes this possible, replacing paper documents and manual data entry with standardized electronic messages transmitted between computer systems.

Understanding EDI is essential for anyone working in freight forwarding, carrier operations, or supply chain management. Even as newer technologies like REST APIs gain traction, EDI remains the dominant method for business-to-business data exchange in transportation and logistics worldwide.


What Is EDI?

Electronic Data Interchange (EDI) is the computer-to-computer exchange of business documents in a standardized electronic format. Unlike email or PDF attachments — which still require human interpretation — EDI messages are structured so that the receiving system can automatically parse, validate, and process them without manual intervention.

Definition

EDI replaces paper-based documents (purchase orders, invoices, bills of lading, shipping notices) with standardized electronic messages that flow directly between trading partners' systems, enabling straight-through processing with no human re-keying.

Core Characteristics of EDI

CharacteristicDescription
Structured formatMessages follow rigid, predefined schemas — every field has a specific position, length, and meaning
Computer-to-computerDesigned for system-to-system processing, not human reading
StandardizedGoverned by international standards (X12, EDIFACT) so any compliant system can interpret the data
Batch-orientedTraditionally sent in batches on a schedule (e.g., every 15 minutes, hourly, or daily)
Document-centricEach message type corresponds to a traditional paper document (invoice, bill of lading, etc.)

How EDI Works

A typical EDI exchange involves several components:

  1. Business system (TMS, WMS, ERP) generates the data — a shipment tender, invoice, or status update.
  2. EDI translator converts the internal data into the appropriate EDI standard format (X12 or EDIFACT).
  3. Communication layer transmits the formatted message via a Value-Added Network (VAN), AS2 (Applicability Statement 2), SFTP, or other protocol.
  4. Receiving translator parses the incoming EDI message and maps it into the receiver's business system.
  5. Acknowledgment — the receiver sends back a functional acknowledgment (e.g., X12 997) confirming receipt and syntactic validity.

The Two Major EDI Standards

Two standards dominate logistics EDI worldwide: ANSI X12 (primarily North America) and UN/EDIFACT (primarily international and European trade).

ANSI X12

ANSI X12 was developed by the Accredited Standards Committee X12, chartered by the American National Standards Institute (ANSI). It is the dominant EDI standard in North America, used extensively in transportation, retail, healthcare, and government.

Each document type is identified by a three-digit transaction set number. A group of related transaction sets is called a functional group, and one or more functional groups are wrapped in an interchange envelope for transmission.

X12 message structure:

ISA (Interchange Control Header)
GS (Functional Group Header)
ST (Transaction Set Header)
... segments (data content) ...
SE (Transaction Set Trailer)
GE (Functional Group Trailer)
IEA (Interchange Control Trailer)

UN/EDIFACT

UN/EDIFACT (United Nations Electronic Data Interchange for Administration, Commerce and Transport) is the international standard maintained by the United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT). It is widely used in international shipping, air freight, customs, and European logistics.

EDIFACT messages are identified by six-character codes (e.g., IFTMIN, CUSCAR, INVOIC). The structure uses a similar envelope approach:

EDIFACT message structure:

UNB (Interchange Header)
UNH (Message Header)
... segments (data content) ...
UNT (Message Trailer)
UNZ (Interchange Trailer)

X12 vs. EDIFACT Comparison

FeatureANSI X12UN/EDIFACT
OriginUnited States (ANSI)United Nations (UN/CEFACT)
Primary regionNorth AmericaInternational, Europe, Asia
Document identifierThree-digit number (e.g., 204, 856)Six-character code (e.g., IFTMIN, DESADV)
Delimiter styleConfigurable (typically * segment, ~ terminator)Fixed (+ data, : component, ' segment)
Industry focusTransportation, retail, healthcare, governmentInternational trade, shipping, customs, automotive
GovernanceASC X12 committeeUN/CEFACT working groups
VersionsRelease numbers (e.g., 004010, 005010)Directory versions (e.g., D.96A, D.01B)
Industry Practice

Many global freight forwarders and carriers must support both standards — X12 for North American domestic operations and EDIFACT for international and cross-border trade. EDI translation platforms typically handle mapping between the two.


Key EDI Transaction Sets in Logistics

ANSI X12 — Transportation Transaction Sets

The 004010 and 005010 releases are the most widely used versions in North American transportation.

Transaction SetNamePurposeSent By → To
204Motor Carrier Load TenderOffer a shipment to a carrier with pickup/delivery details, equipment needs, and ratesShipper/Broker → Carrier
210Motor Carrier Freight Details and InvoiceCarrier's freight bill for services renderedCarrier → Shipper/Broker
211Motor Carrier Bill of LadingElectronic bill of lading for motor freightShipper → Carrier
214Transportation Carrier Shipment StatusReal-time shipment tracking updates (pickup, in-transit, delivered)Carrier → Shipper/Broker
301Ocean Booking ConfirmationConfirm an ocean freight bookingCarrier → Forwarder/Shipper
310Freight Receipt and Invoice (Ocean)Ocean carrier freight invoiceOcean Carrier → Forwarder
315Status Details (Ocean)Ocean container and vessel status updatesOcean Carrier → Forwarder
322Terminal Operations and Intermodal Ramp ActivityContainer availability and terminal gate activityTerminal → Carrier/Forwarder
404Rail Carrier Shipment InformationShipment details for rail transportShipper → Railroad
417Rail Carrier Waybill InterchangeRail waybill for interline settlementsRailroad → Railroad
810InvoiceGeneral-purpose commercial invoiceSeller → Buyer
850Purchase OrderBuyer places an order with a supplierBuyer → Seller
856Advance Ship Notice (ASN)Detailed shipment contents notification before deliveryShipper → Receiver/Warehouse
990Response to a Load TenderAccept or reject a 204 load tenderCarrier → Shipper/Broker
997Functional AcknowledgmentConfirm receipt and syntactic validity of any transaction setReceiver → Sender

The 204 → 990 → 214 → 210 Cycle

The most common EDI workflow in trucking follows a four-step cycle:

  1. 204 Load Tender — the shipper or broker electronically offers a load to a carrier with all shipment details.
  2. 990 Response — the carrier accepts or declines the tender. If declined, the shipper tenders to the next carrier.
  3. 214 Status Updates — the carrier sends status milestones as the shipment progresses (picked up, departed, arrived, delivered).
  4. 210 Invoice — after delivery, the carrier submits the freight invoice electronically for payment.

UN/EDIFACT — Logistics Messages

Message CodeNamePurposeCommon Use
IFTMINInstruction MessageShipping instructions from shipper to forwarder/carrierBooking and shipment instructions
IFTMBFFirm Booking MessageRequest or confirm a firm bookingOcean/air freight booking
IFTMBCBooking ConfirmationCarrier confirms a booking requestResponse to IFTMBF
IFTSTAMultimodal Status ReportShipment tracking and status updates across modesMilestone tracking
IFTMANArrival NoticeNotify consignee of cargo arrivalImport cargo notification
CUSCARCustoms Cargo ReportReport cargo details to customs authoritiesPre-arrival manifest filing
CUSDECCustoms DeclarationSubmit import/export customs declarationCustoms clearance
CUSRESCustoms ResponseCustoms authority response to a declarationClearance status
INVOICInvoiceCommercial or freight invoiceBilling
DESADVDespatch AdviceNotification of goods shipped (equivalent to ASN)Warehouse receiving
COPARNContainer Pre-AnnouncementAnnounce container pickup or return to terminalTerminal gate planning
BAPLIEBayplan/Stowage PlanContainer positions on a vesselVessel loading/planning
Cross-Reference

EDIFACT customs messages (CUSCAR, CUSDEC, CUSRES) are covered in detail in the Import/Export Documentation article. The Documentation Flow article explains how these messages fit into the end-to-end forwarding process.


Communication Protocols

EDI messages must be transmitted between trading partners using a communication protocol. Several methods are in common use:

ProtocolDescriptionCharacteristics
VAN (Value-Added Network)Third-party intermediary that routes EDI messages between partnersManaged service, store-and-forward, built-in compliance tracking; higher cost
AS2 (Applicability Statement 2)Point-to-point HTTPS-based protocol with digital certificates and encryptionDirect connection, real-time, receipt confirmation (MDN); lower per-message cost
SFTP (Secure File Transfer Protocol)Encrypted file transfer over SSHSimple setup, batch file transfer; no built-in acknowledgment mechanism
AS4Web services-based messaging protocol (successor to AS2)Modern, supports cloud architectures, push/pull models
OFTP2 (Odette File Transfer Protocol)Protocol used primarily in European automotive supply chainsSpecifically designed for large file transfers with restart capability

Value-Added Networks (VANs) have historically been the most common method. Major logistics VANs include OpenText (GXS), SPS Commerce, Cleo, and TrueCommerce. The VAN acts as a mailbox service — the sender deposits the EDI message, and the VAN routes it to the correct recipient's mailbox for retrieval.

AS2 has grown significantly as companies seek to reduce VAN transaction fees. It provides point-to-point encrypted communication with Message Disposition Notifications (MDNs) that confirm delivery — a feature that VANs provide but basic SFTP does not.


EDI vs. API: Complementary Technologies

The logistics industry increasingly uses Application Programming Interfaces (APIs) — particularly RESTful web services — alongside traditional EDI. Understanding the differences helps organizations choose the right approach for each integration need.

DimensionEDIAPI (REST)
Data formatFixed-position or delimited (X12, EDIFACT)JSON or XML
CommunicationBatch, store-and-forwardReal-time, request-response
Connection modelPoint-to-point or via VANClient-server over HTTPS
Setup complexityHigh (mapping, testing, VAN enrollment)Moderate (API keys, endpoint configuration)
SpeedMinutes to hours (batch schedules)Milliseconds to seconds
Error handlingFunctional acknowledgments (997)HTTP status codes, immediate error response
Ideal forHigh-volume, recurring B2B transactionsReal-time queries, tracking, rate shopping
Industry adoptionDeeply embedded, especially large enterprisesGrowing rapidly, especially mid-market and startups
Standards governanceASC X12, UN/CEFACTVaries by provider; some industry standards (DCSA, IATA ONE Record)
Common Misconception

APIs are not replacing EDI. The two technologies serve different purposes and often coexist. Large carriers and retailers have decades of EDI investment and will continue requiring EDI from trading partners. APIs excel at real-time interactions where EDI's batch model falls short.

When to Use Each

Use EDI when:

  • Trading partners require it (most large carriers, retailers, and 3PLs)
  • Exchanging high volumes of the same document types repeatedly
  • Working with established transaction sets (load tenders, invoices, ASNs)
  • Regulatory compliance mandates structured data formats (customs filings)

Use APIs when:

  • Real-time data is needed (live tracking, instant rate quotes)
  • Integrating with modern platforms and SaaS applications
  • Building custom workflows that don't map to standard EDI transaction sets
  • Lower transaction volumes where VAN costs are disproportionate

The Hybrid Approach

Most modern logistics operations use a hybrid model: EDI for core transactional flows (tendering, invoicing, customs) and APIs for real-time visibility, rate shopping, and ad-hoc queries.

Emerging API standards in logistics:

StandardOrganizationScope
DCSA standardsDigital Container Shipping AssociationOcean container tracking, electronic B/L, event standards
ONE RecordIATAAir cargo data sharing via linked data and REST APIs
EPCIS 2.0GS1Supply chain visibility events (what, where, when, why)
OpenFreightLinux FoundationOpen-source freight data exchange

EDI Implementation Considerations

Mapping and Translation

Every EDI integration requires mapping — defining how fields in one system correspond to segments and elements in the EDI standard. This is one of the most time-consuming aspects of EDI implementation.

Example: Mapping a Load Tender (204)

EDI 204 SegmentElementMaps To (TMS Field)
B2Standard Carrier Alpha Code (SCAC)Carrier ID
B2Shipment Identification NumberLoad/Order Number
S5 (Stop-Off, Type "CL")Address segmentsPickup Location
S5 (Stop-Off, Type "CU")Address segmentsDelivery Location
L5Commodity DescriptionCommodity
L0WeightTotal Weight
L0VolumeTotal Volume
G62Date/TimePickup/Delivery Windows

Testing and Certification

Before going live with a trading partner, EDI connections go through a structured testing process:

  1. Internal testing — validate that the EDI translator correctly generates and parses messages.
  2. Connectivity testing — confirm that messages transmit successfully between systems (VAN mailbox, AS2 endpoint, or SFTP directory).
  3. Compliance testing — verify that messages meet the trading partner's specific implementation guide, which may require or restrict certain optional fields.
  4. End-to-end testing — send test transactions through the full workflow (e.g., 204 → 990 → 214 → 210) and confirm that business systems process them correctly.
  5. Certification — some large trading partners (e.g., Walmart, major carriers) formally certify EDI connections before activating them.

Common EDI Challenges

ChallengeDescriptionMitigation
Trading partner variabilityEach partner may use different versions, segments, or optional fieldsMaintain partner-specific maps; use flexible translators
Error resolutionRejected transactions may lack clear error descriptionsImplement robust 997/CONTRL acknowledgment processing
Onboarding timeNew partner setup can take weeks to monthsUse EDI-managed services or VAN-provided templates
Version managementStandards evolve; partners upgrade at different timesSupport multiple versions simultaneously
Data qualityGarbage-in, garbage-out — upstream data errors propagate through EDIValidate data before translation; implement business rules

Resources

ResourceDescriptionLink
ASC X12 StandardsOfficial ANSI X12 transaction set library and implementation guidesx12.org
UN/EDIFACT DirectoryOfficial UN/CEFACT EDIFACT message directory and specificationsunece.org/trade/untdid
DCSA StandardsDigital Container Shipping Association — open API standards for ocean shippingdcsa.org
IATA ONE RecordIATA's vision for end-to-end digital air cargo data sharingiata.org/one-record
GS1 EPCIS StandardSupply chain event data standard for visibility and traceabilitygs1.org/standards/epcis