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) (Carrier)
—
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
C2
100
Bank ID
Max use 1
Optional
C3
110
Currency
Max use 1
Optional
Y2
120
Container Details
Max use 10
Optional
R2
200
Route Information
Max use 13
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
- DP
- Door-to-Pier
- PD
- Pier-to-Door
- PP
- Pier-to-Pier
—
- 8X
- Transaction Category or Type
- BM
- Bill of Lading Number
- BN
- Booking Number
- CT
- Contract Number
- IV
- Seller's Invoice Number
- MB
- Master Bill of Lading
- PD
- Promotion/Deal Number
- PT
- Purchase Option Agreement
- SI
- Shipper's Identifying Number for Shipment (SID)
- VAT
- VAT Number
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 10
N1
130
Heading > N1 Loop > N1
Name
RequiredMax use 1
—
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
—
- BT
- Bill-to-Party
- CA
- Carrier
- CI
- Consignor
- CN
- Consignee
- CP
- Party to Receive Cert. of Compliance
- FW
- Forwarder
- II
- Issuer of Invoice
- N1
- Notify Party no. 1
- N2
- Notify Party no. 2
- OE
- Booking Office
- PE
- Payee
- PR
- Payer
- RE
- Party to receive commercial invoice remittance
- RI
- Remit To
- SF
- Ship From
- SH
- Shipper
- ST
- Ship To
- SU
- Supplier/Manufacturer
N1 Loop end
R4 Loop
RequiredMax 20
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)
- E
- Place of Delivery (Contractual)
- L
- Port of Loading (Operational)
- R
- Place of Receipt (Contractual)
DTM
190
Heading > R4 Loop > DTM
Date/Time Reference
OptionalMax use 15
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
—
- 139
- Estimated
- 140
- Actual
- 147
- Due Date Last Complete Installment Paid
- 814
- Payment Due Date
R4 Loop 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
—
- HH
- House-to-house
- HP
- House-to-pier
- PH
- Pier-to-house
- PP
- Pier-to-pier
OptionalMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
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 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
L0 Loop end
LX Loop end
Detail end
Summary
L3
010
Summary > L3
Total Weight and Charges
OptionalMax 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
L1 Loop
OptionalMax 20
L1
030
Summary > 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
Summary end
EDI Samples
Sample 1
ISA*00* *00* *ZZ*CARRIER *ZZ*FLEXPORTEDI *210408*0648*U*00401*001378983*0*P*+~
GS*IO*CARRIER*FLEXPORTEDI*20210408*0648*35749*X*004010~
ST*310*35749~
B3*2*ABCD12309500**CC**20210407*490300****SCAC**PP~
B2A*00~
N9*CT*ABC1116123~
N9*BM*SCACABCD12309500~
N9*BN*SCACABCD12309500~
N9*IV*US1234567~
N9*PT*NET30~
V1*9999465*Vessel Name**0013*SCAC***L~
C3*USD~
N1*CN*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*N1*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*SH*Shipper Limited*25*7778881200~
N3*RM 202, 3TH FLOOR, NORTH BLOCK,2026 DING~
N4*Shanghai***CN~
N1*BT*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor San Francisco, CA - 94102 United States~
N4*San Francisco*CA*94102*US~
N1*RE*Mail check to:SCAC (USA) Inc 314 Union Ave Ste #122~
N4*Mahopac*NY*10401*US~
R4*R*UN*CNSHA*SHANGHAI*CN***SH~
DTM*140*20210303~
DTM*814*20210507~
R4*L*UN*VNCMT*CAI MEP*VN~
DTM*140*20210311~
R4*D*UN*USNYC*NEW YORK, NY*US***NY~
DTM*139*20210413~
R4*E*UN*USNYC*NEW YORK, NY*US***NY~
DTM*139*20210413~
LX*1~
N7*FDCU*123456*5994*G****67.79*X********K*4****4500~
QTY*39*810~
M7*SC1124440A~
L0*1***5994*G*67.79*X*810*CTN**K~
L5*1*CLEANING EQUIPMENT,VACUUM CLEANER~
LX*2~
N7*BBBB*574269*5994*G****67.79*X********K*3****4500~
QTY*39*810~
M7*SCACZA8888~
L0*1***5994*G*67.79*X*810*CTN**K~
L5*1*CLEANING EQUIPMENT,VACUUM CLEANER~
L3*11222*G***123300****111.58*X*1620*K~
L1*1*35*LS*1200****CDD***C*CARGO DECLARATION CHARGE*****1*NR~
C3*USD~
L1*2*11*PA*1200****PSS***C*CARRIER SECURITY SURCHARG*****2*NR~
C3*USD~
L1*3*22*PA*1200****EPS***C*ECA REG SURCHARGE*****2*NR~
C3*USD~
L1*4*333*PA*12000****BSC***C*ONE BUNKER SURCHARGE*****2*NR~
C3*USD~
L1*5*4444*PA*123400****COF***C*BASIC OCEAN FREIGHT*****2*NR~
C3*USD~
L1*6*55*PA*1200****TSD***C*TERMINAL SECURITY CHARGE *****2*NR~
C3*USD~
K1*Remit To:Where payment goes~
K1*Bank Details: Bank Info ~
SE*61*35749~
GE*1*35749~
IEA*1*001378983~
GS*IO*CARRIER*FLEXPORTEDI*20210408*0648*35749*X*004010~
ST*310*35749~
B3*2*ABCD12309500**CC**20210407*490300****SCAC**PP~
B2A*00~
N9*CT*ABC1116123~
N9*BM*SCACABCD12309500~
N9*BN*SCACABCD12309500~
N9*IV*US1234567~
N9*PT*NET30~
V1*9999465*Vessel Name**0013*SCAC***L~
C3*USD~
N1*CN*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*N1*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*SH*Shipper Limited*25*7778881200~
N3*RM 202, 3TH FLOOR, NORTH BLOCK,2026 DING~
N4*Shanghai***CN~
N1*BT*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor San Francisco, CA - 94102 United States~
N4*San Francisco*CA*94102*US~
N1*RE*Mail check to:SCAC (USA) Inc 314 Union Ave Ste #122~
N4*Mahopac*NY*10401*US~
R4*R*UN*CNSHA*SHANGHAI*CN***SH~
DTM*140*20210303~
DTM*814*20210507~
R4*L*UN*VNCMT*CAI MEP*VN~
DTM*140*20210311~
R4*D*UN*USNYC*NEW YORK, NY*US***NY~
DTM*139*20210413~
R4*E*UN*USNYC*NEW YORK, NY*US***NY~
DTM*139*20210413~
LX*1~
N7*FDCU*123456*5994*G****67.79*X********K*4****4500~
QTY*39*810~
M7*SC1124440A~
L0*1***5994*G*67.79*X*810*CTN**K~
L5*1*CLEANING EQUIPMENT,VACUUM CLEANER~
LX*2~
N7*BBBB*574269*5994*G****67.79*X********K*3****4500~
QTY*39*810~
M7*SCACZA8888~
L0*1***5994*G*67.79*X*810*CTN**K~
L5*1*CLEANING EQUIPMENT,VACUUM CLEANER~
L3*11222*G***123300****111.58*X*1620*K~
L1*1*35*LS*1200****CDD***C*CARGO DECLARATION CHARGE*****1*NR~
C3*USD~
L1*2*11*PA*1200****PSS***C*CARRIER SECURITY SURCHARG*****2*NR~
C3*USD~
L1*3*22*PA*1200****EPS***C*ECA REG SURCHARGE*****2*NR~
C3*USD~
L1*4*333*PA*12000****BSC***C*ONE BUNKER SURCHARGE*****2*NR~
C3*USD~
L1*5*4444*PA*123400****COF***C*BASIC OCEAN FREIGHT*****2*NR~
C3*USD~
L1*6*55*PA*1200****TSD***C*TERMINAL SECURITY CHARGE *****2*NR~
C3*USD~
K1*Remit To:Where payment goes~
K1*Bank Details: Bank Info ~
SE*61*35749~
GE*1*35749~
IEA*1*001378983~
Sample 2
ISA*00* *00* *01*CARRIER *ZZ*FLEXPORTEDI *210408*0224*U*00401*000164772*1*P*>~
GS*IO*CARRIER*FLEXPORTEDI*20210408*0224*164772*X*004010~
ST*310*647720001~
B3*B*888823420**CC**20210407*10000**20210316*35*SCAC*20210126*PP*ZZZ~
B2A*00~
N9*BM*SCAC1111242350~
N9*BN*1111242350~
V1*9992615*Vessel Name**035W*SCAC***L*O~
C3*USD~
N1*BT*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor San Francisco, CA - 94102 United States~
N4*San Francisco*CA*94102*US~
N1*N1*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*SH*Shipper Limited*25*7778881200~
N3*RM 202, 3TH FLOOR, NORTH BLOCK,2026 DING~
N4*Shanghai***CN~
N1*CN*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*FW*Orient International Logistics (Holding) Company Limited*25*1234567890~
N3*4E. 40 Suzhou Road~
N4*Shanghai**200085*CN~
N1*RE*Mail check to:SCAC (USA) Inc 314 Union Ave Ste #122~
N4*Mahopac*NY*10401*US~
R4*R*UN*CNSHA*SHANGHAI*CN***SH~
DTM*140*20210126*1800~
DTM*814*20210507~
R4*L*UN*CNSHA*SHANGHAI*CN~
DTM*140*20210131*2351~
R4*D*UN*USCHS*CHARLESTON*US~
DTM*140*20210315*2332~
R4*E*UN*USCHS*CHARLESTON*US***SC~
DTM*140*20210316*2242~
R2*SCAC*O**********03~
LX*1~
N7*DFSU*124077*5355*G********SCAC*****K*2****45G1~
QTY*39*1241*CT~
M7*SCACZA8888****HS~
L0*1***5355*G*96.96*X*1241*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT****N/M~
LX*2~
N7*BBBB*123066*1165.44*G********SCAC*****K*2****45G1~
QTY*39*2272*CT~
M7*SCACQB8123****HS~
L0*1***8565.44*G*12.03*X*2272*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT~
LX*3~
N7*CCCC*123644*1237.4*G********SCAC*****K*1****45G1~
QTY*39*2122*CT~
M7*SCACQB9123****HS~
L0*1***7637.4*G*69.1*X*2122*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT~
LX*4~
N7*DDDD*785869*1236.05*G********SCAC*****K*8****L2GP~
QTY*39*1234*CT~
M7*SCACQB8123****HS~
L0*1***4726.05*G*65.6*X*1234*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT~
L3*26283.89*G***10000****276.69*X*6869*K~
L1*1*100*PA*10000****DET***E*DETENTION CHRG********USD~
C3*USD*1.000~
SE*62*647720001~
GE*1*164772~
IEA*1*000164772~
GS*IO*CARRIER*FLEXPORTEDI*20210408*0224*164772*X*004010~
ST*310*647720001~
B3*B*888823420**CC**20210407*10000**20210316*35*SCAC*20210126*PP*ZZZ~
B2A*00~
N9*BM*SCAC1111242350~
N9*BN*1111242350~
V1*9992615*Vessel Name**035W*SCAC***L*O~
C3*USD~
N1*BT*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor San Francisco, CA - 94102 United States~
N4*San Francisco*CA*94102*US~
N1*N1*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*SH*Shipper Limited*25*7778881200~
N3*RM 202, 3TH FLOOR, NORTH BLOCK,2026 DING~
N4*Shanghai***CN~
N1*CN*Flexport International LLC*25*7729182000~
N3*760 Market St., 8th Floor~
N4*San Francisco*CA*94102*US~
N1*FW*Orient International Logistics (Holding) Company Limited*25*1234567890~
N3*4E. 40 Suzhou Road~
N4*Shanghai**200085*CN~
N1*RE*Mail check to:SCAC (USA) Inc 314 Union Ave Ste #122~
N4*Mahopac*NY*10401*US~
R4*R*UN*CNSHA*SHANGHAI*CN***SH~
DTM*140*20210126*1800~
DTM*814*20210507~
R4*L*UN*CNSHA*SHANGHAI*CN~
DTM*140*20210131*2351~
R4*D*UN*USCHS*CHARLESTON*US~
DTM*140*20210315*2332~
R4*E*UN*USCHS*CHARLESTON*US***SC~
DTM*140*20210316*2242~
R2*SCAC*O**********03~
LX*1~
N7*DFSU*124077*5355*G********SCAC*****K*2****45G1~
QTY*39*1241*CT~
M7*SCACZA8888****HS~
L0*1***5355*G*96.96*X*1241*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT****N/M~
LX*2~
N7*BBBB*123066*1165.44*G********SCAC*****K*2****45G1~
QTY*39*2272*CT~
M7*SCACQB8123****HS~
L0*1***8565.44*G*12.03*X*2272*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT~
LX*3~
N7*CCCC*123644*1237.4*G********SCAC*****K*1****45G1~
QTY*39*2122*CT~
M7*SCACQB9123****HS~
L0*1***7637.4*G*69.1*X*2122*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT~
LX*4~
N7*DDDD*785869*1236.05*G********SCAC*****K*8****L2GP~
QTY*39*1234*CT~
M7*SCACQB8123****HS~
L0*1***4726.05*G*65.6*X*1234*CTN**K~
L5*1*LIGHTING FIXTURES/GLASS COVER /OUTDOOR LIGHT~
L3*26283.89*G***10000****276.69*X*6869*K~
L1*1*100*PA*10000****DET***E*DETENTION CHRG********USD~
C3*USD*1.000~
SE*62*647720001~
GE*1*164772~
IEA*1*000164772~
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.