Understand and introduce EDI/EDIFACT

This entry page is for project owners, administrators, and integration developers who want to exchange business documents with a trading partner automatically. It explains the essential terms, separates the standard, partner profile, mapping, and transport contracts, and shows what Workspace supports natively.

Start with one decision: does the agreed partner contract use ORDERS and ORDRSP in D.96A or D.25A over the Partner API or SFTP? Treat a different message, directory, or transport as a separate integration scope.

Check the supported contract first

DirectionWorkspace contractMeaning
InboundORDERS in D.96A or D.25AThe buyer submits a purchase order. Workspace validates, maps, and processes it under the active application policy.
OutboundORDRSP in D.96A or D.25AWorkspace accepts or rejects the complete order.
Syntax acknowledgementCONTRL 2.2 for syntax version 3 or CONTRL 4.1 for syntax version 4The recipient accepts or rejects the EDIFACT syntax. CONTRL is not a D.96A/D.25A directory message.
Application acknowledgementAPERAK in D.96A or D.25AThe recipient reports an application-level or mapping-related acceptance or rejection.
TransportPartner API or SFTPThe transport moves bytes. It does not replace syntax validation or a business acknowledgement.

The current native contract includes neither DESADV, INVOIC, nor AS2. An UN/EDIFACT directory can define a message that Workspace does not yet process as a product capability.

Keep the contract layers separate

EDI/EDIFACT projects often fail when participants call several different layers “the format”. Keep these contracts distinct:

LayerGuiding questionExample
EDIWhich business process crosses system boundaries?Purchase order and order response without manual re-entry.
UN/EDIFACT syntaxHow are interchanges, messages, segments, and data elements written?Separators, UNB/UNZ, UNH/UNT, release character, and syntax version.
DirectoryWhich structure does a message type have in one release?ORDERS:D:96A:UN or ORDERS:D:25A:UN.
Partner profileWhich subset, qualifiers, and rules do both partners agree?Mandatory GTIN, permitted quantity units, date format, buyer and seller identifiers.
MappingHow do partner fields translate into the canonical Workspace model?BGM.2.1 becomes the external order reference.
TransportHow do unchanged bytes reach the recipient?Partner API or SFTP.
ProcessingWhich business effect may the message trigger?Apply automatically, review differences, or approve manually.

An EDIFACT parser alone is not a complete EDI integration. The approved partner contract connects all layers.

edi_contract_layers process Business process ORDERS → ORDRSP profile Partner profile required fields and codes process->profile directory UN/EDIFACT D.96A or D.25A profile->directory mapping Workspace mapping canonical model directory->mapping transport Transport API or SFTP mapping->transport operation Processing status and acknowledgement transport->operation

Read an EDIFACT message

This shortened example shows an ORDERS message in D.96A. It is an orientation aid, not a partner profile:

edifact
UNA:+.? '
UNB+UNOC:3+4000001000001:14+4000002000008:14+260716:1030+1'
UNH+1+ORDERS:D:96A:UN'
BGM+220+PO-1001+9'
DTM+137:20260716:102'
LIN+1++04012345000016:EN'
QTY+21:2:PCE'
UNS+S'
UNT+7+1'
UNZ+1+1'
SegmentPurpose in this example
UNAAnnounces the service characters. When UNA is absent, the agreed defaults apply.
UNBOpens the interchange and identifies syntax, sender, recipient, time, and control reference.
UNHOpens a message and identifies type, version, release, and controlling agency.
BGMIdentifies the business document and its reference.
DTMCarries a qualified date or time.
LINStarts an order line and carries an item reference.
QTYCarries a qualified quantity and unit.
UNSSeparates message sections.
UNTCloses the message with segment count and message reference.
UNZCloses the interchange with message count and control reference.

The example separates elements with +, components with :, and segments with '. The release character ? escapes the next service character. Never split a message naively on apostrophes or plus signs.

Choose the directory, syntax version, and partner profile

Workspace binds the directory to an immutable profile revision:

DirectorySyntax version in the native contractTypical UNH identification
D.96A3ORDERS:D:96A:UN
D.25A4ORDERS:D:25A:UN

Do not select the newer directory automatically. Use the exact version both partners approved with samples, required fields, qualifiers, and code values. EANCOM is a GS1-defined subset of UN/EDIFACT, not a synonym for every UN/EDIFACT partner profile. Workspace does not promise a generic EANCOM profile; evaluate that requirement separately.

Interpret acknowledgements correctly

SignalQuestion it answersIt does not prove
HTTP 202 or successful SFTP uploadDid Workspace accept the bytes for processing?Syntax, mapping, or Commerce application.
CONTRLWas the interchange syntactically acceptable?Business acceptance of the order.
APERAKWas the message acceptable to the application or mapping contract?Commerce acceptance of the order.
ORDRSPWas the complete order accepted or rejected?Transport acknowledgement for another message.

Monitor transport, syntax, mapping, application, and acknowledgement status separately. One generic “successful” status is insufficient for reliable EDI operations.

Official standards and directories

Use primary sources to look up syntax and standard messages. These sources describe the standard, not the partner profile activated in Workspace.

SourceUse it for
UNECE: UN/EDIFACT introduction and rulesTerms, syntax rules, design guidance, and implementation guidance.
UNECE: UN Trade Data Interchange DirectoryDirectories, message types, segments, data elements, and code lists.
UNECE: directory downloadsOfficial release packages and historic directories.
UNECE: UN/EDIFACT Executive GuideManagement and project introduction to the standard.
ISO 9735-2:2002Batch EDI syntax rules for syntax version 4. The complete standard may require a licence.
ISO 9735-11:2022Compatibility profile for migration from syntax version 3 to 4.
GS1 EANCOMOfficial GS1 subset of UN/EDIFACT; use it only when the partner profile explicitly requires it.
IANA: application/EDIFACTRegistration of the EDIFACT media type. HTTP values are case-insensitive; Workspace documents application/edifact.
UNECE Recommendation 20Codes for units of measure used in international trade.
UNECE UN/LOCODEOfficial codes for trade and transport locations.
GS1 standards repositoryGS1 rules for EANCOM, GLN, GTIN, and related identifiers.

Do not copy a complete standard definition into a partner mapping. Version the agreed partner profile instead and record the source and release in your project evidence.

Choose the next step

Your taskNext page
Plan a new trading partner project.Set up an EDIFACT trading partner
Administer profiles, connections, SFTP, and status.Operate B2B Exchange
Develop mappings, tests, or a partner client.Work with EDIFACT as a developer
Implement the Partner API worker.Integrate the B2B Exchange Partner API

You have completed this introduction when both partners have recorded the message, direction, directory, syntax version, partner profile, transport, business responsibility, and acknowledgement path.