EDI Reference / segments / GS
GS

Functional Group Header

Wraps a group of same-type transactions (all POs, all invoices) inside the interchange.

Key elements

ElementNameWhat it carries
GS01 Functional ID Code PO=orders, IN=invoices, SH=ship notices, FA=997s.
GS06 Group Control Number Echoed by GE; must match.
GS08 Version/Release e.g. 004010.

Key elements only — the ones that matter in retail trade, not the full element list.

Appears in

850 · Purchase Order 855 · Purchase Order Acknowledgment 856 · Advance Ship Notice (ASN) 810 · Invoice 997 · Functional Acknowledgment 860 · Purchase Order Change 865 · PO Change Acknowledgment 846 · Inventory Inquiry / Advice 832 · Price / Sales Catalog 816 · Organizational Relationships 824 · Application Advice 940 · Warehouse Shipping Order 943 · Warehouse Stock Transfer Shipment Advice 944 · Warehouse Stock Transfer Receipt Advice 945 · Warehouse Shipping Advice 947 · Warehouse Inventory Adjustment Advice 204 · Motor Carrier Load Tender 214 · Transportation Carrier Shipment Status 875 · Grocery Products Purchase Order 877 · Manufacturer Coupon Family Code Structure 880 · Grocery Products Invoice

See a real GS in context — paste any X12 and the Inspector breaks out every segment.

Inspect an X12 free