EDIFACT (Electronic Data Interchange For Administration, Commerce and Transport) is the UN standard for exchanging commercial documents electronically between companies. It defines the syntax and semantics of messages such as ORDERS, DESADV and INVOIC, and sector subsets such as EANCOM adapt it for retail.
EDIFACT (Electronic Data Interchange For Administration, Commerce and Transport) is the UN standard for EDI, globally adopted since 1987. It defines message syntax and semantics (ORDERS, DESADV, INVOIC, ORDRSP etc.) and is the reference for all B2B communication in retail, automotive, logistics and healthcare. Sector-specific subsets include EANCOM (retail FMCG), ODETTE (automotive), GS1 (global identification).
An EDIFACT file is text made of segments, each ending with an apostrophe. Control segments wrap the actual documents:
| Segment | Role |
|---|---|
| UNA | Optional: sets the separator characters (component, element, decimal, terminator). |
| UNB | Interchange header: sender, recipient, date and interchange reference. |
| UNH | Start of a message: type (ORDERS, DESADV, INVOIC), version and subset. |
| … | The content segments of the message (BGM, DTM, NAD, LIN, QTY and so on). |
| UNT | End of the message: segment count and message reference. |
| UNZ | End of the interchange: message count and interchange reference. |
The example only shows the envelope: an interchange with a single ORDERS message, cut down to a few segments. The location codes are fictitious, with valid check digits. The example is illustrative and simplified; follow the partner's implementation guide.
UNA:+.? '
UNB+UNOC:3+2000001000014:14+2000002000020:14+261118:0900+000001'
UNH+1+ORDERS:D:96A:UN:EAN008'
BGM+220+PO-2026-0451+9'
DTM+137:20261118:102'
UNT+4+1'
UNZ+1+000001'Messages are grouped in version directories such as D.96A, and partners must use the same version. For each sector there are subsets that narrow the standard down to what is needed:
EDIFACT is used in retail, logistics, automotive and healthcare. In Romania, large retailers ask for orders, dispatch advices and invoices in EDIFACT/EANCOM format. For the e-Invoice, ANAF uses a different format, XML UBL 2.1, and the two run in parallel.
With EDIconnect you do not write EDIFACT by hand. Documents are converted automatically between your ERP format and the format each retailer requires, and you work in the Web EDI portal or directly in your ERP, through integration.
EDIconnect converts automatically between your ERP and the EDIFACT format each retailer requires.
Last updated: November 2026.