Skip to content
EDI 310 — EDI TransactionPublished Nov 4, 2026

EDI 310 Specification: Ocean B/L and Freight Invoice

EDI 310 explained: the ocean bill of lading and freight invoice, its B3, V1, R4, N7 and L1 segments, a live sample, and how it fits with the 300, 301 and 315.

The EDI 310 is the ocean bill of lading and the freight bill in one electronic document. Once an ocean carrier has your cargo on its books, it sends a 310 with what it will print on the bill of lading and what it intends to charge. Importers, NVOCCs and forwarders use it to check the B/L before it is released, to match containers to purchase orders, and to audit ocean freight before paying.

This guide covers what the 310 carries, where it sits next to the 300, 301, 304 and 315, every segment you will map, a live sample with two 40-foot containers, how it differs from the motor-carrier 210, and the errors that cause B/L amendments and disputed invoices.

What Is an EDI 310?

An EDI 310 is the Freight Receipt and Invoice (Ocean) transaction set defined by ASC X12, used by an ocean carrier to send bill of lading information and freight charges for a shipment. The X12 description of the set lists several uses for the same data: a receipt for the shipment, a substitute for the paper bill of lading, a copy for verification or information, a manifest, and a freight invoice. Which of those a given carrier means by its 310 is set out in its implementation guide. The 310 travels in functional group IO (the GS01 value).

Authoritative references for 310 work:

  • The X12 transaction set catalog defines the 310 structure, segment order and loops
  • Stedi's X12 004010 reference for the 310 lists the segments, elements and code values for release 004010
  • The UN/LOCODE list maintained by UNECE supplies the five-character location codes (such as CNSHA for Shanghai and USLAX for Los Angeles) most carriers send in the R4 port segments
  • The BIC container prefix register governs the four-letter owner codes used in container numbers under ISO 6346, which appear in the N7 segment
  • Each ocean carrier publishes its own 310 implementation guide, which sets the reference numbers it sends, its charge codes and whether the 310 is a draft, a final B/L or an invoice

Who sends it? The ocean carrier, or an NVOCC acting as carrier to its own customers.

Who receives it? The party that booked the cargo or pays the freight: a shipper on prepaid exports, a consignee or importer on collect shipments, or the forwarder or NVOCC managing the move for them.

When is it sent? After the shipping instructions are received and the carrier has issued or drafted the bill of lading. Carriers often send a new 310 when the B/L is amended or when charges change.

Why does it matter? The bill of lading is the document that controls release of the cargo at destination. A wrong consignee, container number or port on the 310 means a B/L amendment. A wrong charge means an invoice dispute. Both are cheaper to catch on the 310 than after the vessel arrives.

The Ocean Document Flow: 300, 301, 304, 310 and 315

Ocean EDI has its own family of transaction sets, separate from the motor-carrier sets most shippers know. The ones you will meet on a typical full-container-load move:

SetX12 nameUsually sent byWhat it does
300Reservation (Booking Request) (Ocean)Shipper, forwarder or NVOCCAsks the carrier for space: ports, dates, container count and type, commodity
301Confirmation (Ocean)Ocean carrierConfirms or changes the booking and returns the booking number
303Booking Cancellation (Ocean)Shipper, forwarder or NVOCCCancels a booking
304Shipping InstructionsShipper, forwarder or NVOCCGives the carrier the details for the bill of lading: parties, containers, seals, cargo description
310Freight Receipt and Invoice (Ocean)Ocean carrierReturns the bill of lading data and the freight charges
315Status Details (Ocean)Ocean carrierReports container events from empty pickup to empty return. See the EDI 315 guide
312Arrival Notice (Ocean)Ocean carrierTells the consignee or notify party the cargo is arriving

A typical sequence runs: 300 booking request, 301 confirmation with the booking number, empty container pickup and gate-in (reported on 315s), 304 shipping instructions before the documentation cutoff, 310 with the bill of lading and charges, then 315 events for loading, departure, arrival, discharge and release. Carriers differ in which sets they support and whether they send them directly or through a carrier portal or network, so treat the sequence as typical rather than fixed.

