Stedi maintains this guide based on public documentation from Cargo Smart. Contact Cargo Smart for official EDI specifications. To report any errors in this guide, please contact us.
X12 304 Shipping Instructions
—
Delimiters
- ~ Segment
- * Element
- > Component
EDI samples
- None included
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
LX Loop
LX
010
Assigned Number
Max use 1
Required
N7 Loop
N7
030
Equipment Details
Max use 1
Required
QTY
035
Quantity
Max use 1
Optional
M7
050
Seal Numbers
Max use 5
Optional
W09
060
Equipment and Temperature
Max use 1
Optional
N9
130
Verified Gross Mass Measurement Method
Max use 100
Optional
N9
130
Verified Gross Mass Unit
Max use 100
Optional
N9
130
Verified Gross Mass Value
Max use 100
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
—
- SO
- Ocean Shipment Information (304, 306, 309, 311, 317, 319, 321, 322, 323, 324, 325, 350, 352, 353, 354, 355, 356, 357, 358, 361)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
B2
020
Heading > B2
Beginning Segment for Shipment Information Transaction
RequiredMax use 1
—
Usage notes
—
Example
—
- DD
- Door-to-Door
- DP
- Door-to-Pier
- PD
- Pier-to-Door
- PP
- Pier-to-Pier
—
- BM
- Bill of Lading Number
- BN
- Booking Number—
- CEC
- Enterprise Code for Consignee—
- CG
- Consignee's Order Number
- CR
- Customer Reference Number
- CS
- Condition of Sale Document Number
- CT
- Contract Number
- EP
- Export Permit Number
- FI
- File Identifier
- FN
- Forwarder's/Agent's Reference Number
- HB
- Bill & Hold Invoice Number—
- IK
- Invoice Number
- NEC
- Enterprise Code for Notify Party—
- PO
- Purchase Order Number
- Q1
- Quote Number
- RF
- Export Reference Number
- SEC
- Enterprise Code for Shipper—
- SI
- Shipper's Identifying Number for Shipment (SID)—
- SO
- Shipper's Order (Invoice Number)
- TN
- Transaction Reference Number—
V1
090
Heading > V1
Vessel Identification
RequiredMax use 2
—
Usage notes
—
Example
At least one of Vessel Code (V1-01) or Vessel Name (V1-02) is required
If Vessel Code Qualifier (V1-08) is present, then Vessel Code (V1-01) is required
N1 Loop
RequiredMax >1
N1
160
Heading > N1 Loop > 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
—
- CA
- Carrier—
- CN
- Consignee—
- FW
- Forwarder
- N1
- Notify Party no. 1—
- N2
- Notify Party no. 2—
- R1
- Party to Receive Scale Ticket—
- SH
- Shipper—
- SI
- Shipping Schedule Issuer—
—
- 25
- Carrier's Customer Code
- ZZ
- Mutually Defined—
N4
190
Heading > N1 Loop > N4
Geographic Location
OptionalMax use 1
—
Usage notes
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
—
- D
- Census Schedule D
- K
- Census Schedule K
- UN
- United Nations Location Code (UNLOCODE)
G61
195
Heading > N1 Loop > G61
Contact
OptionalMax use 3
—
Usage notes
—
Example
If either Communication Number Qualifier (G61-03) or Communication Number (G61-04) is present, then the other is required
N1 Loop end
R4 Loop
OptionalMax >1
R4
200
Heading > R4 Loop > R4
Port or Terminal
RequiredMax use 1
—
Usage notes
—
Example
If either Location Qualifier (R4-02) or Location Identifier (R4-03) is present, then the other is required
—
- D
- Port of Discharge (Operational)—
- E
- Place of Delivery (Contractual)—
- F
- Freight Payable At (Contractual)
- L
- Port of Loading (Operational)—
- Q
- Bill of Lading Origin of Goods (Contractual)
- R
- Place of Receipt (Contractual)—
- W
- Bill of Lading Release Office (Operational)
—
- D
- Census Schedule D
- K
- Census Schedule K
- UN
- United Nations Location Code (UNLOCODE)—
R4 Loop end
C8 Loop
OptionalMax >1
C8
290
Heading > C8 Loop > C8
Certifications and Clauses
RequiredMax use 1
—
Usage notes
—
Example
At least one of Certification/Clause Code (C8-02) or Certification/Clause Text (C8-03) is required
—
- 01
- Shipper's Load and Count
- 02
- Shipper's Load, Stowage and Count
- 03
- Laden on Board
- 04
- Laden on Board Vessel
- 11
- Memo Bill of Lading Only
- 20
- No Shipper's Export Declaration Required (Section 30.39)
- 22
- On Board Rail
- 24
- On Board Vessel
- 25
- Received For Shipment
- 34
- Laden on Board Named Vessel
- CC
- Custom
C8C
295
Heading > C8 Loop > C8C
Certifications Clauses Continuation
OptionalMax use 5
—
Usage notes
—
Example
C8 Loop end
Heading end
Detail
LX Loop
OptionalMax >1
N7 Loop
OptionalMax >1
N7
030
Detail > LX Loop > N7 Loop > N7
Equipment Details
RequiredMax use 1
—
Usage notes
—
Example
If either Weight (N7-03) or Weight Qualifier (N7-04) is present, then the other is required
If either Volume (N7-08) or Volume Unit Qualifier (N7-09) is present, then the other is required
—
- N
- Not Customer Owned or Leased—
- S
- Customer Owned or Leased—
W09
060
Detail > LX Loop > N7 Loop > W09
Equipment and Temperature
OptionalMax use 1
—
Usage notes
—
Example
If either Temperature (W09-02) or Unit or Basis for Measurement Code (W09-03) is present, then the other is required
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
—
Usage notes
—
- 2L
- Cubic Feet Per Minute
- 4V
- Cubic Meter Per Hour
N9
130
Detail > LX Loop > N7 Loop > N9
Verified Gross Mass Measurement Method
OptionalMax use 100
—
Usage notes
—
Example
N9
130
Detail > LX Loop > N7 Loop > N9
Verified Gross Mass Value
OptionalMax use 100
—
Usage notes
—
Example
N7 Loop end
L0 Loop
OptionalMax >1
L0
170
Detail > LX Loop > L0 Loop > L0
Line Item - Quantity and Weight
RequiredMax use 1
—
Usage notes
—
Example
If either Weight (L0-04) or Weight Qualifier (L0-05) is present, then the other is required
If either Volume (L0-06) or Volume Unit Qualifier (L0-07) is present, then the other is required
If Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
L5
185
Detail > LX Loop > L0 Loop > L5
Description, Marks and Numbers
RequiredMax use 999
—
Usage notes
—
Example
If either Commodity Code (L5-03) or Commodity Code Qualifier (L5-04) is present, then the other is required
H1 Loop
OptionalMax >1
H1
270
Detail > LX Loop > L0 Loop > H1 Loop > H1
Hazardous Material
RequiredMax use 1
—
Usage notes
—
Example
If either Flashpoint Temperature (H1-07) or Unit or Basis for Measurement Code (H1-08) is present, then the other is required
—
- I
- Intergovernmental Maritime Organization (IMO) Code
H2
280
Detail > LX Loop > L0 Loop > H1 Loop > H2
Additional Hazardous Material Description
OptionalMax use 10
—
Usage notes
—
Example
H1 Loop end
L0 Loop end
LX Loop end
Detail end
Summary
L3 Loop
OptionalMax >1
L3
010
Summary > L3 Loop > L3
Total Weight and Charges
RequiredMax use 1
—
Usage notes
—
Example
If either Volume (L3-09) or Volume Unit Qualifier (L3-10) is present, then the other is required
If Weight Unit Code (L3-12) is present, then Weight (L3-01) is required
—
Usage notes
—
- BC
- Bill of Lading Copy
- BL
- Bill of Lading—
- SW
- Sea Waybill
- ZZ
- Mutually Defined—
—
- CS
- CargoSmart Online BL
- EI
- EDI Transmission
- EL
- Electronically Only
- FX
- By Fax
- OT
- Others
- PO
- Printed Original Required
L3 Loop end
Summary end
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.