ShipBob Guides Catalog
/
Warehouse Shipping Advice
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from ShipBob Guides Catalog. Contact ShipBob Guides Catalog for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
ShipBob Guides Catalog logo

X12 945 Warehouse Shipping Advice

X12 Release 4010
Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI samples
  • None included
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/ship-bob-guides-catalog/warehouse-shipping-advice/01HSXF0220XYVND40SVQY69062
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
W06
020
Warehouse Shipment Identification
Max use 1
Required
0100 Loop
N9
090
Reference Identification
Max use 10
Optional
G61
100
Contact
Max use 3
Optional
G62
110
Date/Time
Max use 5
Optional
NTE
120
Note/Special Instruction
Max use 20
Optional
W27
130
Carrier Detail
Max use 1
Optional
G72
155
Allowance or Charge
Max use 5
Optional
detail
0300 Loop
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
ISA

Interchange Control Header

RequiredMax use 1
Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)
00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10
ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)
00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10
ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15
ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15
ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format
ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format
ISA-11
I10
Interchange Control Standards Identifier
Required
Identifier (ID)
U
U.S. EDI Community of ASC X12, TDCC, and UCS
ISA-12
I11
Interchange Control Version Number
Required
Identifier (ID)
00401
Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
ISA-14
I13
Acknowledgment Requested
Required
Identifier (ID)
Min 1Max 1
0
No Acknowledgment Requested
1
Interchange Acknowledgment Requested
ISA-15
I14
Usage Indicator
Required
Identifier (ID)
Min 1Max 1
I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Element Separator
Required
String (AN)
Min 1Max 1
>
Component Element Separator

Functional Group Header

RequiredMax use 1
Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)
SW
Warehouse Shipping Advice (945)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15
GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15
Required
Date (DT)
CCYYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9
GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2
T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)
004010
Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1997

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
945
Warehouse Shipping Advice
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
W06
020
Heading > W06

Warehouse Shipment Identification

RequiredMax use 1
Example
If either Master Reference (Link) Number (W06-07) or Link Sequence Number (W06-08) is present, then the other is required
W06-01
514
Reporting Code
Required
Identifier (ID)
A
Inventory Adjustment, Full Detail
B
Book Transfer of Inventory, Full Detail
C
Customer Return - Full Detail
F
Full Detail
J
Original Transaction
K
Simulation Exercise
N
No Exceptions
O
Physical Inventory Overage, Full Detail
P
Production Receipt, Full Detail
R
Replacement and Charge
S
Physical Inventory Shortage, Full Detail
X
Exceptions Only
Y
Automated Manifest System (AMS) Master-In-Bond Participant
W06-02
285
Depositor Order Number
Optional
String (AN)
Min 1Max 22
Optional
Date (DT)
CCYYMMDD format
W06-04
145
Shipment Identification Number
Optional
String (AN)
Min 1Max 30
W06-06
324
Purchase Order Number
Optional
String (AN)
Min 1Max 22
W06-07
474
Master Reference (Link) Number
Optional
String (AN)
Min 1Max 22
W06-08
472
Link Sequence Number
Optional
Numeric (N0)
Min 6Max 6
0100 Loop
RequiredMax >1
N1
040
Heading > 0100 Loop > N1

Name

RequiredMax use 1
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
BT
Bill-to-Party
ST
Ship To
VN
Vendor
WH
Warehouse
Z7
Mark-for Party
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
1
D-U-N-S Number, Dun & Bradstreet
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
91
Assigned by Seller or Seller's Agent
92
Assigned by Buyer or Buyer's Agent
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
N2
050
Heading > 0100 Loop > N2

Additional Name Information

OptionalMax use 1
Example
Required
String (AN)
Min 1Max 60
Optional
String (AN)
Min 1Max 60
N3
060
Heading > 0100 Loop > N3

Address Information

OptionalMax use 2
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
070
Heading > 0100 Loop > N4

Geographic Location

OptionalMax use 1
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N4-01
19
City Name
Optional
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2
N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30
PER
080
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
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
PER-01
366
Contact Function Code
Required
Identifier (ID)
BD
Buyer Name or Department
IC
Information Contact
OC
Order Contact
Optional
String (AN)
Min 1Max 60
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-07
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
PER-08
364
Communication Number
Optional
String (AN)
Min 1Max 80
0100 Loop end
N9
090
Heading > N9

Reference Identification