The booking number from the 301 and the bill of lading number from the 310 are the two references that tie everything together. Store both against your purchase orders.

Interactive Example: 310 for Two 40-Foot Containers, Freight Collect

An ocean carrier (SCAC BLUQ) bills a US importer for two 40-foot high cube containers of wooden furniture parts moving from Shanghai to Los Angeles, with final delivery to the importer's warehouse in Ontario, California. The freight is collect, so the consignee pays. The N9 segments carry the bill of lading, booking and purchase order numbers. V1 names the vessel and voyage. The R4 loops give the place of receipt, port of loading (with the actual departure date), port of discharge (with the estimated arrival) and place of delivery. Each container has an N7 with its seal in M7, the cargo is described once in L0 and L5, and the L1 lines bill ocean freight and bunker per container plus a documentation charge. L3 closes with the total. All names, numbers and codes for the parties, carrier, vessel and containers are fictional.

Use the Plain English tab for a readable summary, or click any segment to break it down element by element.

Live exampleOcean CarrierEDI 310

Ocean Carrier 310 Freight Receipt and Invoice (Collect, 2 x 40ft HC)

An ocean bill of lading and freight invoice for two 40-foot high cube containers from Shanghai to Los Angeles: B/L and booking numbers in N9, vessel and voyage in V1, shipper, consignee and notify party, the four routing points in R4, containers and seals in N7/M7, cargo in L0/L5, and ocean freight, bunker and documentation charges in L1, totalled in L3

Document
310 Freight Receipt and Invoice (Ocean)
From / to
BLUQ → CASCADEHOMEIMP
Segments
38
Interchange date
Nov 5, 2026

Raw EDI (X12)

1
ISA*00* *00* *02*BLUQ *ZZ*CASCADEHOMEIMP *261105*0940*U*00401*000003101*0*P*>~
2
GS*IO*BLUQ*CASCADEHOMEIMP*20261105*0940*3101*X*004010~
3
ST*310*0001~
4
B3**FI-26110455**CC*K*20261105*576500****BLUQ~
5
N9*BM*BLUQSHA2611045~
6
N9*BN*BK7730412~
7
N9*PO*4500918832~
8
V1*9700017*MERIDIAN HARBOR*LR*118E*BLUQ***L~
9
C3*USD~
10
N1*SH*LINHAI WOODCRAFT CO LTD~
11
N3*88 HARBOUR INDUSTRIAL RD~
12
N4*SHANGHAI**201800*CN~
13
N1*CN*CASCADE HOME IMPORTS LLC~
14
N3*2200 COMMERCE WAY~
15
N4*ONTARIO*CA*91761*US~
16
N1*N1*PACIFIC GATEWAY CUSTOMS BROKERS~
17
N3*400 OCEAN BLVD STE 210~
18
N4*LONG BEACH*CA*90802*US~
19
R4*R*UN*CNSHA*SHANGHAI*CN~
20
R4*L*UN*CNSHA*SHANGHAI*CN~
21
DTM*370*20261104~
22
R4*D*UN*USLAX*LOS ANGELES*US~
23
DTM*371*20261119~
24
R4*E*UN*USONT*ONTARIO*US~
25
LX*1~
26
N7*QXZU*412873*9210*G*******CN******K*2****45G1~
27
M7*CN4417203~
28
N7*QXZU*530916*9210*G*******CN******K*5****45G1~
29
M7*CN4417219~
30
L0*1***18420*G*58.4*X*1240*CTN**K~
31
L5*1*WOODEN FURNITURE PARTS~
32
L1*1*2450*PA*490000****COF~
33
L1*2*395*PA*79000****BUA~
34
L1*3*75*LS*7500****DOC~
35
L3*18420*G***576500****58.4*X*1240*K~
36
SE*34*0001~
37
GE*1*3101~
38
IEA*1*000003101~

Human-Readable

Interchange

