Stedi maintains this guide based on public documentation from Maersk. Contact Maersk for official EDI specifications. To report any errors in this guide, please contact us.
X12 304 Shipping Instructions
—
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
B2
020
Beginning Segment for Shipment Information Transaction
Max use 1
Required
B2A
030
Set Purpose
Max use 1
Optional
N9
080
Reference Identification
Max use 100
Optional
V1
090
Vessel Identification
Max use 2
Optional
M0
110
Letter of Credit Reference
Max use 1
Optional
CUR
115
Currency
Max use 1
Optional
R2
220
Route Information
Max use 13
Optional
K1
230
Remarks
Max use 12
Optional
L11
240
Business Instructions and Reference Number
Max use 99
Optional
H3
250
Special Handling Instructions
Max use 6
Optional
X1
270
Export License
Max use 25
Optional
X2
280
Import License
Max use 5
Optional
detail
LX Loop
LX
010
Assigned Number
Max use 1
Required
Y2
020
Container Details
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)
—
- 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
—
- CP
- CFS-to-Pier—
- DD
- Door-to-Door—
- DP
- Door-to-Pier—
- PC
- Pier-to-CFS—
- PD
- Pier-to-Door—
- PP
- Pier-to-Pier—
—
- 2
- Sea Waybill
- B
- Bill of Lading for Individual Shipment
—
Usage notes
—
- BM
- Bill of Lading Number
- BN
- Booking Number
- CG
- Consignee's Order Number
- CT
- Contract Number
- FN
- Forwarder's/Agent's Reference Number
- IV
- Seller's Invoice Number
- PO
- Purchase Order Number
- PR
- Price Quote Number
- SI
- Shipper's Identifying Number for Shipment (SID)
V1
090
Heading > V1
Vessel Identification
OptionalMax 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
OptionalMax >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
—
Usage notes
—
- AO
- Account Of—
- C9
- Contract Holder
- CN
- Consignee
- FW
- Forwarder
- N1
- Notify Party no. 1
- N2
- Notify Party no. 2
- SF
- Ship From
- SH
- Shipper
- ST
- Ship To
—
- 25
- Carrier's Customer Code
- 94
- Code assigned by the organization that is the ultimate destination of the transaction set
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
—
Usage notes
—
- D
- Port of Discharge (Operational)
- E
- Place of Delivery (Contractual)
- L
- Port of Loading (Operational)
- R
- Place of Receipt (Contractual)
R4 Loop end
—
- MAEU
- Maersk Line
- MCPU
- Sealand Maersk Asia Pte. Ltd.
- SEAU
- Sealand Americas
- SEJJ
- Sealand Europe
L11
240
Heading > L11
Business Instructions and Reference Number
OptionalMax use 99
—
Usage notes
—
Example
If either Reference Identification (L11-01) or Reference Identification Qualifier (L11-02) is present, then the other is required
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
C8C
295
Heading > C8 Loop > C8C
Certifications Clauses Continuation
OptionalMax use 5
—
Usage notes
—
Example
—
- BLC
- Bill of Lading Body Clause
- DOM
- Domestic Routing Instructions
- EXP
- Export Instructions
- IPI
- Include Printing Instructions
- OBV
- Onboard Validation—
- ONR
- Onward Routing Instructions
- SPI
- Suppress Printing Instructions
C8 Loop end
Heading end
Detail
LX Loop
RequiredMax >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
—
- CP
- CFS-to-Pier—
- HH
- House-to-house
- HP
- House-to-pier
- PC
- Pier-to-CFS—
- PH
- Pier-to-house
- PP
- Pier-to-pier
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
—
- A
- Vent 25% Open
- B
- Vent 50% Open
- C
- Vent 75% Open
- D
- Vent 100% Open
- E
- Closed
- Z
- Carrier to Set Based on Commodity Type
N9
130
Detail > LX Loop > N7 Loop > N9
Reference Identification
OptionalMax use 100
—
Usage notes
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
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 either Lading Quantity (L0-08) or Packaging Form Code (L0-09) is present, then the other is required
L5
185
Detail > LX Loop > L0 Loop > L5
Description, Marks and Numbers
OptionalMax use 999
—
Usage notes
—
Example
If either Commodity Code (L5-03) or Commodity Code Qualifier (L5-04) is present, then the other is required
—
- J
- Harmonized System-Based Schedule B
- Z
- Mutually defined
L12
190
Detail > LX Loop > L0 Loop > L12
Alternate Lading Description
OptionalMax use 20
—
Usage notes
—
Example
C8 Loop
OptionalMax >1
C8
260
Detail > LX Loop > L0 Loop > 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
C8 Loop end
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
H1 Loop end
N1 Loop
OptionalMax >1
G61
420
Detail > LX Loop > L0 Loop > 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
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
L3 Loop end
Summary end
EDI Samples
sample
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231120*0421*U*00401*000000001*0*T*>~
GS*SO*SENDERGS*RECEIVERGS*20231120*042108*000000001*X*004010~
ST*304*980192543~
B2*PP*MAEU*US *512605107*K*CC*2*1****CHK~
N9*BM*MAEU601425395~
N9*BN*601425395~
N9*FN*512605107~
N9*SI*11201638~
N9*CG*0902596389~
V1*9342516*MAERSK ALFIRK*LR*01103*MAEU***L~
M0*LC*20150101*20150201*20150301~
CUR*CY*USD~
N1*SH*FOURSTAR GROUP INC*25*123456789~
N1*CN*WAL-MART STORES, INC.,*25*345287597~
N1*FW*EXPEDITORS (MALAYSIA) SDN. BHD.*25*137584937~
N1*N1*FEDEX TRADE NETWORKS*25*785946385~
N2*SHN201*SHN202~
N3*12FLOOR, NO 54, SEC 4*MIN SHENG EAST ROAD~
N4*CHARLOTTE*NC*28217*US~
G61*IC*Hysmith, Bonnie*EM*bonnie.hysmith@maersk.com~
R4*R*UN*USLGB*LONG BEACH*US***CA~
R4*D*UN*NLRTM*ROTTERDAM*NL~
R2*MAEU*O**********PP~
K1*FREE-FORM MESSAGE*FREE-FORM MESSAGE~
H3**SPECIAL INSTRUCTIONS~
X1**EXPORT LICE**20150827**2*US*********IDENTIFICATION CODE~
X2*IMPORT LICENSE NUMBER*20150427*20160428~
C8**01*CLAUSE TEXT~
C8C*CLAUSE TEXT*CERTIFICATION TEXT*CERTIFICATION CLAUSE TEXT~
SUP*BLC**SAMPLE MESSAGE~
LX*1~
Y2*1**PP*42G1~
N7*PONU*038254*1705.990*G****25668*X********K*1*HH***42G1~
QTY*39*2*CT~
L4*300*110*122*C~
M7*MLMY1056165****SH~
W09*CZ*21*FA****Z*33~
N9*ZZ*METHOD*1~
N9*ZZ*VGM-KGS*1000.00~
L0*1***1705.990*G*1243.76*X*31*PCS**K*PP~
L4*300*110*122*C~
L5*001*COTTON*5201*J**MARKS AND NUMBERS~
L12*P*TEST DESCRIPTION~
X1**EXPORT LICE**20150827**2**********IDENTIFICATION CODE~
X2*IMPORT LICENSE NUMBER*20150227*20150828~
C8*001*01*CERTIFICATION CLAUSE TEXT~
H1*3166*9*I*ENGINES, INTERNAL COMBUSTION*JOHN SMITH 8008518061*65*70*CE*III~
N1*R1*COMPANY NAME~
G61*RP*VGM RESPONSIBLE PERSON NAME*EM*test@maersk.com~
L3*1705.990*G*******3.000*X*31*K~
PWK*SW*PO*1~
K1*FREE-FORM MESSAGE*FREE-FORM MESSAGE~
SE*51*980192543~
GE*1*000000001~
IEA*1*000000001~
GS*SO*SENDERGS*RECEIVERGS*20231120*042108*000000001*X*004010~
ST*304*980192543~
B2*PP*MAEU*US *512605107*K*CC*2*1****CHK~
N9*BM*MAEU601425395~
N9*BN*601425395~
N9*FN*512605107~
N9*SI*11201638~
N9*CG*0902596389~
V1*9342516*MAERSK ALFIRK*LR*01103*MAEU***L~
M0*LC*20150101*20150201*20150301~
CUR*CY*USD~
N1*SH*FOURSTAR GROUP INC*25*123456789~
N1*CN*WAL-MART STORES, INC.,*25*345287597~
N1*FW*EXPEDITORS (MALAYSIA) SDN. BHD.*25*137584937~
N1*N1*FEDEX TRADE NETWORKS*25*785946385~
N2*SHN201*SHN202~
N3*12FLOOR, NO 54, SEC 4*MIN SHENG EAST ROAD~
N4*CHARLOTTE*NC*28217*US~
G61*IC*Hysmith, Bonnie*EM*bonnie.hysmith@maersk.com~
R4*R*UN*USLGB*LONG BEACH*US***CA~
R4*D*UN*NLRTM*ROTTERDAM*NL~
R2*MAEU*O**********PP~
K1*FREE-FORM MESSAGE*FREE-FORM MESSAGE~
H3**SPECIAL INSTRUCTIONS~
X1**EXPORT LICE**20150827**2*US*********IDENTIFICATION CODE~
X2*IMPORT LICENSE NUMBER*20150427*20160428~
C8**01*CLAUSE TEXT~
C8C*CLAUSE TEXT*CERTIFICATION TEXT*CERTIFICATION CLAUSE TEXT~
SUP*BLC**SAMPLE MESSAGE~
LX*1~
Y2*1**PP*42G1~
N7*PONU*038254*1705.990*G****25668*X********K*1*HH***42G1~
QTY*39*2*CT~
L4*300*110*122*C~
M7*MLMY1056165****SH~
W09*CZ*21*FA****Z*33~
N9*ZZ*METHOD*1~
N9*ZZ*VGM-KGS*1000.00~
L0*1***1705.990*G*1243.76*X*31*PCS**K*PP~
L4*300*110*122*C~
L5*001*COTTON*5201*J**MARKS AND NUMBERS~
L12*P*TEST DESCRIPTION~
X1**EXPORT LICE**20150827**2**********IDENTIFICATION CODE~
X2*IMPORT LICENSE NUMBER*20150227*20150828~
C8*001*01*CERTIFICATION CLAUSE TEXT~
H1*3166*9*I*ENGINES, INTERNAL COMBUSTION*JOHN SMITH 8008518061*65*70*CE*III~
N1*R1*COMPANY NAME~
G61*RP*VGM RESPONSIBLE PERSON NAME*EM*test@maersk.com~
L3*1705.990*G*******3.000*X*31*K~
PWK*SW*PO*1~
K1*FREE-FORM MESSAGE*FREE-FORM MESSAGE~
SE*51*980192543~
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.