Section title: X12 EDI Examples
back to previous

ASC X12 Version: 004010 | Transaction Set: 310 | TR3 ID: 310 - (Ocean)

Example 1

Overview
The 310-transaction set is a standard format for electronic data interchange (EDI) messages used in the transportation industry to provide detailed information about the shipment of goods. This transaction set is typically used to exchange information about ocean freight shipments.

Purpose
The purpose of the 310-transaction set is to provide detailed information about the shipment of goods, including the quantity, weight, and packaging of the goods. This information is used by trading partners involved in the transportation of goods by sea to ensure that the goods are transported safely and efficiently.

Scenario
The following example describes a 310 transaction set that is used to send an invoice to a customer for the provided ocean transportation and handling services.

Invoice Type: Original

Invoice Date: May 1st, 2023

Reference Numbers:
Invoice Number: SSLACONT1234567001
Purchase Order Number: PO1234567

Charges
Charge Unit: Per Container
Payment: Collect

Charge Code Description Unit Rate Quantity Amount
TRUCKING_001 Trucking Charge $450 1 $450
WAITING_001 TERMINAL WAITING FEE $50 2 $100
HANDLING_001 Handling Charge $100 1 $100

 

Shipper/Origin: Shipper INC
Address: 294-4, Ahyeon-dong, Mapo-gu
City: Seoul
Country: South Korea
Postal Code: 008162

Ship To: Shipto Corp
Address: 9464 County Rd.
City: Charleston
State: North Carolina
Country: United States
Postal Code: 29406

Consignee: Consignee Co.
Address: 7599 Rock Maple Dr
City: Fort Worth
State: Texas
Country: United States
Postal Code: 76110

Freight/Service Information
BOL Number: SSLACONT1234567001
Freight Type: Full Container Load
Gross Weight: 15,000 KG
Volume in Cubic Meters: 50 CBM
Items: 800 Cartons
Container Number: CONT1234567
Container Type: 40 High Cube
Tariff Service: Port to Door
Incoterms: FOB

Vessel/Route Information
Type: Original Carrier
SSL Company’s SCAC Code: SSLA
Vessel Code: 000ZZ
Vessel Name = SL FUTURE
Service Type: FCL/FC

Location Information
Port of Discharge, Place of Delivery: Tacoma, USA – March 23rd, 2023
Port of Servicing, Place of Receipt: Pusan, South Korea – March 6th, 2023

Transmission Explanation

ST*310*000001234~

Segment = Transaction Set Header
Transaction Set ID Code = 310 (Freight Receipt and Invoice (Ocean))
Transaction Set Control Number = 1234

B3**INVOICE1234*BOLNUMBER1234*CC*K*20230401*125000****ABCD*20230501*PD*FOB~

Segment = Beginning Segment for Carrier’s Invoice
Invoice Number (02) = INVOICE1234
Shipment Identification Number (03) = BOLNUMBER1234
Shipment Method of Payment (04) = CC (Collect)
Weight Unit Code (05) = K (Kilogram)
Date (06) = 20230401 (Invoice Date, Format: CCYYMMDD)
Net Amount Due (07) = 65000 ($650.00 in cents)
Standard Carrier Alpha Code (11) = ABCD (Sender’s SCAC Code)
Date (12) = 20230501 (Issue Date, Format: CCYYMMDD)
Tariff Service Code (13) = PD (Port-to-Door)
Incoterms (14) = FOB

B2A*00~

Segment = Set Purpose
Transaction Set Purpose Code (01) = 00 (Original)

N9*PO*PO1234567~

Segment = Reference Identification
Reference Identification Qualifier (01) = PO (Purchase Order Number)
Reference Identification (02) = PO1234567

N9*EQ*CONT1234567~

Segment = Reference Identification
Reference Identification Qualifier (01) = EQ (Container Number)
Reference Identification (02) = SSLA1234567.

N9*BM*SSLACONT1234567001~

Segment = Reference Identification
Reference Identification Qualifier (01) = BM (Bill of Lading Number)
Reference Identification (02) = SSLACONT1234567001

V1*000ZZ*SL FUTURE~

Segment = Vessel Identification
Vessel Code (01) = 000ZZ
Vessel Name (02) = SL FUTURE

C3*USD*1.000~

Segment = Currency
Currency Code (01) = USD
Exchange Rate (02) = 1.000

Y2*1***FCL~