Sender ID(02)BLUQ
Receiver ID(ZZ)CASCADEHOMEIMP
Date261105
Time0940
Standards IDU
Version00401
Control Number000003101
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDIOIO
SenderBLUQ
ReceiverCASCADEHOMEIMP
Date20261105
Time0940
Control Number3101
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 310

Freight Receipt and Invoice (Ocean)
Transaction Type310
Control Number0001
Segments, ST to SE34
Count in SE0134 (matches)

Segment Detail

B3Beginning Segment for Carrier's Invoice
B302Invoice NumberFI-26110455
B304Shipment Method of PaymentCC
B305Weight Unit CodeK
B306Date20261105
B307Net Amount Due576500
B311Standard Carrier Alpha CodeBLUQ
N9Reference Identification
N901Reference Identification QualifierBM
N902Reference IdentificationBLUQSHA2611045
N9Reference Identification
N901Reference Identification QualifierBN
N902Reference IdentificationBK7730412
N9Reference Identification
N901Reference Identification QualifierPO
N902Reference Identification4500918832
V1Vessel Identification
V101Vessel Code9700017
V102Vessel NameMERIDIAN HARBOR
V103Country CodeLR
V104Flight/Voyage Number118E
V105Standard Carrier Alpha CodeBLUQ
V108Vessel Code QualifierL
C3Currency
C301Currency CodeUSD
N1Party Identification
N101Entity CodeSH
N102NameLINHAI WOODCRAFT CO LTD
N3Party Location
N301Address88 HARBOUR INDUSTRIAL RD
N4Geographic Location
N401CitySHANGHAI
N403Postal Code201800
N404CountryCN
N1Party Identification
N101Entity CodeCN
N102NameCASCADE HOME IMPORTS LLC
N3Party Location
N301Address2200 COMMERCE WAY
N4Geographic Location
N401CityONTARIO
N402State/ProvinceCA
N403Postal Code91761
N404CountryUS
N1Party Identification
N101Entity CodeN1
N102NamePACIFIC GATEWAY CUSTOMS BROKERS
N3Party Location
N301Address400 OCEAN BLVD STE 210
N4Geographic Location
N401CityLONG BEACH
N402State/ProvinceCA
N403Postal Code90802
N404CountryUS
R4Port or Terminal
R401Port or Terminal Function CodeR
R402Location QualifierUN
R403Location IdentifierCNSHA
R404Port NameSHANGHAI
R405Country CodeCN
R4Port or Terminal
R401Port or Terminal Function CodeL
R402Location QualifierUN
R403Location IdentifierCNSHA
R404Port NameSHANGHAI
R405Country CodeCN
DTMDate/Time Reference
DTM01Date Qualifier370
DTM02Date20261104
R4Port or Terminal
R401Port or Terminal Function CodeD
R402Location QualifierUN
R403Location IdentifierUSLAX
R404Port NameLOS ANGELES
R405Country CodeUS
DTMDate/Time Reference
DTM01Date Qualifier371
DTM02Date20261119
R4Port or Terminal
R401Port or Terminal Function CodeE
R402Location QualifierUN
R403Location IdentifierUSONT
R404Port NameONTARIO
R405Country CodeUS
LXAssigned Number
LX01Assigned Number1
N7Equipment Details
N701Equipment InitialQXZU
N702Equipment Number412873
N703Weight9210
N704Weight QualifierG
N711Equipment Description CodeCN
N717Weight Unit CodeK
N718Equipment Number Check Digit2
N722Equipment Type45G1
M7Seal Numbers
M701Seal NumberCN4417203
N7Equipment Details
N701Equipment InitialQXZU
N702Equipment Number530916
N703Weight9210
N704Weight QualifierG
N711Equipment Description CodeCN
N717Weight Unit CodeK
N718Equipment Number Check Digit5
N722Equipment Type45G1
M7Seal Numbers
M701Seal NumberCN4417219
L0Line Item - Quantity and Weight
L001Lading Line Item Number1
L004Weight18420
L005Weight QualifierG
L006Volume58.4
L007Volume Unit QualifierX
L008Lading Quantity1240
L009Packaging Form CodeCTN
L011Weight Unit CodeK
L5Description, Marks and Numbers
L501Lading Line Item Number1
L502Lading DescriptionWOODEN FURNITURE PARTS
L1Rate and Charges
L101Lading Line Item Number1
L102Freight Rate2450
L103Rate/Value QualifierPA
L104Charge490000
L108Special Charge or Allowance CodeCOF
L1Rate and Charges
L101Lading Line Item Number2
L102Freight Rate395
L103Rate/Value QualifierPA
L104Charge79000
L108Special Charge or Allowance CodeBUA
L1Rate and Charges
L101Lading Line Item Number3
L102Freight Rate75
L103Rate/Value QualifierLS
L104Charge7500
L108Special Charge or Allowance CodeDOC
L3Total Weight and Charges
L301Weight18420
L302Weight QualifierG
L305Charge576500
L309Volume58.4
L310Volume Unit QualifierX
L311Lading Quantity1240
L312Weight Unit CodeK
1 functional group1 transactionControl #000003101Valid

