
X12 310 Baseline EDI 310 Ocean Freight Invoice
—
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
B3
020
Beginning Segment for Carrier's Invoice
Max use 1
Required
N9
060
Reference Identification Bill of Lading Number
Max use 1
Optional
N9
060
Reference Identification Federal Taxpayer's Identification Number
Max use 1
Optional
N9
060
Reference Identification Freight Bill Number
Max use 1
Optional
N9
060
Reference Identification Master Bill of Lading
Max use 1
Optional
N9
060
Reference Identification Purchase Order Number
Max use 1
Optional
V1
070
Vessel Identification
Max use 2
Required
C3
110
Currency
Max use 1
Optional
H3
220
Special Handling Instructions
Max use 6
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)
—
- 01
- Duns (Dun & Bradstreet)
- 02
- SCAC (Standard Carrier Alpha Code)
- 04
- IATA (International Air Transport Association)
- ZZ
- Mutually Defined
—
- 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
—
- IO
- Ocean Shipment Billing Details (310, 312, 980)
Heading
—
- CC
- Collect
- PP
- Prepaid (by Seller)
- TP
- Third Party Pay
N9
060
Heading > N9
Reference Identification Federal Taxpayer's Identification Number
OptionalMax use 1
—
Example
N1 Loop Bill-to-Party
RequiredMax 1
N1 Loop Bill-to-Party end
N1 Loop Consignee
RequiredMax 1
N1 Loop Consignee end
N1 Loop Shipper
OptionalMax 1
N1 Loop Shipper end
R4 Loop Place of Delivery (Contractual)
RequiredMax 1
R4
180
Heading > R4 Loop Place of Delivery (Contractual) > R4
Port or Terminal
RequiredMax use 1
—
Example
DTM
190
Heading > R4 Loop Place of Delivery (Contractual) > DTM
Date/Time Reference
OptionalMax use 15
—
Example
R4 Loop Place of Delivery (Contractual) end
R4 Loop Place of Receipt (Contractual)
RequiredMax 1
DTM
190
Heading > R4 Loop Place of Receipt (Contractual) > DTM
Date/Time Reference
OptionalMax use 15
—
Example
R4 Loop Place of Receipt (Contractual) end
R4 Loop Port of Discharge (Operational)
RequiredMax 1
R4
180
Heading > R4 Loop Port of Discharge (Operational) > R4
Port or Terminal
RequiredMax use 1
—
Example
DTM
190
Heading > R4 Loop Port of Discharge (Operational) > DTM
Date/Time Reference
OptionalMax use 15
—
Example
R4 Loop Port of Discharge (Operational) end
R4 Loop Port of Loading (Operational)
RequiredMax 1
DTM
190
Heading > R4 Loop Port of Loading (Operational) > DTM
Date/Time Reference
OptionalMax use 15
—
Example
R4 Loop Port of Loading (Operational) end
Heading end
Detail
LX Loop
RequiredMax 999
N7 Loop
OptionalMax 999
N7
020
Detail > LX Loop > N7 Loop > N7
Equipment Details
RequiredMax use 1
—
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
N7 Loop end
L0 Loop
OptionalMax 120
L0
150
Detail > LX Loop > L0 Loop > L0
Line Item - Quantity and Weight
RequiredMax use 1
—
Example
If either Weight (L0-04) or Weight Qualifier (L0-05) is present, then the other is required
If Weight Unit Code (L0-11) is present, then Weight (L0-04) 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
—
- BAG
- Bag
- BOX
- Box
- CAS
- Case
- CNT
- Container
- COL
- Coil
- CRT
- Crate
- CTN
- Carton
- CYL
- Cylinder
- DRM
- Drum
- KEG
- Keg
- LSE
- Loose
- MXD
- Mixed Type Pack
- PCS
- Pieces
- PKG
- Package
- PLT
- Pallet
- REL
- Reel
- ROL
- Roll
- SHT
- Sheet
- SKD
- Skid
- TBE
- Tube
- UNT
- Unit
L1 Loop
OptionalMax 20
L1 Loop end
L0 Loop end
LX Loop end
Detail end
Summary
L3
010
Summary > L3
Total Weight and Charges
RequiredMax use 1
—
Example
If either Weight (L3-01) or Weight Qualifier (L3-02) is present, then the other is required
If Weight Unit Code (L3-12) is present, then Weight (L3-01) is required
If either Volume (L3-09) or Volume Unit Qualifier (L3-10) is present, then the other is required
Summary end
EDI Samples
Sample1 EDI 310
ISA*00* *00* *ZZ*IMQD *ZZ*TRADINGPARTNER *240722*1935*U*00401*000024969*0*P*~
GS*IO*IMQD*TRADINGPARTNER*20240722*193514*000024968*X*004010
ST*310*0001
B3**S00252618*EXP029323001*PP**20240722*138937**20240531*017*IMQD*20240505*DP
N9*BM*EXP029323001
N9*TJ*36259661200
N9*FR*S00252618
N9*MB*HLCULIV240446241
N9*PO*110384862
V1*9403619*MOL PROFICIENCY**238W*****VE
C3*USD
N1*BT*BILL TO NAME*25*BT-CODE
N3*3 LAKES DR
N4*NORTHFIELD*IL*60093*US
N1*CN*CONSIGNEE NAME*25*CN-CODE
N3*12002 GENERAL MILTON DRIVE
N4*LAREDO*TX*78041*US
N1*SH*SHIPPER NAME*25*SH-CODE
N3*BOWDEN HOUSE*LUCKYN LANE
N4*BASILDON***GB
R4*E*UN*USLRD*Laredo*US
DTM*140*20240601
R4*R*UN*GBMAN*Manchester Container Ter*GB
DTM*140*20240505
R4*D*UN*USLRD*Laredo*US
DTM*140*20240601
R4*L*UN*GBMAN*Manchester Container Ter*GB
DTM*140*20240505
H3*LCL
LX*1
N7*HLBU*1903253*160*B*******CN****4000*******40HC
L0*1***160*N*2.256*X*77*CTN**K
L5*1*ON 1 PALLET- MEDICAL SUPPLIES
L1*1***57528****400***P*International Freight
C3*USD
L1*2***40409****500***P*Origin Charges
C3*USD
L1*3***3000****MFC***P*AMS Fees
C3*USD
L1*4***38000****DTC***P*Destination Terminal Hand
C3*USD
L3*160*B***138937****2.256*X*77*K
SE*41*0001
GE*1*000024968
IEA*1*000024969
GS*IO*IMQD*TRADINGPARTNER*20240722*193514*000024968*X*004010
ST*310*0001
B3**S00252618*EXP029323001*PP**20240722*138937**20240531*017*IMQD*20240505*DP
N9*BM*EXP029323001
N9*TJ*36259661200
N9*FR*S00252618
N9*MB*HLCULIV240446241
N9*PO*110384862
V1*9403619*MOL PROFICIENCY**238W*****VE
C3*USD
N1*BT*BILL TO NAME*25*BT-CODE
N3*3 LAKES DR
N4*NORTHFIELD*IL*60093*US
N1*CN*CONSIGNEE NAME*25*CN-CODE
N3*12002 GENERAL MILTON DRIVE
N4*LAREDO*TX*78041*US
N1*SH*SHIPPER NAME*25*SH-CODE
N3*BOWDEN HOUSE*LUCKYN LANE
N4*BASILDON***GB
R4*E*UN*USLRD*Laredo*US
DTM*140*20240601
R4*R*UN*GBMAN*Manchester Container Ter*GB
DTM*140*20240505
R4*D*UN*USLRD*Laredo*US
DTM*140*20240601
R4*L*UN*GBMAN*Manchester Container Ter*GB
DTM*140*20240505
H3*LCL
LX*1
N7*HLBU*1903253*160*B*******CN****4000*******40HC
L0*1***160*N*2.256*X*77*CTN**K
L5*1*ON 1 PALLET- MEDICAL SUPPLIES
L1*1***57528****400***P*International Freight
C3*USD
L1*2***40409****500***P*Origin Charges
C3*USD
L1*3***3000****MFC***P*AMS Fees
C3*USD
L1*4***38000****DTC***P*Destination Terminal Hand
C3*USD
L3*160*B***138937****2.256*X*77*K
SE*41*0001
GE*1*000024968
IEA*1*000024969
Sample2 EDI 310
ISA*00* *00* *ZZ*IMQD *ZZ*TRADINGPARTNER *240924*1801*U*00401*000027014*0*P*~
GS*IO*IMQD*TRADINGPARTNER*20240924*180129*000027013*X*004010
ST*310*0001
B3**B00255718**PP**20240924*7000**20240927*017*IMQD*20240812*DP
N9*TJ*36259661200
N9*FR*B00255718
N9*MB*2743514031
N9*PO*4517353050
V1*9472189*COSCO EXCELLENCE**069W*****VE
C3*USD
N1*BT*BILL TO NAME*25*BT-CODE
N3*3 LAKES DR
N4*NORTHFIELD*IL*60093*US
N1*CN*CONSIGNEE NAME*25*CN-CODE
N3*190 MEDLINE DR STE 200
N4*RICHMOND HILL*GA*31324-6783*US
N1*SH*SHIPPER NAME*25*SH-CODE
N3*LOT M, LOC AN-BINH SON INDUSTRIAL PARK*LONG AN COMMUNE
N4*HO CHI MINH*SG**VN
R4*E*UN*USSAV*Savannah*US
DTM*139*20240927
R4*R*UN*VNSGN*Ho Chi Minh City*VN
DTM*140*20240812
R4*D*UN*USSAV*Savannah*US
DTM*139*20240812
R4*L*UN*VNSGN*Ho Chi Minh City*VN
DTM*140*20240812
H3*LCL
LX*1
N7*OOLU*6975536*12151*B*******CN****0040*******40HC
L0*1***12151*N*68.32*X*1430*CTN**K
L5*1*UNDERPADS
L1*0***7000****CUS***P*Customs Clearance
C3*USD
L3*12151*B***7000****68.32*X*1430*K
SE*34*0001
GE*1*000027013
IEA*1*000027014
GS*IO*IMQD*TRADINGPARTNER*20240924*180129*000027013*X*004010
ST*310*0001
B3**B00255718**PP**20240924*7000**20240927*017*IMQD*20240812*DP
N9*TJ*36259661200
N9*FR*B00255718
N9*MB*2743514031
N9*PO*4517353050
V1*9472189*COSCO EXCELLENCE**069W*****VE
C3*USD
N1*BT*BILL TO NAME*25*BT-CODE
N3*3 LAKES DR
N4*NORTHFIELD*IL*60093*US
N1*CN*CONSIGNEE NAME*25*CN-CODE
N3*190 MEDLINE DR STE 200
N4*RICHMOND HILL*GA*31324-6783*US
N1*SH*SHIPPER NAME*25*SH-CODE
N3*LOT M, LOC AN-BINH SON INDUSTRIAL PARK*LONG AN COMMUNE
N4*HO CHI MINH*SG**VN
R4*E*UN*USSAV*Savannah*US
DTM*139*20240927
R4*R*UN*VNSGN*Ho Chi Minh City*VN
DTM*140*20240812
R4*D*UN*USSAV*Savannah*US
DTM*139*20240812
R4*L*UN*VNSGN*Ho Chi Minh City*VN
DTM*140*20240812
H3*LCL
LX*1
N7*OOLU*6975536*12151*B*******CN****0040*******40HC
L0*1***12151*N*68.32*X*1430*CTN**K
L5*1*UNDERPADS
L1*0***7000****CUS***P*Customs Clearance
C3*USD
L3*12151*B***7000****68.32*X*1430*K
SE*34*0001
GE*1*000027013
IEA*1*000027014
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.