Segment = Container Details
Number of Containers (01) = 1
Equipment Type (04) = FCL (Full Container Load)

N1*SH*SHIPPER INC~

Segment = Name
Entity Identifier Code (01) = SH
Name (02) = SHIPPER INC

N3*294-4, AHYEON-DONG, MAPO-GU~

Segment = Address Information
Address Information (01) = 294-4, AHYEON-DONG, MAPO-GU

N4*SEOUL**008162*KR~

Segment = Geographic Location
City Name (01) = SEOUL
Postal Code (3) = 008162
Country Code (4) = KR

N1*ST*SHIPTO CORP~

Segment = Name
Entity Identifier Code (01) = ST (Ship To)
Name (02) = SHIPTO CORP

N3*#9464 COUNT RD~

Segment = Address Information
Address Information (01) = 9464 COUNTY RD.

N4*CHARLESTON*SC*29406*US~

Segment = Geographic Location
City Name (01) = CHARLESTON
State or Province Code (2) = SC
Postal Code (3) = 29406
Country Code (4) = US

N1*CN*CONSIGNEE CO~

Segment = Name
Entity Identifier Code (01) = CN (Consignee)

N3*7599 ROCK MAPLE DRIVE~

Segment = Address Information
Address Information (01) 7599 ROCK MAPLE DRIVE

N4*FORT WORTH*TX*76110*US~

Segment = Geographic Location
City Name (01) = FORT WORTH
State or Province Code (2) = TX
Postal Code (3) = 76110
Country Code (4) = US

R4*D*UN*USTIW*TACOMA~

Segment = Port or Terminal
Port or Terminal Function Code (01) = D (Port of Discharge)
Location Qualifier (02) = UN
Location Identifier (03) = USTIW
Port Name (04) = TACOMA

DTM*035*20230323~

Segment = Date/Time Reference
Date/Time Qualifier (01) = 035 (Delivered)
Date (02) = 20230323 (Format: CCYYMMDD)

R4*E*UN*USTIW*TACOMA~

Segment = Port or Terminal
Port or Terminal Function Code (01) = E (Place of Delivery)
Location Qualifier (02) = UN
Location Identifier (03) = USTIW
Port Name (04) = TACOMA

DTM*035*20230323~

Segment = Date/Time Reference
Date/Time Qualifier (01) = 035 (Delivered)
Date (02) = 20230323 (Format: CCYYMMDD)

R4*L*UN*KRPUS*PUSAN~

Segment = Port or Terminal
Port or Terminal Function Code (01) = L (Port of Servicing)
Location Qualifier (02) = UN
Location Identifier (03) = KRPUS
Port Name (04) = PUSAN

DTM*035*20230306~

Segment = Date/Time Reference
Date/Time Qualifier (01) = 035 (Delivered)
Date (02) = 20230306 (Format: CCYYMMDD)

R4*R*UN*KRPUS*PUSAN~

Segment = Port or Terminal
Port or Terminal Function Code (01) = R (Place of Receipt)
Location Qualifier (02) = UN
Location Identifier (03) = KRPUS
Port Name (04) = PUSAN

DTM*035*20230306~

Segment = Date/Time Reference
Date/Time Qualifier (01) = 035 (Delivered)
Date (02) = 20230306 (Format: CCYYMMDD)

R2*SSLA*O**********03~

Segment = Route Information
Standard Carrier Alpha Code (01) = SSLA
Routing Sequence Code (02) = O (Original Carrier)
Type of Service Code = 03 (FCL/FCL)

LX*1~

Segment = Assigned Number
Assigned Number (01) = 1

N7*CONT*123456****************7****40HQ~

Segment = Equipment Details
Equipment Initial (01) = CONT
Equipment Number (02) = 123456
Equipment Number Check Digit (18) = 7
Equipment Type (22) = 40HQ (40 ft High Cube)

L1*1*450.00*PA*45000****TRUCKING_001***E*TRUCKING CHARGE~

Segment = Line/Rate Charges
Lading Line Item Number (01) = 1
Freight Rate (02) = 450.00 ($450.00)
Rate/Value Qualifier (03) = PA (Per Container)
Charge (04) = 45000 ($450.00 in Cents)
Special Charge or Allowance Code (08) = TRUCKING_001
Charge Method of Payment (11) = E (Collect)
Special Charge Description (12) = TRUCKING CHARGE

C3*USD*1.000~