OptionalMax use 10
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
If Time Code (N9-06) is present, then Time (N9-05) is required
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
2I
Tracking Number
19
Division Identifier
23
Client Number
BM
Bill of Lading Number
CN
Carrier's Reference Number (PRO/Invoice)
CO
Customer Order Number
DP
Department Number
IA
Internal Vendor Number
PK
Packing List Number
SL
Sales/Territory Code
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30
N9-03
369
Free-form Description
Optional
String (AN)
Min 1Max 45
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
N9-06
623
Time Code
Optional
Identifier (ID)
Min 2Max 2
G61
100
Heading > G61

Contact

OptionalMax use 3
Example
If either Communication Number Qualifier (G61-03) or Communication Number (G61-04) is present, then the other is required
G61-01
366
Contact Function Code
Required
Identifier (ID)
BD
Buyer Name or Department
IC
Information Contact
OC
Order Contact
Required
String (AN)
Min 1Max 60
G61-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
G61-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
G62
110
Heading > G62

Date/Time

OptionalMax use 5
Example
If either Date Qualifier (G62-01) or Date (G62-02) is present, then the other is required
If either Time Qualifier (G62-03) or Time (G62-04) is present, then the other is required
At least one of Date Qualifier (G62-01) or Time Qualifier (G62-03) is required
G62-01
432
Date Qualifier
Optional
Identifier (ID)
01
Cancel After This Date
02
Delivery Requested on This Date
11
Shipped on This Date
69
Scheduled Pick-Up Date
Optional
Date (DT)
CCYYMMDD format
G62-03
176
Time Qualifier
Optional
Identifier (ID)
Min 1Max 2
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
NTE
120
Heading > NTE

Note/Special Instruction

OptionalMax use 20
Example
NTE-01
363
Note Reference Code
Optional
Identifier (ID)
GEN
Entire Transaction Set
NTE-02
352
Description
Required
String (AN)
Min 1Max 80
W27
130
Heading > W27

Carrier Detail

OptionalMax use 1
Example
At least one of Standard Carrier Alpha Code (W27-02) or Routing (W27-03) is required
W27-01
91
Transportation Method/Type Code
Required
Identifier (ID)
A
Air
H
Customer Pickup
M
Motor (Common Carrier)
P
Private Carrier
T
Best Way (Shippers Option)
W27-02
140
Standard Carrier Alpha Code
Optional
Identifier (ID)
Min 2Max 4
W27-03
387
Routing
Optional
String (AN)
Min 1Max 35
W27-04
146
Shipment Method of Payment
Optional
Identifier (ID)
CC
Collect
PP
Prepaid (by Seller)
TP
Third Party Pay
W27-05
40
Equipment Description Code
Optional
Identifier (ID)
TL
Trailer (not otherwise specified)
W27-06
206
Equipment Initial
Optional
String (AN)
Min 1Max 4
W27-07
207
Equipment Number
Optional
String (AN)
Min 1Max 10
W27-08
368
Shipment/Order Status Code
Optional
Identifier (ID)
PR
Partial Shipment
G72
155
Heading > G72

Allowance or Charge

OptionalMax use 5
Example
If either Allowance or Charge Quantity (G72-06) or Unit or Basis for Measurement Code (G72-07) is present, then the other is required
Only one of Allowance or Charge Rate (G72-05), Allowance or Charge Total Amount (G72-08) or Percent (G72-09) may be present
If either Percent (G72-09) or Dollar Basis For Percent (G72-10) is present, then the other is required
At least one of Allowance or Charge Number (G72-03), Allowance or Charge Rate (G72-05), Allowance or Charge Total Amount (G72-08) or Percent (G72-09) is required
If Option Number (G72-11) is present, then Allowance or Charge Number (G72-03) is required
G72-01
340
Allowance or Charge Code
Required
Identifier (ID)
504
Freight
G72-02
331
Allowance or Charge Method of Handling Code
Required
Identifier (ID)
02
Off Invoice
06
Charge to be Paid by Customer
G72-03
341
Allowance or Charge Number
Optional
String (AN)
Min 1Max 16
G72-04
769
Exception Number
Optional
String (AN)
Min 1Max 16
G72-05
359
Allowance or Charge Rate
Optional
Decimal number (R)
Min 1Max 15
G72-06
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
G72-07
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CA
Case
DZ
Dozen
EA
Each
LB
Pound
UN
Unit
G72-08
360
Allowance or Charge Total Amount
Optional
Numeric (N2)
Min 1Max 15
G72-09
332
Percent
Optional
Decimal number (R)
Min 1Max 6
G72-10
828
Dollar Basis For Percent
Optional
Decimal number (R)
Min 1Max 9
G72-11
770
Option Number
Optional
String (AN)
Min 1Max 20
Heading end

