Stedi maintains this guide based on public documentation from Crane Worldwide Logistics. Contact Crane Worldwide Logistics for official EDI specifications. To report any errors in this guide, please contact us.
X12 310 Freight Receipt and Invoice (Ocean)
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
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
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)
—
- 00403
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1999
—
- 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
0200
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
—
- CC
- Collect
- PP
- Prepaid (by Seller)
- TP
- Third Party Pay
—
- DD
- Door-to-Door—
- DO
- Door-to-Terminal—
- DP
- Door-to-Pier—
- OD
- Terminal-to-Door—
- PD
- Pier-to-Door—
- PP
- Pier-to-Pier—
V1
0700
Heading > V1
Vessel Identification
RequiredMax use 2
—
Example
At least one of Vessel Code (V1-01) or Vessel Name (V1-02) is required
N4
1600
Heading > Consignee > N4
Geographic Location
OptionalMax use 1
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
Only one of State or Province Code (N4-02) or Country Subdivision Code (N4-07) may be present
If Country Subdivision Code (N4-07) is present, then Country Code (N4-04) is required
N1 Consignee end
N4
1600
Heading > Customer > N4
Geographic Location
OptionalMax use 1
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
Only one of State or Province Code (N4-02) or Country Subdivision Code (N4-07) may be present
If Country Subdivision Code (N4-07) is present, then Country Code (N4-04) is required
N1 Customer end
N4
1600
Heading > Shipper > N4
Geographic Location
OptionalMax use 1
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
Only one of State or Province Code (N4-02) or Country Subdivision Code (N4-07) may be present
If Country Subdivision Code (N4-07) is present, then Country Code (N4-04) is required
N1 Shipper end
R4 Loop
RequiredMax >1
R4
1800
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)—
—
- UN
- United Nations Location Code (UNLOCODE)
- ZZ
- Mutually Defined
DTM
1900
Heading > R4 Loop > DTM
Actual
OptionalMax use 15
—
Example
Variants (all may be used)
DTMEstimatedIf Time Code (DTM-04) is present, then Time (DTM-03) is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-05) is required
If either Date Time Period Format Qualifier (DTM-05) or Date Time Period (DTM-06) is present, then the other is required
DTM
1900
Heading > R4 Loop > DTM
Estimated
OptionalMax use 15
—
Example
Variants (all may be used)
DTMActualIf Time Code (DTM-04) is present, then Time (DTM-03) is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-05) is required
If either Date Time Period Format Qualifier (DTM-05) or Date Time Period (DTM-06) is present, then the other is required
R4 Loop end
Heading end
Detail
LX Loop
RequiredMax >1
N7 Loop
OptionalMax >1
N7
0200
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 >1
L0
1500
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
If either Quantity (L0-13) or Yes/No Condition or Response Code (L0-15) is present, then the other is required
L1 Loop
OptionalMax >1
L1 Loop end
L0 Loop end
LX Loop end
Detail end
Summary
L3
0100
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
Sample
ST*310*0001~
B3**ISEIAH220200003*TEST1234*PP**20220209*182000**20220312*035*MLCW**DD*CFR~
N9*BM*TEST1234~
N9*BN*TEST1234~
N9*PO*123456798~
V1**DANIEL K. INOUYE**056E~
V1**DANIEL K. INOUYE**056E~
C3*USD~
N1*CN*Consignee Name~
N3*AL-BADRANI, AL QATIF*WESTERN SECTOR PLOT NO. 17~
N4*DAMMAM***SA~
N1*LW*Customer Name~
N3*P O Box 671048*Attn A P Special~
N4*HOUSTON*TX*77267*US~
N1*SH*Shipper Name~
N3*By its representative,*ABC International, Inc.~
N4*HOUSTON*TX*77067*US~
R4*L*UN*HOU~
DTM*139*20220301~
R4*D*UN*DMM~
R4*R*UN*HOU~
R4*E*UN*DAMMAM~
LX*1~
N7*MATU*5143400*10000*G****20*X*************40HC~
M7*1029855~
L0*1***10000*G*20*X*2*CTN**K~
L5*1*General Cargo~
L1*1***20000****STF****Container Stuffing~
C3*USD~
L1*2***10000****DRC****Container Drayage~
C3*USD~
L1*3***2000****URC****Transload Fee~
C3*USD~
L1*4***150000****TRF****Transfer Fee~
C3*USD~
L3*10000*G***182000****20*X*2*K~
SE*37*0001~
B3**ISEIAH220200003*TEST1234*PP**20220209*182000**20220312*035*MLCW**DD*CFR~
N9*BM*TEST1234~
N9*BN*TEST1234~
N9*PO*123456798~
V1**DANIEL K. INOUYE**056E~
V1**DANIEL K. INOUYE**056E~
C3*USD~
N1*CN*Consignee Name~
N3*AL-BADRANI, AL QATIF*WESTERN SECTOR PLOT NO. 17~
N4*DAMMAM***SA~
N1*LW*Customer Name~
N3*P O Box 671048*Attn A P Special~
N4*HOUSTON*TX*77267*US~
N1*SH*Shipper Name~
N3*By its representative,*ABC International, Inc.~
N4*HOUSTON*TX*77067*US~
R4*L*UN*HOU~
DTM*139*20220301~
R4*D*UN*DMM~
R4*R*UN*HOU~
R4*E*UN*DAMMAM~
LX*1~
N7*MATU*5143400*10000*G****20*X*************40HC~
M7*1029855~
L0*1***10000*G*20*X*2*CTN**K~
L5*1*General Cargo~
L1*1***20000****STF****Container Stuffing~
C3*USD~
L1*2***10000****DRC****Container Drayage~
C3*USD~
L1*3***2000****URC****Transload Fee~
C3*USD~
L1*4***150000****TRF****Transfer Fee~
C3*USD~
L3*10000*G***182000****20*X*2*K~
SE*37*0001~
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.