Segment = Currency
Currency Code (01) = USD
Exchange Rate (02) = 1.000

L1*2*50.00*PA*10000****WAITING_001***E*WAITING CHARGE~

Segment = Line/Rate Charges
Lading Line Item Number (01) = 3
Freight Rate (02) = 50.00 ($50.00)
Rate/Value Qualifier (03) = PA (Per Container)
Charge (04) = 10000 ($100.00 in Cents)
Special Charge or Allowance Code (08) = WAITING_001
Charge Method of Payment (11) = E (Collect)
Special Charge Description (12) = WAITING CHARGE

C3*USD*1.000~

Segment = Currency
Currency Code (01) = USD
Exchange Rate (02) = 1.000

L1*3*100.00*PA*10000****HANDLING_001***E*HANDLING CHARGE~

Segment = Line/Rate Charges
Lading Line Item Number (01) = 2
Freight Rate (02) = 100.00 ($100.00)
Rate/Value Qualifier (03) = PA (Per Container)
Charge (04) = 10000 ($100.00 in Cents)
Special Charge or Allowance Code (08) = HANDLING_001
Charge Method of Payment (11) = E (Collect)
Special Charge Description (12) = HANDLING CHARGE

C3*USD*1.000~

Segment = Currency
Currency Code (01) = USD
Exchange Rate (02) = 1.000

L0*1***15000*G*50*X*800*CTN**K~

Segment = Line Quantity/Weight
Lading Line Item Number (01) = 1
Weight (04) = 15000
Weight Qualifier (05) = G (Gross Weight)
Volume (06) = 50
Volume Qualifier (07) = X (Cubic Meters)
Lading Quantity (08) = 800
Packing Form Code/Unit of Measure (09) = CTN (Carton)
Weight Unit Code (11) = K (Kilograms)

L5*1*TRUCKING CHARGE~

Segment = Line Description
Lading Line Item Number (01) = 1
Lading Description (02) = TRUCKING CHARGE

L5*2*TERMINAL WAITING FEE~

Segment = Line Description
Lading Line Item Number (01) = 2
Lading Description (02) = TERMINAL WAITING FEE

L5*3*HANDLING CHARGE~

Segment = Line Description
Lading Line Item Number (01) = 3
Lading Description (02) = HANDLING CHA

L3*14070*G***111250****41.08*X*756*K~

Segment = Total Weight and Charges
Weight (01) = 15000
Weight Qualifier (02) = G (Gross Weight)
Charge (05) = 65000

SE*41*000001234~

Segment = Transaction Set Trailer
Number of Included Segments (01) = 41
Transaction Set Control Number (02) = 1234

Transmission

ST*310*000001234~B3**INVOICE1234*BOLNUMBER1234*CC*K*20230401*125000****ABCD*20230501*PD*FOB~B2A*00~N9*PO*PO1234567~N9*EQ*CONT1234567~N9*BM*SSLACONT1234567001~V1*000ZZ*SL FUTURE~C3*USD*1.000~Y2*1***FCL~N1*SH*SHIPPER INC~N3*294-4, AHYEON-DONG, MAPO-GU~N4*SEOUL**008162*KR~N1*ST*SHIPTO CORP~N3*#9464 COUNT RD~N4*CHARLESTON*SC*29406*US~N1*CN*CONSIGNEE CO~N3*7599 ROCK MAPLE DRIVE~N4*FORT WORTH*TX*76110*US~R4*D*UN*USTIW*TACOMA~DTM*035*20230323~R4*E*UN*USTIW*TACOMA~DTM*035*20230323~R4*L*UN*KRPUS*PUSAN~DTM*035*20230306~R4*R*UN*KRPUS*PUSAN~DTM*035*20230306~R2*SSLA*O**********03~LX*1~N7*CONT*123456****************7****40HQ~L1*1*450.00*PA*45000****TRUCKING_001***E*TRUCKING CHARGE~C3*USD*1.000~L1*2*50.00*PA*10000****WAITING_001***E*WAITING CHARGE~C3*USD*1.000~L1*3*100.00*PA*10000****HANDLING_001***E*HANDLING CHARGE~C3*USD*1.000~L0*1***15000*G*50*X*800*CTN**K~L5*1*TRUCKING CHARGE~L5*2*TERMINAL WAITING FEE~L5*3*HANDLING CHARGE~L3*14070*G***111250****41.08*X*756*K~SE*41*000001234~