310 Structure at a Glance

The table follows X12 release 004010 and lists the segments most carriers use. The standard has more (letters of credit, insurance, hazardous materials, export licences), which carriers include only when the shipment needs them.

AreaSegmentNameUsage in the standardNotes
HeadingSTTransaction Set HeaderMandatoryST01 = 310
HeadingB3Beginning Segment for Carrier's InvoiceMandatoryInvoice number, payment terms, date, net amount due, SCAC
HeadingB2ASet PurposeOptionalUsed by some carriers to flag an original, change or cancellation
HeadingN9Reference IdentificationOptional, up to 15B/L, booking, PO and other references
HeadingV1Vessel IdentificationMandatoryVessel code and name, flag, voyage, carrier
HeadingC3CurrencyOptionalCurrency of the charges
Heading loopN1 / N2 / N3 / N4Name and addressMandatory, up to 10Shipper, consignee, notify party and others
Heading loopR4 / DTMPort or Terminal, Date/TimeMandatory, up to 20Receipt, loading, discharge and delivery points, with dates
HeadingK1RemarksOptionalFree-text clauses and remarks
Detail loopLXAssigned NumberMandatory, repeatsOne loop per group of containers and cargo
Detail loopN7Equipment DetailsOptional loopOne per container
Detail loopM7Seal NumbersOptionalUp to four seals per segment
Detail loopL0Line Item: Quantity and WeightOptional loopPiece count, weight and volume
Detail loopL5Description, Marks and NumbersOptionalCargo description and commodity codes
Detail loopL1Rate and ChargesOptional loopOne per charge
SummaryL3Total Weight and ChargesMandatoryTotals for the shipment
SummarySETransaction Set TrailerMandatorySegment count and control number

"Optional" in the standard is often "required" in a carrier's guide. Most carriers send N9 with the B/L number on every 310.

Key Segments Explained

B3: Beginning Segment for Carrier's Invoice

B3**FI-26110455**CC*K*20261105*576500****BLUQ~
ElementNameExampleWhat it means
B302Invoice NumberFI-26110455The carrier's invoice or freight bill number
B303Shipment Identification NumberA shipper-assigned shipment ID, when sent
B304Shipment Method of PaymentCCCC collect, PP prepaid (by seller), TP third party pay, MX mixed
B305Weight Unit CodeKK kilograms, L pounds
B306Date20261105Billing date
B307Net Amount Due576500Total due, with two implied decimals: 5,765.00
B311Standard Carrier Alpha CodeBLUQThe billing carrier's SCAC

Some carriers put the bill of lading number in B302 and send no separate invoice number. Others keep the two apart and send the B/L in N9. The guide says which, and your match logic needs to know before go-live.

N9: Reference Identification

N9*BM*BLUQSHA2611045~
N9*BN*BK7730412~
N9*PO*4500918832~
QualifierMeaningWhy you need it
BMBill of lading numberThe key for release, customs entry and the 315 status feed
BNBooking numberTies the 310 to the 301 booking confirmation
POPurchase order numberTies the containers to your own orders
MBMaster bill of ladingSent when the B/L is a house bill under a master, common with NVOCCs
SIShipper's identifying number for shipmentThe shipper's own shipment reference

