How it worksPricingDocsTry the decoder

EDIFACT message types explained.

EDIFACT defines dozens of message types, each for a different business document. Here are the ones you are most likely to encounter, explained in plain English with the key segments you need to know.

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, how it is packed, 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+BYBuyer details
NAD+DPDelivery point
PACPackage type and quantity
PCI+33ESSCC barcode on the package
LINLine item shipped
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
NAD+SUSupplier (seller) details
NAD+BYBuyer details
TAXTax type and rate (GST, VAT etc)
LINInvoice line item
QTY+47Invoiced quantity
PRI+AAANet unit price
MOA+77Line item total amount
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. It is the EDIFACT equivalent of a read receipt, but with business meaning. 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 to be sent in response to every received message. If you receive an ORDERS, you should send back a CONTRL. 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
ORDRSPOrder ResponseSupplier to Buyer

The ORDRSP is a business-level response to an ORDERS message. While the CONTRL confirms technical receipt, the ORDRSP tells the buyer whether you can fulfil the order and on what terms. You can accept the order as-is, accept with changes (different quantity, different delivery date), or reject it with a reason.

RECADVReceiving AdviceBuyer 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. Discrepancies in quantity or product can be flagged. This message is used to trigger payment in automatic invoice matching systems.

IFTMINInstruction MessageVaries

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 of every segment. No account needed.

Try the decoder

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