EDIFACT message types explained.

EDIFACT defines dozens of message types. Here are the ones you are most likely to encounter, explained in plain English.

ORDERS

Purchase Order

Buyer to Supplier

The ORDERS message is how a buyer tells a supplier what they want to purchase. It contains the order number, the delivery date, the delivery location, and one or more line items each with a product identifier, quantity, and price.

When you will see this

When a retailer, wholesaler, or distributor places an order with you. This is usually the first message in a trading cycle.

Key segments
BGMOrder number and document function
DTMOrder date and requested delivery date
NAD+BYBuyer name, address, and GLN
NAD+SUSupplier name and GLN
NAD+DPDelivery point address
LINLine item number and product GTIN
QTY+21Ordered quantity
PRIUnit price
DESADV

Despatch Advice

Supplier to Buyer

The DESADV message is sent by the supplier to notify the buyer that goods have been despatched. It is the EDIFACT equivalent of a packing slip or advance ship notice (ASN). It tells the buyer what is coming, when it was shipped, and what SSCC barcodes are on the pallets or cartons.

When you will see this

When you need to tell your customer that you have shipped their order. Many buyers require this before the goods arrive so they can prepare their receiving area.

Key segments
BGMDespatch advice number
DTM+11Despatch date
DTM+17Estimated delivery date
RFF+ONReference to the original purchase order number
NAD+SUSupplier details
NAD+DPDelivery point
PCI+33ESSCC barcode on the package
QTY+12Quantity despatched
INVOIC

Invoice

Supplier to Buyer

The INVOIC message is a request for payment. It references the original purchase order, lists the goods or services supplied with quantities and prices, and includes tax details and payment terms. It is the EDIFACT equivalent of a tax invoice.

When you will see this

When you need to bill your customer for goods or services you have supplied. Some trading partners require EDIFACT invoices instead of PDF invoices for automatic processing.

Key segments
BGM+380Invoice number (380 = commercial invoice)
DTM+137Invoice date
DTM+13Payment due date
RFF+ONOriginal purchase order number
TAXTax type and rate (GST, VAT etc)
QTY+47Invoiced quantity
MOA+9Total payable amount
CONTRL

Functional Acknowledgement

Both directions

The CONTRL message is sent in response to any received EDIFACT message to confirm receipt and indicate whether the message was accepted or rejected. A positive CONTRL means the message was received and syntactically valid. A negative CONTRL means there was a problem.

When you will see this

Most EDI platforms and trading partners require a CONTRL in response to every received message. Platforms like SPS Commerce and MessageXchange enforce this requirement.

Key segments
UCIInterchange response, references the original UNB
UCMMessage response, references the original UNH
UCSSegment error, identifies a specific problem segment
ORDRSP

Order Response

Supplier to Buyer

The ORDRSP is a business-level response to an ORDERS message. You can accept the order as-is, accept with changes, or reject it with a reason.

RECADV

Receiving Advice

Buyer to Supplier

The RECADV is sent by the buyer when they have physically received goods. It confirms what was actually received versus what was in the DESADV. This message is used to trigger payment in automatic invoice matching systems.

IFTMIN

Instruction Message

Varies

The IFTMIN is used in transport and logistics to give instructions to a carrier or freight forwarder. It is the EDIFACT equivalent of a booking request or transport instruction.

Paste your EDIFACT message

Use the free CleanEDI decoder to paste any EDIFACT message and get back a plain English breakdown. No account needed.

Try the decoderSegment glossary

Stop dealing with EDIFACT entirely

CleanEDI sits at the boundary and handles all of this for you. Your team works with clean JSON. No segment knowledge required.

See pricing