V1: Vessel Identification

V1*9700017*MERIDIAN HARBOR*LR*118E*BLUQ***L~
ElementNameExampleWhat it means
V101Vessel Code9700017The vessel's identifying code, here a Lloyd's (IMO) number
V102Vessel NameMERIDIAN HARBORVessel name
V103Country CodeLRCountry of registry (flag)
V104Flight/Voyage Number118EVoyage number
V105Standard Carrier Alpha CodeBLUQThe ocean carrier
V108Vessel Code QualifierLSource of V101: L Lloyd's Register of Shipping, C ship's radio call sign

The standard needs at least one of V101 or V102. Vessel names repeat across fleets, so match on the code when the carrier sends one.

N1 Loop: Shipper, Consignee and Notify Party

N1*SH*LINHAI WOODCRAFT CO LTD~
N1*CN*CASCADE HOME IMPORTS LLC~
N1*N1*PACIFIC GATEWAY CUSTOMS BROKERS~

N101 gives the role: SH shipper, CN consignee, N1 notify party, with N2 for a second notify party and FW for a forwarder when the carrier sends them. These are the names the carrier will print on the bill of lading. Check the consignee and notify party against your 304 shipping instructions on every 310: a consignee error on a B/L is the classic reason cargo cannot be released at destination.

R4 Loop: Port or Terminal

R4*R*UN*CNSHA*SHANGHAI*CN~
R4*L*UN*CNSHA*SHANGHAI*CN~
DTM*370*20261104~
R4*D*UN*USLAX*LOS ANGELES*US~
DTM*371*20261119~
R4*E*UN*USONT*ONTARIO*US~
ElementNameExampleWhat it means
R401Port or Terminal Function CodeLThe role of this location (see below)
R402Location QualifierUNUN means R403 is a UN/LOCODE
R403Location IdentifierCNSHAThe location code
R404Port NameSHANGHAIName
R405Country CodeCNCountry
R406Terminal NameTerminal, when sent

Common R401 values: R place of receipt, L port of loading, D port of discharge, E place of delivery, T transshipment port. The DTM after an R4 dates the event at that location: 370 actual departure date and 371 estimated arrival date in this sample. Other qualifiers you will see include 369 estimated departure and 372 actual arrival, and some carriers use the generic 139 estimated and 140 actual.

N7 and M7: Equipment Details and Seal Numbers

N7*QXZU*412873*9210*G*******CN******K*2****45G1~
M7*CN4417203~
ElementNameExampleWhat it means
N701Equipment InitialQXZUThe four-letter owner prefix of the container number
N702Equipment Number412873The six-digit serial number
N703Weight9210Weight of the container's contents
N704Weight QualifierGG gross weight
N711Equipment Description CodeCNCN container
N717Weight Unit CodeKKilograms
N718Equipment Number Check Digit2The ISO 6346 check digit
N722Equipment Type45G1A four-character equipment type code; 45G1 is the ISO 6346 size-type code for a 40-foot high cube general-purpose container
M701Seal NumberCN4417203The seal on that container

Put the prefix, serial and check digit together and you get the container number as it is painted on the box: QXZU4128732. Some carriers send the check digit inside N702 instead of N718. Which equipment type codes a carrier sends in N722 (ISO size-type codes or older four-digit codes) is set by its guide. Seal numbers matter because a seal mismatch at the terminal or at customs examination is a hold.

L0 and L5: Quantity, Weight and Description

L0*1***18420*G*58.4*X*1240*CTN**K~
L5*1*WOODEN FURNITURE PARTS~
ElementNameExampleWhat it means
L001Lading Line Item Number1Line number, shared with L5 and L1
L004 / L005Weight, Weight Qualifier18420 / GGross weight
L006 / L007Volume, Volume Unit Qualifier58.4 / XX cubic meters, E cubic feet
L008 / L009Lading Quantity, Packaging Form Code1240 / CTN1,240 cartons
L011Weight Unit CodeKKilograms
L502Lading DescriptionWOODEN FURNITURE PARTSThe cargo description that will appear on the B/L

