Stedi maintains this guide based on public documentation from UPS. Contact UPS for official EDI specifications. To report any errors in this guide, please contact us.
X12 940 Warehouse Shipping Order
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
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
detail
0300 Loop
LX
0050
Transaction Set Line Number
Max use 1
Required
0310 Loop
W01
0200
Line Item Detail - Warehouse
Max use 1
Required
G69
0300
Line Item Detail - Description
Max use 5
Optional
N9
0400
Extended Reference Information
Max use 200
Optional
NTE
0450
Note/Special Instruction
Max use 1
Optional
W20
0500
Line Item Detail - Packing
Max use 3
Optional
AMT
0800
Monetary Amount Information
Max use 1
Optional
G62
0900
Date/Time
Max use 10
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)
—
- 00501
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
—
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
W05
0200
Heading > W05
Shipping Order Identification
RequiredMax use 1
—
Example
If either Link Sequence Number (W05-04) or Master Reference (Link) Number (W05-05) is present, then the other is required
0100 Loop
OptionalMax >1
N1
0400
Heading > 0100 Loop > N1
Party Identification
RequiredMax use 1
—
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
—
- 54
- Warehouse
- 91
- Assigned by Seller or Seller's Agent
- 94
- Code assigned by the organization that is the ultimate destination of the transaction set—
PER
0800
Heading > 0100 Loop > PER
Administrative Communications Contact
OptionalMax use 5
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
0100 Loop end
—
- 5E
- Consumer Identifier—
- 6R
- Provider Control Number—
- 7R
- EUD/Med. Practitioner—
- 8X
- Transaction Category or Type—
- 9X
- Customer Type—
- AFV
- State Controlled Substance License Number—
- CO
- Customer Order Number—
- DP
- Department Number—
- EP
- Precursor Export Permit No.—
- EU
- End User's Purchase Order Number—
- IA
- Internal Vendor Number—
- MR
- Merchandise Type Code—
- PH
- Priority Rating—
- PN
- Controlled/Narcotics Export Permit No.—
- RAA
- Signing Authority/Med. Practitioner—
- RPP
- Relative Priority—
- RRC
- Routing Request Control Number—
- RU
- Route Number—
- S5
- Routing Instruction Number—
- SO
- Shipper's Order (Invoice Number)—
G62
1100
Heading > G62
Date/Time
OptionalMax use 10
—
Example
If either Date Qualifier (G62-01) or Date (G62-02) is present, then the other is required
W66
1400
Heading > W66
Warehouse Carrier Information
OptionalMax use 1
—
Example
If either COD Method of Payment Code (W66-08) or Amount (W66-09) is present, then the other is required
—
- CC
- Collect
- PP
- Prepaid (by Seller)
- PU
- Pickup
- TP
- Third Party Pay
—
- H
- Customer Pickup
- M
- Motor (Common Carrier)
- T
- Best Way (Shippers Option)
Heading end
Detail
0300 Loop
OptionalMax >1
0310 Loop
OptionalMax >1
W01
0200
Detail > 0300 Loop > 0310 Loop > W01
Line Item Detail - Warehouse
RequiredMax use 1
—
Example
If either Product/Service ID Qualifier (W01-04) or Product/Service ID (W01-05) is present, then the other is required
If either Product/Service ID Qualifier (W01-06) or Product/Service ID (W01-07) is present, then the other is required
If either Product/Service ID Qualifier (W01-15) or Product/Service ID (W01-16) is present, then the other is required
W20
0500
Detail > 0300 Loop > 0310 Loop > W20
Line Item Detail - Packing
OptionalMax use 3
—
Example
If either Size (W20-02) or Unit or Basis for Measurement Code (W20-03) is present, then the other is required
G62
0900
Detail > 0300 Loop > 0310 Loop > G62
Date/Time
OptionalMax use 10
—
Example
If either Date Qualifier (G62-01) or Date (G62-02) is present, then the other is required
0310 Loop end
0300 Loop end
Detail end
Summary
Summary end
EDI Samples
Sample
W05*N*0080012345*10-12345*999999*4500000055*95~
N1*ST*TNN Pharmacy*91*0012345~
N3*1201 Any Place*Suite 100~
N4*TROY*MI*48084*US~
N1*WH**54*SD2~
PER*OC**TE*999-555-1212~
N9*8X*ZORC~
N9*IA*1234567~
N9*DP*999~
N9*5E*ATTN: Joe Smith~
G62*37*20170308~
G62*17*20170313~
NTE*PKG*SAMPLE PACKAGING NOTE DATA~
NTE*WHI*Carton Content Label Line 1~
NTE*WHI*Carton Content Label Line 2~
NTE*WHI*Carton Content Label Line 3~
W66*PP*M********UU10~
LX*1~
W01*36*EA**VN*12345~
G69*Product 1~
N9*LT*ABC123~
N9*LI*000010~
N9*BV*1~
NTE*PKG*DETAIL NOTE DATA~
AMT*K7*10.5~
W01*36*EA**VN*67890~
G69*Product 2~
N9*LT*ABC456~
N9*LI*000020~
N9*BV*2~
N9*ACC*QU~
AMT*K7*10~
N1*ST*TNN Pharmacy*91*0012345~
N3*1201 Any Place*Suite 100~
N4*TROY*MI*48084*US~
N1*WH**54*SD2~
PER*OC**TE*999-555-1212~
N9*8X*ZORC~
N9*IA*1234567~
N9*DP*999~
N9*5E*ATTN: Joe Smith~
G62*37*20170308~
G62*17*20170313~
NTE*PKG*SAMPLE PACKAGING NOTE DATA~
NTE*WHI*Carton Content Label Line 1~
NTE*WHI*Carton Content Label Line 2~
NTE*WHI*Carton Content Label Line 3~
W66*PP*M********UU10~
LX*1~
W01*36*EA**VN*12345~
G69*Product 1~
N9*LT*ABC123~
N9*LI*000010~
N9*BV*1~
NTE*PKG*DETAIL NOTE DATA~
AMT*K7*10.5~
W01*36*EA**VN*67890~
G69*Product 2~
N9*LT*ABC456~
N9*LI*000020~
N9*BV*2~
N9*ACC*QU~
AMT*K7*10~
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.