Stedi maintains this guide based on public documentation from Computer Generated Solutions. Contact Computer Generated Solutions for official EDI specifications. To report any errors in this guide, please contact us.
X12 940 940 Warehouse Shipping Order
—
Delimiters
- ~ Segment
- * Element
- > Component
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
ST
010
Transaction Set Header
Max use 1
Required
W05
020
Shipping Order Identification
Max use 1
Required
N9
090
Reference Identification
Max use 10
Required
G62
110
Date/Time
Max use 10
Required
NTE
120
Note/Special Instruction
Max use 1
Optional
W66
140
Warehouse Carrier Information
Max use 1
Required
R2
153
Route Information
Max use 13
Optional
detail
0300 Loop
LX
005
Assigned Number
Max use 1
Required
0310 Loop
W01
020
Line Item Detail - Warehouse
Max use 1
Required
G69
030
Line Item Detail - Description
Max use 5
Optional
N9
040
Reference Identification
Max use 200
Optional
N9
040
Reference Identification Special Charge or Allowance Code
Max use 1
Optional
NTE
045
Note/Special Instruction
Max use 1
Optional
W20
050
Line-Item Detail - Miscellaneous
Max use 3
Optional
QTY
070
Quantity
Max use 10
Optional
AMT
080
Monetary Amount
Max use 1
Optional
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
—
- 00401
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
—
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
0100 Loop Bill-to-Party, Ship From, and Mark-for-Party
OptionalMax >1
Variants (all may be used)
0100 Loop Ship ToN1
040
Heading > 0100 Loop Bill-to-Party, Ship From, and Mark-for-Party > N1
Name
RequiredMax use 1
—
Usage notes
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
N2
050
Heading > 0100 Loop Bill-to-Party, Ship From, and Mark-for-Party > N2
Additional Name Information
OptionalMax use 2
—
Usage notes
—
Example
N3
060
Heading > 0100 Loop Bill-to-Party, Ship From, and Mark-for-Party > N3
Address Information
OptionalMax use 2
—
Usage notes
—
Example
N4
070
Heading > 0100 Loop Bill-to-Party, Ship From, and Mark-for-Party > N4
Geographic Location
OptionalMax use 1
—
Usage notes
—
Example
PER
080
Heading > 0100 Loop Bill-to-Party, Ship From, and Mark-for-Party > PER
Administrative Communications Contact
OptionalMax use 5
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
0100 Loop Bill-to-Party, Ship From, and Mark-for-Party end
0100 Loop Ship To
RequiredMax 1
Variants (all may be used)
0100 Loop Bill-to-Party, Ship From, and Mark-for-PartyN1
040
Heading > 0100 Loop Ship To > N1
Name
RequiredMax use 1
—
Usage notes
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
N2
050
Heading > 0100 Loop Ship To > N2
Additional Name Information
OptionalMax use 2
—
Usage notes
—
Example
PER
080
Heading > 0100 Loop Ship To > PER
Administrative Communications Contact
OptionalMax use 5
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
0100 Loop Ship To end
—
- 3P
- 3
- CU
- BC Customer Number
- DP
- Department Number
- DV
- Division Number
- IA
- Supplier Number
- OT
- BC Order Type
- SC
- Shipper/Carrier/Service Code
- TM
- Order Terms (Sender)
- TR
- Shipment Terms Code (Sender)
- UD1
- User Defined 1
- UD2
- User Defined 2
- UD3
- User Defined 3
- VAT
- VAT Number
- WV
- Dealer Identification
- rd
- Party Account Number
G62
110
Heading > G62
Date/Time
RequiredMax use 10
—
Usage notes
—
Example
If either Time Qualifier (G62-03) or Time (G62-04) is present, then the other is required
—
- 01
- Cancel After This Date
- 04
- Original PO date
- 10
- Requested Ship Date/Pick-up Date
- 67
- Must Arrive By Date
—
- AMT
- Merchandise Amount
- BOL
- Bill of Lading Number
- BOS
- BC Order Source
- BWV
- BC Wave Number
- CAC
- Relationship Information (DBA Name)
- CAT
- Catalog
- CUR
- Currency Code
- CUS
- Customer Type
- DEL
- Shipping/Routing
- EDI
- EDI Data Warehouse
- GFT
- Gift Message
- LOI
- Load ID
- MBO
- Manifest (Master Bill of Lading)
- MRT
- EDI PO Type
- OS
- PDN
- Promotion /Deal Number
- PHC
- Ship Mod
- PKG
- Packaging
- PRO
- Carrier PRO Number
- REF
- Secondary PO/Reference Number
- SPH
- Special Handling
- SPS
- BC SPS Billing Code
- STT
- Store Type (Sender)
- TC
- TC Number
- WHI
- Warehouse Instructions
- ZZZ
- Mutually Defined Reference Number
—
- 3P
- Third Party
- CC
- Collect
- PP
- Prepaid (by Seller)
—
- A
- Air
- AE
- Air Express
- CE
- Customer Pickup
- D
- Parcel Post
- E
- Expedited Truck
- LT
- Less Than Trailer Load (LTL)
- M
- Motor
- R
- Rail
- S
- Ocean
- T
- Best Way (Shipping facility Option)
- U
- Private Parcel Service
—
- A
- Air
- AE
- Air Express
- CE
- Customer Pickup
- D
- Parcel Post
- E
- Expedited Truck
- LT
- Less Than Trailer Load (LTL)
- M
- Motor
- R
- Rail
- S
- Ocean
- T
- Best Way (Shipping facility Option)
- U
- Private Parcel Service
Heading end
Detail
0300 Loop
RequiredMax >1
0310 Loop
RequiredMax >1
W01
020
Detail > 0300 Loop > 0310 Loop > W01
Line Item Detail - Warehouse
RequiredMax use 1
—
Usage notes
—
Example
If either Product/Service ID Qualifier (W01-15) or Product/Service ID (W01-16) is present, then the other is required
—
- EN
- European Article Number (EAN) (2-5-5-1)
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
G69
030
Detail > 0300 Loop > 0310 Loop > G69
Line Item Detail - Description
OptionalMax use 5
—
Usage notes
—
Example
N9
040
Detail > 0300 Loop > 0310 Loop > N9
Reference Identification
OptionalMax use 200
—
Usage notes
—
Example
Variants (all may be used)
N9Reference Identification Special Charge or Allowance Code—
- 79
- BC Price
- AQ
- BC Assortment Quantity
- AS
- BC Assortment Number
- AX
- BC Auxiliary SKU
- BM
- NRF Color Code
- CB
- Buyer’s SKU
- DM
- BC Dimension Code
- EN
- EAN Number
- GF
- BC Gift Box Style
- LB
- BC Label Code
- PI
- BC Net Price
- PV
- BC order line number
- SB
- BC Size Bucket
- SM
- NRF Size Code
- SR
- BC Size Range
- SZ
- BC Size Code
- VC
- BC Color Code
N9
040
Detail > 0300 Loop > 0310 Loop > N9
Reference Identification Special Charge or Allowance Code
OptionalMax use 1
—
Usage notes
—
Example
Variants (all may be used)
N9Reference IdentificationNTE
045
Detail > 0300 Loop > 0310 Loop > NTE
Note/Special Instruction
OptionalMax use >1
—
Usage notes
—
Example
W20
050
Detail > 0300 Loop > 0310 Loop > W20
Line-Item Detail - Miscellaneous
OptionalMax use 3
—
Usage notes
—
Example
If either Size (W20-02) or Unit or Basis for Measurement Code (W20-03) is present, then the other is required
0310 Loop end
0300 Loop end
Detail end
Summary
Summary end
EDI Samples
Sample Transmission Data (B2B open size order w/ cross-dock)
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231207*0354*U*00401*000000001*0*T*>~
GS*OW*SENDERGS*RECEIVERGS*20231207*035448*000000001*X*004010~
ST*940*1234~
W05*N*100012*P5152041-02*111111*91003~
N1*ST*WALMART WHSE # 0008*92*0078742000008~
N2*00008*WAL-MART MEGA DC 8~
N3*234 LINCOLN BLVD*DOCK B~
N4*JOHNSON CITY*NM*85830~
N1*Z7*WALMART STORE # 023*92*0078742000023~
N2*00023*WAL-MART LONG ISLAND FM~
N3*31610 ROUTE 110~
N4*FARMINGDALE*NY*11831~
N1*SF*JACK SCHWARTZ SHOES~
N9*DP*240*MENS OUTERWEAR~
N9*IA*3462113~
N9*CU*WALMART~
N9*3P*MVU850017-04~
N9*TM*005*NET 10 EOM + 35~
N9*WV*4810~
N9*SC*RDY~
N9*OT*B2B~
G62*04*20061201*Q*135217*LT~
G62*10*20061210~
G62*01*20061225~
G62*67*20061228~
NTE*PKG*ALL CARTONS MUST HAVE MATCHING UCC-128 CARTON LABEL BEFORE SHIPPING~
NTE*WHI*DO NOT SHORT SHIP~
NTE*OS*BEX~
NTE*EDI*REF.02.DP.0128~
NTE*EDI*DTM.02.036.20061228~
NTE*CUR*USD~
W66*PP*M***ROADWAY*****RDWY~
LX*1~
W01*800*EA**UP*737411458202*VN*W23W9100D~
G69*JACKET – SHORT BOXY~
G69*6 PETITE~
G69*BLACK~
N9*CB*38103K~
N9*LB*WMT1~
N9*VC*BLK~
N9*SZ*6P~
N9*SR*SZEC~
N9*SB*4~
N9*PV*1~
N9*79*14.5~
NTE*EDI*PO1.07.IN.02884001X54~
NTE*EDI*PID.05.08.SHORT BOXY JACKET (6P)~
AMT*8P*32.25~
LX*2~
W01*900*EA**UP*737411419021*VN*M11M9100P~
G69*JACKET – SHORT BOXY~
G69*8 PETITE~
G69*BLACK~
N9*CB*284381D~
N9*VC*BLK~
N9*SZ*8P~
N9*SR*SZEC~
N9*SB*6~
N9*PV*1~
N9*79*18.25~
NTE*EDI*PO1.07.IN.02884001X62~
NTE*EDI*PID.05.08.SHORT BOXY JACKET (8P)~
AMT*8P*35.75~
W76*1700~
SE*63*1234~
GE*1*000000001~
IEA*1*000000001~
GS*OW*SENDERGS*RECEIVERGS*20231207*035448*000000001*X*004010~
ST*940*1234~
W05*N*100012*P5152041-02*111111*91003~
N1*ST*WALMART WHSE # 0008*92*0078742000008~
N2*00008*WAL-MART MEGA DC 8~
N3*234 LINCOLN BLVD*DOCK B~
N4*JOHNSON CITY*NM*85830~
N1*Z7*WALMART STORE # 023*92*0078742000023~
N2*00023*WAL-MART LONG ISLAND FM~
N3*31610 ROUTE 110~
N4*FARMINGDALE*NY*11831~
N1*SF*JACK SCHWARTZ SHOES~
N9*DP*240*MENS OUTERWEAR~
N9*IA*3462113~
N9*CU*WALMART~
N9*3P*MVU850017-04~
N9*TM*005*NET 10 EOM + 35~
N9*WV*4810~
N9*SC*RDY~
N9*OT*B2B~
G62*04*20061201*Q*135217*LT~
G62*10*20061210~
G62*01*20061225~
G62*67*20061228~
NTE*PKG*ALL CARTONS MUST HAVE MATCHING UCC-128 CARTON LABEL BEFORE SHIPPING~
NTE*WHI*DO NOT SHORT SHIP~
NTE*OS*BEX~
NTE*EDI*REF.02.DP.0128~
NTE*EDI*DTM.02.036.20061228~
NTE*CUR*USD~
W66*PP*M***ROADWAY*****RDWY~
LX*1~
W01*800*EA**UP*737411458202*VN*W23W9100D~
G69*JACKET – SHORT BOXY~
G69*6 PETITE~
G69*BLACK~
N9*CB*38103K~
N9*LB*WMT1~
N9*VC*BLK~
N9*SZ*6P~
N9*SR*SZEC~
N9*SB*4~
N9*PV*1~
N9*79*14.5~
NTE*EDI*PO1.07.IN.02884001X54~
NTE*EDI*PID.05.08.SHORT BOXY JACKET (6P)~
AMT*8P*32.25~
LX*2~
W01*900*EA**UP*737411419021*VN*M11M9100P~
G69*JACKET – SHORT BOXY~
G69*8 PETITE~
G69*BLACK~
N9*CB*284381D~
N9*VC*BLK~
N9*SZ*8P~
N9*SR*SZEC~
N9*SB*6~
N9*PV*1~
N9*79*18.25~
NTE*EDI*PO1.07.IN.02884001X62~
NTE*EDI*PID.05.08.SHORT BOXY JACKET (8P)~
AMT*8P*35.75~
W76*1700~
SE*63*1234~
GE*1*000000001~
IEA*1*000000001~
Sample Transmission Data (B2C gift order)
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231207*0352*U*00401*000000001*0*T*>~
GS*OW*SENDERGS*RECEIVERGS*20231207*035242*000000001*X*004010~
ST*940*1234~
W05*N*100012*P5152041-01*111111*91003~
N1*ST*JOHN SMITH~
N3*123 MAIN STREET*APT 1A~
N4*JOHNSTOWN*NH*05830~
PER*CN**TE*(381)381-3031*EM*JSMITH@YAHOO.COM~
N1*BT*MARTHA JONES~
N3*ROUTE 101*BOX 90~
N4*DOUGLAS*IL*59481~
PER*CN**TE*(912)544-3456*EM*MJONES@YAHOO.COM~
N9*CU*WEBORDER~
N9*TM*002*NET 30~
N9*SC*UP1~
N9*OT*B2B~
G62*04*20061201*Q*124203*LT~
G62*10*20061210~
G62*01*20061225~
G62*67*20061227~
NTE*GFT*DEAR JOHN, HAPPY BIRTHDAY! LOVE GRANDMA~
NTE*OS*BET~
NTE*CUR*USD~
W66*PP*U***UPS GROUND*****UPSG~
LX*1~
W01*2*EA**UP*737411419014*VN*M11M9100P~
G69*JACKET – SHORT BOXY~
G69*LARGE~
G69*BLACK~
G69*DEEP DARK BLACK~
N9*VC*BLK~
N9*SZ*L~
N9*GF*GIFTBOX1~
N9*PV*1~
N9*PI*27.55~
QTY*QU*4~
AMT*8P*99.95~
AMT*NP*199.90~
LX*2~
W01*3*EA**UP*737411419021*VN*M11M9100P~
G69*TIE – WHALE SURF~
G69*ONE SIZE~
G69*BLUE/GREEN~
G69*BLUE OCEAN & DARK FOREST GREEN~
N9*VC*BLG~
N9*SZ*OS~
N9*GF*GIFTBOX4~
N9*PV*3~
N9*PI*7.85~
QTY*QU*1~
AMT*8P*29.95~
W76*4~
SE*51*1234~
GE*1*000000001~
IEA*1*000000001~
GS*OW*SENDERGS*RECEIVERGS*20231207*035242*000000001*X*004010~
ST*940*1234~
W05*N*100012*P5152041-01*111111*91003~
N1*ST*JOHN SMITH~
N3*123 MAIN STREET*APT 1A~
N4*JOHNSTOWN*NH*05830~
PER*CN**TE*(381)381-3031*EM*JSMITH@YAHOO.COM~
N1*BT*MARTHA JONES~
N3*ROUTE 101*BOX 90~
N4*DOUGLAS*IL*59481~
PER*CN**TE*(912)544-3456*EM*MJONES@YAHOO.COM~
N9*CU*WEBORDER~
N9*TM*002*NET 30~
N9*SC*UP1~
N9*OT*B2B~
G62*04*20061201*Q*124203*LT~
G62*10*20061210~
G62*01*20061225~
G62*67*20061227~
NTE*GFT*DEAR JOHN, HAPPY BIRTHDAY! LOVE GRANDMA~
NTE*OS*BET~
NTE*CUR*USD~
W66*PP*U***UPS GROUND*****UPSG~
LX*1~
W01*2*EA**UP*737411419014*VN*M11M9100P~
G69*JACKET – SHORT BOXY~
G69*LARGE~
G69*BLACK~
G69*DEEP DARK BLACK~
N9*VC*BLK~
N9*SZ*L~
N9*GF*GIFTBOX1~
N9*PV*1~
N9*PI*27.55~
QTY*QU*4~
AMT*8P*99.95~
AMT*NP*199.90~
LX*2~
W01*3*EA**UP*737411419021*VN*M11M9100P~
G69*TIE – WHALE SURF~
G69*ONE SIZE~
G69*BLUE/GREEN~
G69*BLUE OCEAN & DARK FOREST GREEN~
N9*VC*BLG~
N9*SZ*OS~
N9*GF*GIFTBOX4~
N9*PV*3~
N9*PI*7.85~
QTY*QU*1~
AMT*8P*29.95~
W76*4~
SE*51*1234~
GE*1*000000001~
IEA*1*000000001~
Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.