L5 can also carry a commodity code with its qualifier, such as a Harmonized Tariff Schedule number (L504 = A) or a Schedule B number (J), and marks and numbers in L506.

L1: Rate and Charges

L1*1*2450*PA*490000****COF~
L1*2*395*PA*79000****BUA~
L1*3*75*LS*7500****DOC~
ElementNameExampleWhat it means
L101Lading Line Item Number1Charge line number
L102Freight Rate2450The rate
L103Rate/Value QualifierPAHow the rate applies: PA per container, PE per TEU, LS lump sum
L104Charge490000The charge, two implied decimals: 4,900.00
L108Special Charge or Allowance CodeCOFWhat the charge is
L112Special Charge DescriptionFree-text name, used when no code fits

The X12 code list for L108 includes COF ocean freight, BUA bunker adjustment (with BU2 and BU4 for 20- and 40-foot containers), BSC bunker surcharge, DOC documentation charge, TER terminal charge and DTC destination charge. Carriers do not all use the same codes for the same surcharge, and many send their own charge names in L112. Map each carrier's charge codes to your own freight cost categories once, from its guide, rather than trusting the description text.

L3: Total Weight and Charges

L3*18420*G***576500****58.4*X*1240*K~
ElementNameExampleWhat it means
L301 / L302Weight, Weight Qualifier18420 / GTotal gross weight
L305Charge576500Total charges: 5,765.00
L309 / L310Volume, Volume Unit Qualifier58.4 / XTotal volume
L311Lading Quantity1240Total pieces
L312Weight Unit CodeKKilograms

Check that the L1 charges add up to L305 and to B307. In the sample: 4,900.00 + 790.00 + 75.00 = 5,765.00.

EDI 310 vs 210, 211, 315 and 810

DocumentModeSent byPurpose
310 Freight Receipt and Invoice (Ocean)OceanOcean carrierBill of lading data and ocean freight charges
210 Motor Carrier Freight Details and InvoiceTruckMotor carrierFreight invoice for a truck move
211 Motor Carrier Bill of LadingTruckShipperBill of lading details sent to a motor carrier
315 Status Details (Ocean)OceanOcean carrierContainer status events
214 Shipment Status MessageTruck and other modesCarrierShipment status events
810 Invoicen/aSellerBills the buyer for goods, not transport

The 210 and 310 share segment names (B3, L0, L1, L3, L5), so the mapping work looks familiar if you already audit truck freight. The differences are the ocean-specific pieces: the vessel (V1), the port and place roles (R4), the container and seal detail (N7, M7), and the fact that on ocean freight the same document doubles as the bill of lading. An importer bringing in a container usually sees both: a 310 from the ocean carrier for the port-to-port leg, and a 210 from the drayage or trucking company for the move from the port. Moves inland under the ocean carrier's own bill (as in this sample, with a place of delivery in Ontario, California) can appear on the 310 instead.

Common 310 Errors and How to Prevent Them

ErrorWhat happensPrevention
310 not matched to the bookingCharges sit unapproved; B/L draft goes uncheckedMatch on the booking number (N9*BN) and B/L number (N9*BM), and alert when a booking has no 310 after the documentation cutoff
Consignee or notify party differs from the 304B/L amendment, or cargo cannot be released at destinationCompare every N1 on the 310 with your shipping instructions before the B/L is final
Container or seal mismatchHolds at the terminal, customs questions, wrong containers trackedValidate container numbers with the ISO 6346 check digit and compare N7/M7 with your packing and loading records
Charges do not add upInvoice disputes and short paymentsSum the L1 charges and compare with L3 and B307 on receipt
Unknown charge codesCosts land in the wrong ledger accountKeep a per-carrier table of L108 codes and flag any code that is not in it
Revised 310 overwrites an approved onePaid invoice changes without reviewVersion 310s by B/L number and route changed charges back for approval
Prepaid and collect confusedBoth shipper and consignee think the other is payingRead B304 and check it against the Incoterms on the purchase order
Units misreadWeights off by a factor of 2.2, volumes by 35Always read the weight and volume unit codes; do not assume kilograms or cubic meters