Detail

0300 Loop
OptionalMax >1
LX
005
Detail > 0300 Loop > LX

Assigned Number

RequiredMax use 1
Example
LX-01
554
Assigned Number
Required
Numeric (N0)
Min 1Max 6
MAN
010
Detail > 0300 Loop > MAN

Marks and Numbers

OptionalMax use >1
Example
If either Marks and Numbers Qualifier (MAN-04) or Marks and Numbers (MAN-05) is present, then the other is required
If Marks and Numbers (MAN-06) is present, then Marks and Numbers (MAN-05) is required
MAN-01
88
Marks and Numbers Qualifier
Required
Identifier (ID)
CA
Shipper-Assigned Case Number
CP
Carrier-Assigned Package ID Number
GM
SSCC-18 and Application Identifier
SI
Self-Identifying Container via Radio Frequency ID Device
UC
U.P.C. Shipping Container Code
MAN-02
87
Marks and Numbers
Required
String (AN)
Min 1Max 48
MAN-04
88
Marks and Numbers Qualifier
Optional
Identifier (ID)
CA
Shipper-Assigned Case Number
CP
Carrier-Assigned Package ID Number
GM
SSCC-18 and Application Identifier
SI
Self-Identifying Container via Radio Frequency ID Device
UC
U.P.C. Shipping Container Code
MAN-05
87
Marks and Numbers
Optional
String (AN)
Min 1Max 48
MAN-06
87
Marks and Numbers
Optional
String (AN)
Min 1Max 48
PAL
015
Detail > 0300 Loop > PAL

Pallet Information

OptionalMax use 1
Example
If either Unit Weight (PAL-05) or Unit or Basis for Measurement Code (PAL-06) is present, then the other is required
If either Gross Weight per Pack (PAL-11) or Unit or Basis for Measurement Code (PAL-12) is present, then the other is required
If either Gross Volume per Pack (PAL-13) or Unit or Basis for Measurement Code (PAL-14) is present, then the other is required
If Unit or Basis for Measurement Code (PAL-10) is present, then at least one of Length (PAL-07), Width (PAL-08) or Height (PAL-09) is required
If Length (PAL-07) is present, then Unit or Basis for Measurement Code (PAL-10) is required
If Width (PAL-08) is present, then Unit or Basis for Measurement Code (PAL-10) is required
If Height (PAL-09) is present, then Unit or Basis for Measurement Code (PAL-10) is required
PAL-01
883
Pallet Type Code
Optional
Identifier (ID)
6
Wood
PAL-02
884
Pallet Tiers
Optional
Numeric (N0)
Min 1Max 3
PAL-03
885
Pallet Blocks
Optional
Numeric (N0)
Min 1Max 3
Optional
Numeric (N0)
Min 1Max 6
PAL-05
395
Unit Weight
Optional
Decimal number (R)
Min 1Max 8
PAL-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CA
Case
DZ
Dozen
EA
Each
LB
Pound
UN
Unit
PAL-07
82
Length
Optional
Decimal number (R)
Min 1Max 8
Optional
Decimal number (R)
Min 1Max 8
PAL-09
65
Height
Optional
Decimal number (R)
Min 1Max 8
PAL-10
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
PAL-11
384
Gross Weight per Pack
Optional
Decimal number (R)
Min 1Max 9
PAL-12
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
PAL-13
385
Gross Volume per Pack
Optional
Decimal number (R)
Min 1Max 9
PAL-14
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
N9
017
Detail > 0300 Loop > N9

Reference Identification

OptionalMax use 5
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
If Time Code (N9-06) is present, then Time (N9-05) is required
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
2I
Tracking Number
AO
Appointment Number
BM
Bill of Lading Number
CN
Carrier's Reference Number (PRO/Invoice)
GK
Third Party Reference Number
LT
Lot Number
SE
Serial Number
SL
Sales/Territory Code
YD
Buyer Identification
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30
N9-03
369
Free-form Description
Optional
String (AN)
Min 1Max 45
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
N9-06
623
Time Code
Optional
Identifier (ID)
Min 2Max 2
0310 Loop
OptionalMax >1
W12
020
Detail > 0300 Loop > 0310 Loop > W12

Warehouse Item Detail

