Published 8 min read
Envelopes: ISA, GS and ST
Every X12 file starts with an ISA interchange header that identifies the sender and receiver, the date and a control number. Inside it, GS functional groups bundle related transactions, and each ST/SE pair wraps a single purchase order. One file can contain many orders.
Header segments
After ST, the header describes the order as a whole:
- BEG - purpose code, order type, PO number and PO date
- REF - reference numbers such as department or vendor number (REF*IA)
- PER - buyer contact details
- FOB - shipment method of payment
- ITD - payment terms
- DTM - requested ship and delivery dates
- TD5 - routing and carrier instructions
- N1/N3/N4 - ship-to, bill-to and buying party addresses
Line items
Each PO1 segment starts a line item with the quantity, unit of measure, unit price and product identifiers such as UPC, buyer item number or vendor style. It may be followed by CTP pricing, PID descriptions and PO4 pack details. The CTT segment closes the order with a line count and hash total.
Turning 850s into work
Warehouse Ship Manager parses each 850 into a structured order, matches the trading partner by its EDI ID, and creates a sales order your warehouse can pick right away. If an order cannot sync, your team gets an email explaining why.