310 Implementation Checklist

Before your first live 310 from an ocean carrier or NVOCC:

  • Get the carrier's 310 implementation guide and confirm the X12 version in GS08 (004010 is common)
  • Confirm whether the 310 is a draft B/L, a final B/L, a freight invoice, or all three, and how a revision is flagged
  • Agree where the B/L number, booking number and invoice number appear
  • List the N9 qualifiers it sends, and make sure your purchase order numbers come through
  • Load its charge codes (L108) and map them to your cost categories
  • Store container numbers with check digits and seals against the purchase orders they carry
  • Decide how 310 data updates your landed cost and how disputes go back to the carrier
  • Link the B/L number to your EDI 315 status feed so the same shipment shows booking, B/L, charges and events together
  • Confirm the 997 you will send back for each 310
  • Test an original, a revision, a prepaid shipment, a collect shipment and a multi-container B/L

If you are building out ocean EDI next to your retail documents, our EDI document types reference shows how transportation sets sit beside the 850 purchase order, the 856 ASN and the 810 invoice. For background on the paper document, see our bill of lading glossary entry.

Where OrderSync Fits

Every container on a 310 started as a purchase order. The PO number in N9, the cargo in L5 and the quantities the importer expects to receive all depend on that order being captured correctly in the first place, whether it arrived as an EDI 850, a PDF, an email or a spreadsheet.

OrderSync reads inbound orders in any format, matches customers, items and units to your catalog, and outputs clean ERP data or valid X12. Paste any 310 into the free EDI inspector to see it parsed segment by segment with a plain-English summary and any structural errors explained, or book a 15-minute walkthrough to see your own orders processed.

Frequently Asked Questions

What is an EDI 310?

The EDI 310 Freight Receipt and Invoice (Ocean) is the X12 transaction an ocean carrier uses to send bill of lading information and freight charges for a shipment. It carries the B/L and booking numbers, vessel and voyage, parties, ports, containers, seals, cargo description and the charges with the total due.

Is the EDI 310 a bill of lading or an invoice?

It can be either or both. The X12 standard allows the 310 to serve as a shipment receipt, a substitute for the paper bill of lading, an information copy, a manifest or a freight invoice. Each carrier's implementation guide says how it uses the 310 and how it marks drafts and revisions.

What is the difference between EDI 310 and EDI 210?

The 210 is the motor carrier freight invoice for truck moves. The 310 is the ocean equivalent and also carries bill of lading data: vessel and voyage, ports, container numbers and seals. Both use the B3, L0, L1 and L3 segments for references, quantities and charges.

Who sends and receives the EDI 310?

The ocean carrier, or an NVOCC acting as carrier, sends it. The shipper receives it on prepaid freight, the consignee or importer on collect freight, and forwarders and NVOCCs receive it for the shipments they manage.

How does the 310 relate to the 300, 301 and 304?

The 300 requests a booking and the 301 confirms it with a booking number. The 304 sends the shipping instructions for the bill of lading. The 310 comes back from the carrier with the B/L data and the charges, usually referencing the booking number so you can match it.

Where is the container number in a 310?

In the N7 segment inside the LX loop. N701 is the four-letter owner prefix, N702 is the serial number and N718, when sent, is the check digit. Seal numbers follow in M7.

What functional group and version does the 310 use?

The 310 travels in functional group IO, the value in GS01. Many carrier guides use X12 release 004010, and the version for a given carrier is named in GS08.

How do I check the charges on a 310?

Add the L1 charge amounts and compare the sum with L305 in the L3 segment and with B307, the net amount due. Then check each charge code in L108 against the rate you agreed with the carrier.

James Darby
Last updated: 11/4/2026

Related Resources