RequiredMax use 1
Example
If either Product/Service ID Qualifier (W12-07) or Product/Service ID (W12-08) is present, then the other is required
At least one of U.P.C. Case Code (W12-06) or Product/Service ID Qualifier (W12-07) is required
If either Product/Service ID Qualifier (W12-17) or Product/Service ID (W12-18) is present, then the other is required
If either Product/Service ID Qualifier (W12-21) or Product/Service ID (W12-22) is present, then the other is required
If either Weight (W12-13), Weight Qualifier (W12-14) or Weight Unit Code (W12-15) are present, then the others are required
If either Weight (W12-10), Weight Qualifier (W12-11) or Weight Unit Code (W12-12) are present, then the others are required
W12-01
368
Shipment/Order Status Code
Required
Identifier (ID)
CL
Complete
PR
Partial Shipment
W12-02
330
Quantity Ordered
Optional
Decimal number (R)
Min 1Max 15
W12-03
382
Number of Units Shipped
Optional
Decimal number (R)
Min 1Max 10
W12-06
438
U.P.C. Case Code
Optional
String (AN)
Min 12Max 12
W12-07
235
Product/Service ID Qualifier
Optional
Identifier (ID)
BP
Buyer's Part Number
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
MG
Manufacturer's Part Number
SK
Stock Keeping Unit (SKU)
UK
U.P.C./EAN Shipping Container Code (1-2-5-5-1)
VN
Vendor's (Seller's) Item Number
W12-08
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
W12-10
81
Weight
Optional
Decimal number (R)
Min 1Max 10
W12-11
187
Weight Qualifier
Optional
Identifier (ID)
Min 1Max 2
W12-12
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1
W12-13
81
Weight
Optional
Decimal number (R)
Min 1Max 10
W12-14
187
Weight Qualifier
Optional
Identifier (ID)
Min 1Max 2
W12-15
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1
W12-17
235
Product/Service ID Qualifier
Optional
Identifier (ID)
BP
Buyer's Part Number
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
MG
Manufacturer's Part Number
SK
Stock Keeping Unit (SKU)
UK
U.P.C./EAN Shipping Container Code (1-2-5-5-1)
VN
Vendor's (Seller's) Item Number
W12-18
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
W12-21
235
Product/Service ID Qualifier
Optional
Identifier (ID)
BP
Buyer's Part Number
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
MG
Manufacturer's Part Number
SK
Stock Keeping Unit (SKU)
UK
U.P.C./EAN Shipping Container Code (1-2-5-5-1)
VN
Vendor's (Seller's) Item Number
W12-22
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
G69
030
Detail > 0300 Loop > 0310 Loop > G69

Line Item Detail - Description

OptionalMax use 5
Example
G69-01
369
Free-form Description
Required
String (AN)
Min 1Max 45
N9
040
Detail > 0300 Loop > 0310 Loop > N9

Reference Identification

OptionalMax use 200
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
If Time Code (N9-06) is present, then Time (N9-05) is required
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
19
Division Identifier
BT
Batch Number
DP
Department Number
LT
Lot Number
SE
Serial Number
YD
Buyer Identification
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30
N9-03
369
Free-form Description
Optional
String (AN)
Min 1Max 45
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
N9-06
623
Time Code
Optional
Identifier (ID)
Min 2Max 2
G62
050
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
If either Time Qualifier (G62-03) or Time (G62-04) is present, then the other is required
At least one of Date Qualifier (G62-01) or Time Qualifier (G62-03) is required
G62-01
432
Date Qualifier
Optional
Identifier (ID)
02
Delivery Requested on This Date
36
Expiration Date
BJ
Shelf-Life Expiration
Optional
Date (DT)
CCYYMMDD format
G62-03
176
Time Qualifier
Optional
Identifier (ID)
Min 1Max 2
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
MEA
057
Detail > 0300 Loop > 0310 Loop > MEA

Measurements

