DevToolCase
Sign in Sign in

EDIFACT message types

The EDIFACT and EANCOM messages companies exchange, from the order to the invoice and the transport: what each one is for, its segments, its codes and an annotated example.

How the messages follow each other

Message types

PRICAT — Price/sales catalogue

The EDIFACT PRICAT price/sales catalogue: how a supplier sends its products and prices, its segments, codes and an annotated EANCOM D96A example.

Supplier to Buyer

PRICAT: structure and example

ORDERS — Purchase order

The EDIFACT ORDERS purchase order: what it is for, its segments (BGM, DTM, NAD, LIN, QTY), key qualifiers and an annotated EANCOM D96A example.

Buyer to Supplier

ORDERS: structure and example

ORDRSP — Purchase order response

The EDIFACT ORDRSP order response: how a supplier accepts, changes or rejects an order, its segments, codes and an annotated EANCOM D96A example.

Supplier to Buyer

ORDRSP: structure and example

DESADV — Despatch advice

The EDIFACT DESADV despatch advice (ASN): its packing hierarchy (CPS, PAC, GIN with SSCC), segments, codes and an annotated EANCOM D96A example.

Supplier to Buyer

DESADV: structure and example

RECADV — Receiving advice

The EDIFACT RECADV receiving advice: how a buyer reports the goods received and the differences, its segments, codes and an annotated D96A example.

Buyer to Supplier

RECADV: structure and example

INVOIC — Invoice

The EDIFACT INVOIC invoice: its parties, lines, VAT and totals (MOA, TAX), key qualifiers and an annotated EANCOM D96A example.

Supplier to Buyer

INVOIC: structure and example

IFTMIN — Transport instruction

The EDIFACT IFTMIN instruction: how a shipper books a transport with a carrier, its segments, qualifiers and an annotated D96A example.

Shipper to Carrier

IFTMIN: structure and example

IFTSTA — Transport status report

The EDIFACT IFTSTA status report: how a carrier reports the pickup, delivery or delay of a consignment, its segments, codes and a D96A example.

Carrier to Shipper

IFTSTA: structure and example

INVRPT — Inventory report

The EDIFACT INVRPT inventory report: stock levels per product and location, its segments, qualifiers and an annotated EANCOM D96A example.

Buyer to Supplier

INVRPT: structure and example

APERAK — Application error and acknowledgement

The EDIFACT APERAK message: how a recipient confirms or rejects a message it processed, its error codes, segments and an annotated D96A example.

Recipient to Sender

APERAK: structure and example

What is an EDIFACT message?

UN/EDIFACT is the United Nations standard of electronic data interchange: companies replace paper documents (orders, despatch notes, invoices, transport instructions) with messages their systems read without retyping. Each message type has a six-letter name, such as ORDERS or DESADV, and a segment table that sets which segments it holds, in which order and how many times.

A message is a series of segments, each ending with an apostrophe '. A segment holds elements separated by +, and an element components separated by :; ? escapes these characters.

The envelope

SegmentRole
UNAoptional: the separators, when they are not the usual ones
UNBstart of the interchange: sender, recipient, date, reference
UNHstart of a message: its type and directory, such as ORDERS:D:96A:UN:EAN008
UNTend of the message: its number of segments
UNZend of the interchange: its number of messages

Directories and EANCOM

The segment tables are published in directories, named after their year and release: D.93A, D.96A, D.01B… A message names its directory in UNH, and both partners must use the same. D.96A is still one of the most used, in retail especially: these pages describe its segment tables.

EANCOM is the subset of UN/EDIFACT maintained by GS1 for retail: it keeps the segments retailers use, identifies parties by their GLN and items by their GTIN, and adds a few codes. An EANCOM message says so in UNH, with its subset version after the directory: EAN008.

Read your own messages

Paste a message into the EDIFACT viewer to see each segment explained and its structure checked against its directory, or convert it to JSON or to XML to use it in a program. Each example of these pages opens in the viewer in one click. Nothing you paste is sent to a server.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.