What you’ll learn to do
- Distinguish structured EDI from forwarding PDF files
- Agree fields, units and message types
- Separate technical and commercial acknowledgements
- Manage versions, errors and exchange metrics
Lesson duration: 70–90
EDI as an agreed exchange
Electronic Data Interchange is the structured exchange of business messages between organisations in an agreed format. Unlike forwarding a PDF, it allows the recipient to automatically recognise order, confirmation, shipment-notification or invoice fields. However, an electronic format does not itself guarantee correct data.
Agree the business process and participants first, then the format. A single shipment may involve an order to the carrier, confirmation, loading event, delivery notification and financial document. Do not call all these messages simply a “document”, or their purpose cannot be checked.
Message types and business meaning
Different industries use standards such as UN/EDIFACT, ANSI X12 and industry profiles. The specific message type is selected according to partner requirements. Orders, order confirmations, dispatch notifications and invoices serve different functions; technical message delivery does not equal acceptance of an obligation.
For the training process, define the sequence: enquiry → order → confirmation → dispatch → receipt → invoice. If confirmation is rejected, do not consider the transport agreed merely because the system successfully transmitted the file. Retain the ID and time of each step.
Fields, units and code lists
An EDI message contains party identifiers, order references, line items, quantities, units, dates and addresses. Country, currency, unit and status codes must conform to agreed code lists. The number 100 without a unit does not say whether it refers to pieces, boxes or kilograms.
Map internal TMS or ERP fields to the partner’s external fields. Converting 1.2 tonnes to kilograms gives 1200 kg, but the unit must not change without changing the value. Range and source checks prevent messages that are formally valid but factually false.
Identifiers and links to orders
In each message, retain its own ID, the sender’s order ID, the recipient’s reference and, where needed, the container, trip or transport leg. A repeated message with the same ID must not create a second shipment. Similar numbers from different companies must not be merged automatically.
Example: one order contains containers A and B. A dispatch notification for A confirms only A; B retains its previous state. For an unknown identifier, create a reconciliation task instead of substituting the nearest similar number.
Technical and business acknowledgement
Distinguish three levels: the file was delivered through the channel, the message structure was accepted by the parser, and the business content was accepted by an authorised party. A technical EDI acknowledgement does not prove that a warehouse accepted the cargo or a carrier agreed to the rate.
If an invoice was technically accepted but the order contains a disputed additional service, financial approval remains open. Retain separate statuses and rejection reasons. Do not show “transaction confirmed” in the user interface based on a single successful server response.
Versions, changes and cancellations
A corrected order must refer to the previous revision and contain a change or cancellation indicator under the agreed rules. Simply resending a new file without linking it to the previous one may create two orders. Retain exactly what changed: weight, address, date or cost.
When changing an address after carrier acceptance, first agree the consequences, then transmit the new revision and obtain confirmation. If the partner rejects the update, the old version may remain effective; do not silently treat the change as accepted.
Validation, errors and message quarantine
Check required fields, allowed codes, quantity consistency, ID uniqueness and date validity. A message with an unknown unit or unsupported status must receive a diagnosable rejection or enter a correction queue, not turn into a successful delivery.
Separate temporary channel failure from a content error. The former may require bounded retries; the latter requires correction at source. Retain the original message and validation result so that the chain of decisions can be reconstructed after the error is resolved.
Documents, attachments and evidence
A structured EDI message does not automatically replace all legally significant documents. Depending on the process, CMR, an invoice, Packing List, certificates and POD may be required. Transmit links or files through an agreed secure channel, linked to a version.
Check that the attachment relates to the correct order and is accessible to the recipient. The filename “invoice_final.pdf” does not confirm that it is current. If a document is corrected, retain the previous version and the recipients of the new file.
Exchange quality control
Measure sent, delivered, structurally accepted and business-confirmed messages separately. If 114 out of 120 sent messages are structurally accepted, the technical rate is 95%. This is not an indicator of transport completion.
In the report, state the period, message type, partner, rejection reasons and processing time. Do not mix technical errors with commercial disputes. Reconciliation by specific IDs matters more than one attractive percentage: even a single error can stop an expensive container.
Workshop: an order and a weight correction
An EDI order was sent for 12 pallets of 800 kg each: total weight 9600 kg. The first message incorrectly stated 8600 kg. Prepare a correction referring to the original ID, with the new weight, reason and requirement for renewed carrier approval. The difference is 1000 kg.
Of 120 messages, 114 were structurally accepted: 114 / 120 × 100 = 95%. Describe why this percentage does not prove rate agreement or cargo delivery. Propose actions if the correction is rejected: retain both versions, notify the owner and do not implement an unconfirmed change.
Prerequisites and working outcome
Before independent work: 05.12. The outcome of this topic is an EDI field and acknowledgement map. The overview may be read earlier, but the solution is assessed after the prerequisites. All amounts, dates and rates below are stipulated for the training case and are not a market offer or a universal rule.
Practical package: EDI field and acknowledgement map
EDI-513: a training message contains messageId M-13, orderId O-13, equipmentId C1, grossWeight= 1.2, unit=TNE, revision= 2. A syntactic ACK was received; the business update was rejected because the weight was unconfirmed. M-13 arrived again; version 1 remains accepted. Prepare the mapping and processing outcomes.
Analysis. 1.2 t = 1200 kg after the agreed mapping. ACK confirms the technical level, not the price or new weight. Version 2 is retained as rejected; version 1 remains effective until an accepted change. A retry does not create a new shipment; C2 is unchanged. This is a training schema, not a universal EDIFACT/X12 profile.
Assessment criteria: input data and units — 2 points; reproducible calculation/transition — 3; justification of the decision and limitations — 3; source, version and next responsible person — 2. Self-check benchmark: 8 out of 10 with no critical error: invented fact, unconfirmed authority or double counting. This is a teaching rubric, not professional certification.
Lesson materials
Open worked solution
EDI-513: a training message contains messageId M-13, orderId O-13, equipmentId C1, grossWeight= 1.2, unit=TNE, revision= 2. A syntactic ACK was received; the business update was rejected because the weight was unconfirmed. M-13 arrived again; version 1 remains accepted. Prepare the mapping and processing outcomes.
Analysis. 1.2 t = 1200 kg after the agreed mapping. ACK confirms the technical level, not the price or new weight. Version 2 is retained as rejected; version 1 remains effective until an accepted change. A retry does not create a new shipment; C2 is unchanged. This is a training schema, not a universal EDIFACT/X12 profile.
Define the business meaning of each message type
Reconcile fields, units and order ID
Separate technical receipt from acceptance
Retain versions, rejections and documents
Checklist
- Define the business meaning of each message type
- Reconcile fields, units and order ID
- Separate technical receipt from acceptance
- Retain versions, rejections and documents
Sources
Bibliography
Sources checked on 09.11.2026. Contractual models and standards are not universally mandatory law; check the implementation profile and accepted terms separately. Sources supporting the statements: IETF — RFC 9110 (2022), §§9.2.2 and 15.3.1: idempotency and HTTP 200; GS1 — EPCIS 2.0 (2022), event identification and data exchange; DCSA — Track & Trace, transport event types and sources. Calculations, tariffs, management decisions, KPIs and the rubric are original teaching models. IFRS, where cited, provides accounting context and does not prescribe commercial prices or a mandatory regime for every company. For a live operation, check the current edition, jurisdiction and contract.