Stedi maintains this guide based on public documentation from Flexport. Contact Flexport for official EDI specifications. To report any errors in this guide, please contact us.
X12 310 Freight Receipt and Invoice (Ocean) (Consignee/Shipper)
—
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
B2A
030
Set Purpose
Max use 1
Optional
N9
060
Reference Identification
Max use 15
Optional
V1
070
Vessel Identification
Max use 2
Required
C3
110
Currency
Max use 1
Optional
Y2
120
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
—
- IO
- Ocean Shipment Billing Details (310, 312, 980)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
B3
020
Heading > B3
Beginning Segment for Carrier's Invoice
RequiredMax use 1
—
Example
If either Delivery Date (B3-09) or Date/Time Qualifier (B3-10) is present, then the other is required
—
- DD
- Door-to-Door
- DO
- Door-to-Terminal
- OD
- Terminal-to-Door
- OT
- Terminal-to-Inland
V1
070
Heading > V1
Vessel Identification
RequiredMax use 2
—
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 Loop end
R4 Loop
RequiredMax >1
R4
180
Heading > R4 Loop > R4
Port or Terminal
RequiredMax use 1
—
Example
If either Location Qualifier (R4-02) or Location Identifier (R4-03) is present, then the other is required
—
- D
- Port of Discharge (Operational)
- L
- Port of Loading (Operational)
R4 Loop end
Heading end
Detail
LX Loop
RequiredMax >1
N7 Loop
OptionalMax >1
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
OptionalMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
N7 Loop end
L0 Loop
OptionalMax >1
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 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
If Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
—
- BAG
- Bag
- BAL
- Bale
- BBL
- Barrel
- BDL
- Bundle
- BLK
- Bulk
- BOX
- Box
- CRT
- Crate
- CTN
- Carton
- DRM
- Drum
- PKG
- Package
- PLT
- Pallet
- ROL
- Roll
- SKD
- Skid
L1 Loop
OptionalMax >1
L1
170
Detail > LX Loop > L0 Loop > L1 Loop > L1
Rate and Charges
RequiredMax use 1
—
Example
If either Billed/Rated-as Quantity (L1-17) or Billed/Rated-as Qualifier (L1-18) is present, then the other is required
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 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
Summary end
EDI Samples
Amendment
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231101*0101*U*00401*000000001*0*T*>
GS*IO*SENDERGS*RECEIVERGS*20231101*010149*000000001*X*004010
ST*310*0001
B3**FLEX-564601-1*FLEX-564601*CC**20190912*108500**20190809*035*FLXT**DD*EXW
B2A*04
N9*CR*56465
N9*BM*FLXTFUSCG564601A
N9*MB*ONEYRIVV9039600
N9*PO*456DB45
V1*9302621*YM UTMOST**081W*ONEY***L*S
C3*USD
Y2*1*R**22G0
N1*BT*ABC Corporation
N3*6377 SAN IGNACIO AVE
N4*SAN JOSE*CA*95119-1200*US
N1*IU*Flexport LLC
N3*760 MARKET ST FL 8
N4*SAN FRANCISCO*CA*94102-2300*US
N1*SF*Beta Networks LTD.
N3*No.226, Yintong Road, High-Tech Industrial Zone
N4*Suzhou*32**CN
N1*ST*ABC Corporation
N3*1240 Don Haskins Drive
N4*Ronkonkoma*NY*11779*US
N1*SU*Beta Networks LTD.
N3*No.6, Main Road, Hi-Tech Development
N4*Changshu*32**CN
N1*CN*ABC Corporation
N3*1240 Haskins Dr
N4*El Paso*TX*79936*US
R4*D*UN*USLAX*Los Angeles
DTM*370*20190716
R4*L*UN*CNSHA*Shanghai
DTM*372*20190803
LX*1
N7*KKTU*7759326*1200*G****15*X**CN******K*****22G0**FCL
QTY*39*110*CT
M7*9581846
L0*1***1200*G*15*X*110*CTN**K
L5*1*LAPTOP ACCESSORIES
L5*2*LAPTOP MONITOR
L5*3*ROUTERS
L5*4*SWITCH CASES
L5*5*CABLES
L1*1*30*FR*3000****360****Export Customs Clearance-*****1*FR
C3*USD
L1*2*465*FR*46500****DRC****Drayage Base-origin*****1*PA
C3*USD
L1*3*475*FR*47500****COF****FCL - 20' Container-freig*****1*PA
C3*USD
L1*4*181.5*FR*18150****DDF****Destination Document-dest*****1*BL
C3*USD
L3*1200*G***108500****15*X*110*K
K1*Containers KKTU7759326 (Dry,
K1*Notes
SE*54*0001
GE*1*000000001
IEA*1*000000001
GS*IO*SENDERGS*RECEIVERGS*20231101*010149*000000001*X*004010
ST*310*0001
B3**FLEX-564601-1*FLEX-564601*CC**20190912*108500**20190809*035*FLXT**DD*EXW
B2A*04
N9*CR*56465
N9*BM*FLXTFUSCG564601A
N9*MB*ONEYRIVV9039600
N9*PO*456DB45
V1*9302621*YM UTMOST**081W*ONEY***L*S
C3*USD
Y2*1*R**22G0
N1*BT*ABC Corporation
N3*6377 SAN IGNACIO AVE
N4*SAN JOSE*CA*95119-1200*US
N1*IU*Flexport LLC
N3*760 MARKET ST FL 8
N4*SAN FRANCISCO*CA*94102-2300*US
N1*SF*Beta Networks LTD.
N3*No.226, Yintong Road, High-Tech Industrial Zone
N4*Suzhou*32**CN
N1*ST*ABC Corporation
N3*1240 Don Haskins Drive
N4*Ronkonkoma*NY*11779*US
N1*SU*Beta Networks LTD.
N3*No.6, Main Road, Hi-Tech Development
N4*Changshu*32**CN
N1*CN*ABC Corporation
N3*1240 Haskins Dr
N4*El Paso*TX*79936*US
R4*D*UN*USLAX*Los Angeles
DTM*370*20190716
R4*L*UN*CNSHA*Shanghai
DTM*372*20190803
LX*1
N7*KKTU*7759326*1200*G****15*X**CN******K*****22G0**FCL
QTY*39*110*CT
M7*9581846
L0*1***1200*G*15*X*110*CTN**K
L5*1*LAPTOP ACCESSORIES
L5*2*LAPTOP MONITOR
L5*3*ROUTERS
L5*4*SWITCH CASES
L5*5*CABLES
L1*1*30*FR*3000****360****Export Customs Clearance-*****1*FR
C3*USD
L1*2*465*FR*46500****DRC****Drayage Base-origin*****1*PA
C3*USD
L1*3*475*FR*47500****COF****FCL - 20' Container-freig*****1*PA
C3*USD
L1*4*181.5*FR*18150****DDF****Destination Document-dest*****1*BL
C3*USD
L3*1200*G***108500****15*X*110*K
K1*Containers KKTU7759326 (Dry,
K1*Notes
SE*54*0001
GE*1*000000001
IEA*1*000000001
Original
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231101*0101*U*00401*000000001*0*T*>
GS*IO*SENDERGS*RECEIVERGS*20231101*010159*000000001*X*004010
ST*310*0001
B3**FLEX-577245-1*FLEX-577245*CC**20190919*297710**20190725*035*FLXT**DD*EXW
B2A*00
N9*BM*DLHTXMSE1901996
N9*MB*MAEU583029156
N9*PO*4601207
N9*PO*4603534
N9*PO*4603529
N9*PO*4602040
V1*9456769*MAERSK EMDEN**926N*MAEU***L*S
C3*USD
Y2*1*R**40HC
N1*BT*ABC Corporation
N3*6377 SAN IGNACIO AVE
N4*SAN JOSE*CA*95119-1200*US
N1*IU*Flexport LLC
N3*760 MARKET ST FL 8
N4*SAN FRANCISCO*CA*94102-2300*US
N1*SF*Beta Networks LTD.
N3*No.226, Yintong Road, High-Tech Industrial Zone
N4*Suzhou*32**CN
N1*ST*ABC Corporation
N3*1240 Don Haskins Drive
N4*Ronkonkoma*NY*11779*US
N1*SU*Beta Networks LTD.
N3*No.6, Main Road, Hi-Tech Development
N4*Changshu*32**CN
N1*CN*ABC Corporation
N3*1240 Haskins Dr
N4*El Paso*TX*79936*US
R4*L*UN*CNXMN*Xiamen
DTM*370*20190704
R4*D*UN*USLAX*Los Angeles
DTM*372*20190716
LX*1
N7*SUSU*8605790*3161.3*G****45*X**CN******K*****45G0**FCL
QTY*39*24*PK
M7*CN2102298
L0*1***3161.3*G*45*X*24*PKG**K
L5*1*IPAD-DOCK-WH
L5*2*CAB-USB
L5*3*STAND-TDT-1515L-R
L1*1*1530*FR*153000****COF****FCL - 40' Container-freig*****1*PA
C3*USD
L1*2*35*FR*3500****AMS****Automated Manifest System*****1*BL
C3*USD
L1*3*315*FR*31500****DRC****Drayage Base-origin*****1*PA
C3*USD
L1*4*55*FR*5500****360****Export Customs Clearance-*****1*FR
C3*USD
L1*5*75*FR*7500****585****Origin Document-origin*****1*BL
C3*USD
L1*6*55*FR*5500****HHB****Handling-origin*****1*BL
C3*USD
L1*7*170*FR*17000****TER****Terminal Handling Charge-*****1*PA
C3*USD
L1*8*30*FR*3000****SEC****Equipment-origin*****1*PA
C3*USD
L1*9***12000****CTF****Chassis-destination
C3*USD
L1*10*22*FR*2200****WTV****VGM Fee-origin*****1*BL
C3*USD
L1*11*477*FR*47700****DRC****Drayage Base-destination*****1*PA
C3*USD
L1*12*30**14310****405****Fuel Surcharge-destinatio*****477*FR
C3*USD
L3*3161.3*G***297710****45*X*24*K
K1*Notes
SE*69*0001
GE*1*000000001
IEA*1*000000001
GS*IO*SENDERGS*RECEIVERGS*20231101*010159*000000001*X*004010
ST*310*0001
B3**FLEX-577245-1*FLEX-577245*CC**20190919*297710**20190725*035*FLXT**DD*EXW
B2A*00
N9*BM*DLHTXMSE1901996
N9*MB*MAEU583029156
N9*PO*4601207
N9*PO*4603534
N9*PO*4603529
N9*PO*4602040
V1*9456769*MAERSK EMDEN**926N*MAEU***L*S
C3*USD
Y2*1*R**40HC
N1*BT*ABC Corporation
N3*6377 SAN IGNACIO AVE
N4*SAN JOSE*CA*95119-1200*US
N1*IU*Flexport LLC
N3*760 MARKET ST FL 8
N4*SAN FRANCISCO*CA*94102-2300*US
N1*SF*Beta Networks LTD.
N3*No.226, Yintong Road, High-Tech Industrial Zone
N4*Suzhou*32**CN
N1*ST*ABC Corporation
N3*1240 Don Haskins Drive
N4*Ronkonkoma*NY*11779*US
N1*SU*Beta Networks LTD.
N3*No.6, Main Road, Hi-Tech Development
N4*Changshu*32**CN
N1*CN*ABC Corporation
N3*1240 Haskins Dr
N4*El Paso*TX*79936*US
R4*L*UN*CNXMN*Xiamen
DTM*370*20190704
R4*D*UN*USLAX*Los Angeles
DTM*372*20190716
LX*1
N7*SUSU*8605790*3161.3*G****45*X**CN******K*****45G0**FCL
QTY*39*24*PK
M7*CN2102298
L0*1***3161.3*G*45*X*24*PKG**K
L5*1*IPAD-DOCK-WH
L5*2*CAB-USB
L5*3*STAND-TDT-1515L-R
L1*1*1530*FR*153000****COF****FCL - 40' Container-freig*****1*PA
C3*USD
L1*2*35*FR*3500****AMS****Automated Manifest System*****1*BL
C3*USD
L1*3*315*FR*31500****DRC****Drayage Base-origin*****1*PA
C3*USD
L1*4*55*FR*5500****360****Export Customs Clearance-*****1*FR
C3*USD
L1*5*75*FR*7500****585****Origin Document-origin*****1*BL
C3*USD
L1*6*55*FR*5500****HHB****Handling-origin*****1*BL
C3*USD
L1*7*170*FR*17000****TER****Terminal Handling Charge-*****1*PA
C3*USD
L1*8*30*FR*3000****SEC****Equipment-origin*****1*PA
C3*USD
L1*9***12000****CTF****Chassis-destination
C3*USD
L1*10*22*FR*2200****WTV****VGM Fee-origin*****1*BL
C3*USD
L1*11*477*FR*47700****DRC****Drayage Base-destination*****1*PA
C3*USD
L1*12*30**14310****405****Fuel Surcharge-destinatio*****477*FR
C3*USD
L3*3161.3*G***297710****45*X*24*K
K1*Notes
SE*69*0001
GE*1*000000001
IEA*1*000000001
Void
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231101*0102*U*00401*000000001*0*T*>
GS*IO*SENDERGS*RECEIVERGS*20231101*010206*000000001*X*004010
ST*310*0008
B3**FLEX-957225-1*FLEX-957225*CC**20190917*296750**20190725*035*FLXT**DD*EXW
B2A*01
N9*BM*DLHTXMSE1901995
N9*MB*MAEU583028648
N9*PO*4600565
N9*PO*4600564
N9*PO*4599376
V1*9456769*MAERSK EMDEN**926N*MAEU***L*S
C3*USD
Y2*1*R**40HC
N1*BT*ABC Corporation
N3*6377 SAN IGNACIO AVE
N4*SAN JOSE*CA*95119-1200*US
N1*IU*Flexport LLC
N3*760 MARKET ST FL 8
N4*SAN FRANCISCO*CA*94102-2300*US
N1*SF*Beta Networks LTD.
N3*No.226, Yintong Road, High-Tech Industrial Zone
N4*Suzhou*32**CN
N1*ST*ABC Corporation
N3*1240 Don Haskins Drive
N4*Ronkonkoma*NY*11779*US
N1*SU*Beta Networks LTD.
N3*No.6, Main Road, Hi-Tech Development
N4*Changshu*32**CN
N1*CN*ABC Corporation
N3*1240 Haskins Dr
N4*El Paso*TX*79936*US
R4*L*UN*CNXMN*Xiamen
DTM*370*20190704
R4*D*UN*USLAX*Los Angeles
DTM*372*20190716
LX*1
N7*MSKU*6341456*4807.6*G****45*X**CN******K*****45G0**FCL
QTY*39*392*CT
M7*CN2102300
L0*1***4807.6*G*45*X*392*CTN**K
L5*1*ET2401L-8CKA-1-ROGH-G
L1*1*55*FR*5500****360****Export Customs Clearance-*****1*FR
C3*USD
L1*2*30*FR*3000****SEC****Equipment-origin*****1*PA
C3*USD
L1*3*170*FR*17000****TER****Terminal Handling Charge-*****1*PA
C3*USD
L1*4*55*FR*5500****HHB****Handling-origin*****1*BL
C3*USD
L1*5*25*FR*2500****WTV****VGM Fee-origin*****1*BL
C3*USD
L1*6*75*FR*7500****585****Origin Document-origin*****1*BL
C3*USD
L1*7*475*FR*47500****DRC****Drayage Base-destination*****1*PA
C3*USD
L1*8*30**14250****405****Fuel Surcharge-destinatio*****475*FR
C3*USD
L1*9***6000****CTF****Chassis-destination
C3*USD
L1*10*315*FR*31500****DRC****Drayage Base-origin*****1*PA
C3*USD
L1*11*35*FR*3500****AMS****Automated Manifest System*****1*BL
C3*USD
L1*12*1530*FR*153000****COF****FCL - 40' Container-freig*****1*PA
C3*USD
L3*4807.6*G***296750****45*X*392*K
K1*Notes
SE*66*0008
GE*1*000000001
IEA*1*000000001
GS*IO*SENDERGS*RECEIVERGS*20231101*010206*000000001*X*004010
ST*310*0008
B3**FLEX-957225-1*FLEX-957225*CC**20190917*296750**20190725*035*FLXT**DD*EXW
B2A*01
N9*BM*DLHTXMSE1901995
N9*MB*MAEU583028648
N9*PO*4600565
N9*PO*4600564
N9*PO*4599376
V1*9456769*MAERSK EMDEN**926N*MAEU***L*S
C3*USD
Y2*1*R**40HC
N1*BT*ABC Corporation
N3*6377 SAN IGNACIO AVE
N4*SAN JOSE*CA*95119-1200*US
N1*IU*Flexport LLC
N3*760 MARKET ST FL 8
N4*SAN FRANCISCO*CA*94102-2300*US
N1*SF*Beta Networks LTD.
N3*No.226, Yintong Road, High-Tech Industrial Zone
N4*Suzhou*32**CN
N1*ST*ABC Corporation
N3*1240 Don Haskins Drive
N4*Ronkonkoma*NY*11779*US
N1*SU*Beta Networks LTD.
N3*No.6, Main Road, Hi-Tech Development
N4*Changshu*32**CN
N1*CN*ABC Corporation
N3*1240 Haskins Dr
N4*El Paso*TX*79936*US
R4*L*UN*CNXMN*Xiamen
DTM*370*20190704
R4*D*UN*USLAX*Los Angeles
DTM*372*20190716
LX*1
N7*MSKU*6341456*4807.6*G****45*X**CN******K*****45G0**FCL
QTY*39*392*CT
M7*CN2102300
L0*1***4807.6*G*45*X*392*CTN**K
L5*1*ET2401L-8CKA-1-ROGH-G
L1*1*55*FR*5500****360****Export Customs Clearance-*****1*FR
C3*USD
L1*2*30*FR*3000****SEC****Equipment-origin*****1*PA
C3*USD
L1*3*170*FR*17000****TER****Terminal Handling Charge-*****1*PA
C3*USD
L1*4*55*FR*5500****HHB****Handling-origin*****1*BL
C3*USD
L1*5*25*FR*2500****WTV****VGM Fee-origin*****1*BL
C3*USD
L1*6*75*FR*7500****585****Origin Document-origin*****1*BL
C3*USD
L1*7*475*FR*47500****DRC****Drayage Base-destination*****1*PA
C3*USD
L1*8*30**14250****405****Fuel Surcharge-destinatio*****475*FR
C3*USD
L1*9***6000****CTF****Chassis-destination
C3*USD
L1*10*315*FR*31500****DRC****Drayage Base-origin*****1*PA
C3*USD
L1*11*35*FR*3500****AMS****Automated Manifest System*****1*BL
C3*USD
L1*12*1530*FR*153000****COF****FCL - 40' Container-freig*****1*PA
C3*USD
L3*4807.6*G***296750****45*X*392*K
K1*Notes
SE*66*0008
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.