OptionalMax use 5
Example
If Range Minimum (MEA-05) is present, then Composite Unit of Measure (MEA-04) is required
If Range Maximum (MEA-06) is present, then Composite Unit of Measure (MEA-04) is required
If Measurement Significance Code (MEA-07) is present, then at least one of Measurement Value (MEA-03), Range Minimum (MEA-05) or Range Maximum (MEA-06) is required
Only one of Measurement Value (MEA-03) or Measurement Attribute Code (MEA-08) may be present
At least one of Measurement Value (MEA-03), Range Minimum (MEA-05), Range Maximum (MEA-06) or Measurement Attribute Code (MEA-08) is required
MEA-01
737
Measurement Reference ID Code
Optional
Identifier (ID)
Min 2Max 2
MEA-02
738
Measurement Qualifier
Optional
Identifier (ID)
DP
Depth
HT
Height
LN
Length
VOL
Volume
WT
Weight
MEA-03
739
Measurement Value
Optional
Decimal number (R)
Min 1Max 15
MEA-04
C001
Composite Unit of Measure
OptionalMax use 1
To identify a composite unit of measure (See Figures Appendix for examples of use)
C001-01
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Min 2Max 2
C001-02
1018
Exponent
Optional
Decimal number (R)
Min 1Max 15
C001-03
649
Multiplier
Optional
Decimal number (R)
Min 1Max 10
C001-04
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CA
Case
DZ
Dozen
EA
Each
LB
Pound
UN
Unit
C001-05
1018
Exponent
Optional
Decimal number (R)
Min 1Max 15
C001-06
649
Multiplier
Optional
Decimal number (R)
Min 1Max 10
C001-07
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
C001-08
1018
Exponent
Optional
Decimal number (R)
Min 1Max 15
C001-09
649
Multiplier
Optional
Decimal number (R)
Min 1Max 10
C001-10
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
C001-11
1018
Exponent
Optional
Decimal number (R)
Min 1Max 15
C001-12
649
Multiplier
Optional
Decimal number (R)
Min 1Max 10
C001-13
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
C001-14
1018
Exponent
Optional
Decimal number (R)
Min 1Max 15
C001-15
649
Multiplier
Optional
Decimal number (R)
Min 1Max 10
MEA-05
740
Range Minimum
Optional
Decimal number (R)
Min 1Max 15
MEA-06
741
Range Maximum
Optional
Decimal number (R)
Min 1Max 15
MEA-07
935
Measurement Significance Code
Optional
Identifier (ID)
Min 2Max 2
MEA-08
936
Measurement Attribute Code
Optional
Identifier (ID)
Min 2Max 2
MEA-09
752
Surface/Layer/Position Code
Optional
Identifier (ID)
Min 2Max 2
R4
070
Detail > 0300 Loop > 0310 Loop > R4

Port or Terminal

OptionalMax use 5
Example
If either Location Qualifier (R4-02) or Location Identifier (R4-03) is present, then the other is required
R4-01
115
Port or Terminal Function Code
Required
Identifier (ID)
Min 1Max 1
R4-02
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2
R4-03
310
Location Identifier
Optional
String (AN)
Min 1Max 30
R4-04
114
Port Name
Optional
String (AN)
Min 2Max 24
R4-05
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
R4-06
174
Terminal Name
Optional
String (AN)
Min 2Max 30
R4-07
113
Pier Number
Optional
String (AN)
Min 1Max 4
R4-08
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
W27
075
Detail > 0300 Loop > 0310 Loop > W27

Carrier Detail

OptionalMax use 1
Example
At least one of Standard Carrier Alpha Code (W27-02) or Routing (W27-03) is required
W27-01
91
Transportation Method/Type Code
Required
Identifier (ID)
C
Consolidation
H
Customer Pickup
M
Motor (Common Carrier)
P
Private Carrier
T
Best Way (Shippers Option)
W27-02
140
Standard Carrier Alpha Code
Optional
Identifier (ID)
Min 2Max 4
W27-03
387
Routing
Optional
String (AN)
Min 1Max 35
W27-04
146
Shipment Method of Payment
Optional
Identifier (ID)
CC
Collect
PP
Prepaid (by Seller)
TP
Third Party Pay
W27-05
40
Equipment Description Code
Optional
Identifier (ID)
TL
Trailer (not otherwise specified)
W27-06
206
Equipment Initial
Optional
String (AN)
Min 1Max 4
W27-07
207
Equipment Number
Optional
String (AN)
Min 1Max 10
W27-08
368
Shipment/Order Status Code
Optional
Identifier (ID)
CL
Complete
PR
Partial Shipment
W27-09
152
Special Handling Code
Optional
Identifier (ID)
Min 2Max 3
W27-10
890
Carrier/Route Change Reason Code
Optional
Identifier (ID)
Min 2Max 2
G72
085
Detail > 0300 Loop > 0310 Loop > G72

Allowance or Charge

