Message us on WhatsApp
    Back to glossary
    Standards

    EDIFACT: the UN/EDIFACT standard

    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.

    Full definition

    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).

    How an EDIFACT interchange is structured

    An EDIFACT file is text made of segments, each ending with an apostrophe. Control segments wrap the actual documents:

    Control segments in an EDIFACT interchange
    SegmentRole
    UNAOptional: sets the separator characters (component, element, decimal, terminator).
    UNBInterchange header: sender, recipient, date and interchange reference.
    UNHStart of a message: type (ORDERS, DESADV, INVOIC), version and subset.
    …The content segments of the message (BGM, DTM, NAD, LIN, QTY and so on).
    UNTEnd of the message: segment count and message reference.
    UNZEnd of the interchange: message count and interchange reference.

    Illustrative EDIFACT interchange

    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.

    Illustrative example
    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, versions and subsets

    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:

    • EANCOM: the subset for retail and FMCG, maintained by GS1; it uses GTIN, GLN and SSCC.
    • ODETTE and VDA: the formats of the European automotive industry.
    • Core retail messages: ORDERS, ORDRSP, DESADV, RECADV, INVOIC.

    Who uses EDIFACT

    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.

    Common mistakes with EDIFACT

    • A version or subset different from the one the partner requires (for example another directory version).
    • Special characters or separators that are not escaped in text, which break the segment structure.
    • A segment count in UNT that differs from the real one, so the message fails validation.
    • Location codes or GTINs with a wrong check digit.
    • Differences between the retailer's specification and the mapping in the ERP.

    How EDIconnect works with EDIFACT

    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.

    EDIFACT in the EDIconnect platform

    Frequently asked questions about EDIFACT

    What is EDIFACT?
    EDIFACT is the UN standard for electronic data interchange between companies. It defines the structure of commercial messages such as the order, the despatch advice and the invoice.
    What is the difference between EDI and EDIFACT?
    EDI is the method of exchanging documents electronically, and EDIFACT is one of the standards used for it. Other formats are, for example, XML or ANSI X12.
    Are EDIFACT and EANCOM the same?
    No. EANCOM is an EDIFACT subset for retail, maintained by GS1, with stricter rules and GS1 identifiers.
    What does an EDIFACT message look like?
    It is text made of segments separated by apostrophes, for example UNH, BGM, DTM, NAD, LIN and UNT. Each segment has elements separated by plus signs and components separated by colons.
    Do I need to know EDIFACT to do EDI with retailers?
    Not necessarily. With a Web EDI portal or ERP integration, conversion to EDIFACT is automatic and you work with the data in your ERP.
    Reviewed by The EDIconnect Team : EDI & Business Operations experts · Last updated: June 13, 2026

    Need EDIFACT with retailers?

    EDIconnect converts automatically between your ERP and the EDIFACT format each retailer requires.

    Last updated: November 2026.