OptionalMax use 5
Example
If either Allowance or Charge Quantity (G72-06) or Unit or Basis for Measurement Code (G72-07) is present, then the other is required
Only one of Allowance or Charge Rate (G72-05), Allowance or Charge Total Amount (G72-08) or Percent (G72-09) may be present
If either Percent (G72-09) or Dollar Basis For Percent (G72-10) is present, then the other is required
At least one of Allowance or Charge Number (G72-03), Allowance or Charge Rate (G72-05), Allowance or Charge Total Amount (G72-08) or Percent (G72-09) is required
If Option Number (G72-11) is present, then Allowance or Charge Number (G72-03) is required
G72-01
340
Allowance or Charge Code
Required
Identifier (ID)
503
Special Handling
504
Freight
G72-02
331
Allowance or Charge Method of Handling Code
Required
Identifier (ID)
02
Off Invoice
06
Charge to be Paid by Customer
G72-03
341
Allowance or Charge Number
Optional
String (AN)
Min 1Max 16
G72-04
769
Exception Number
Optional
String (AN)
Min 1Max 16
G72-05
359
Allowance or Charge Rate
Optional
Decimal number (R)
Min 1Max 15
G72-06
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
G72-07
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CA
Case
DZ
Dozen
EA
Each
LB
Pound
UN
Unit
G72-08
360
Allowance or Charge Total Amount
Optional
Numeric (N2)
Min 1Max 15
G72-09
332
Percent
Optional
Decimal number (R)
Min 1Max 6
G72-10
828
Dollar Basis For Percent
Optional
Decimal number (R)
Min 1Max 9
G72-11
770
Option Number
Optional
String (AN)
Min 1Max 20
LS
105
Detail > 0300 Loop > 0310 Loop > LS

Loop Header

RequiredMax use 1
Example
LS-01
447
Loop Identifier Code
Required
String (AN)
Min 1Max 6
0312 Loop
RequiredMax >1
LX
110
Detail > 0300 Loop > 0310 Loop > 0312 Loop > LX

Assigned Number

RequiredMax use 1
Example
LX-01
554
Assigned Number
Required
Numeric (N0)
Min 1Max 6
N9
120
Detail > 0300 Loop > 0310 Loop > 0312 Loop > N9

Reference Identification

OptionalMax use >1
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
If Time Code (N9-06) is present, then Time (N9-05) is required
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
Min 2Max 3
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30
N9-03
369
Free-form Description
Optional
String (AN)
Min 1Max 45
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
N9-06
623
Time Code
Optional
Identifier (ID)
Min 2Max 2
G62
130
Detail > 0300 Loop > 0310 Loop > 0312 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
If either Time Qualifier (G62-03) or Time (G62-04) is present, then the other is required
At least one of Date Qualifier (G62-01) or Time Qualifier (G62-03) is required
G62-01
432
Date Qualifier
Optional
Identifier (ID)
Min 2Max 2
Optional
Date (DT)
CCYYMMDD format
G62-03
176
Time Qualifier
Optional
Identifier (ID)
Min 1Max 2
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
G62-05
623
Time Code
Optional
Identifier (ID)
Min 2Max 2
N1
140
Detail > 0300 Loop > 0310 Loop > 0312 Loop > N1

Name

OptionalMax use 1
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
Min 2Max 3
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
0312 Loop end
LE
165
Detail > 0300 Loop > 0310 Loop > LE

Loop Trailer

RequiredMax use 1
Example
LE-01
447
Loop Identifier Code
Required
String (AN)
Min 1Max 6
0310 Loop end
0300 Loop end
Detail end

Summary

W03
010
Summary > W03

Total Shipment Information

OptionalMax use 1
Example
If Weight (W03-02) is present, then Unit or Basis for Measurement Code (W03-03) is required
If either Lading Quantity (W03-06) or Unit or Basis for Measurement Code (W03-07) is present, then the other is required
If either Volume (W03-04) or Unit or Basis for Measurement Code (W03-05) is present, then the other is required
W03-01
382
Number of Units Shipped
Required
Decimal number (R)
Min 1Max 10
W03-02
81
Weight
Optional
Decimal number (R)
Min 1Max 10
W03-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
W03-04
183
Volume
Optional
Decimal number (R)
Min 1Max 8
W03-05
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
W03-06
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7
W03-07
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
SE
020
Summary > SE

Transaction Set Trailer

RequiredMax use 1
Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10
SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
Summary end

Functional Group Trailer

RequiredMax use 1
Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6
GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Interchange Control Trailer

RequiredMax use 1
Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5
IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

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.