MercuryGate
/
Motor Carrier Freight Details and Invoice
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from MercuryGate. Contact MercuryGate for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
MercuryGate logo

X12 210 Motor Carrier Freight Details and Invoice

X12 Release 4010

This Draft Standard for Trial Use contains the format and establishes the data contents of the Motor Carrier Freight Details and Invoice Transaction Set (210) for use within the context of an Electronic Data Interchange (EDI) environment.
The transaction set can be used to provide detail information for charges for services rendered by a motor carrier. It is used both as a motor carrier invoice to request payment or as details pertaining to motor freight shipment(s) charges.

Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI samples
  • Sample from Mercury Gate - 1
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/mercurygate/motor-carrier-freight-details-and-invoice/01H9K4GM37QNA1MBHNZQ40CXR2
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
G62
070
Date/Time
Max use 6
Required
R3
080
Route Information - Motor
Max use 12
Required
Consignee
detail
0300 Loop
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
ISA

Interchange Control Header

RequiredMax use 1

To start and identify an interchange of zero or more functional groups and interchange-related control segments

Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)

Code to identify the type of information in the Authorization Information

00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10

Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)

ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)

Code to identify the type of information in the Security Information

00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10

This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)

ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2

Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15

Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element

ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2

Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15

Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them

ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format

Date of the interchange

ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format

Time of the interchange

ISA-11
I10
Interchange Control Standards Identifier
Required
Identifier (ID)

Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer

U
U.S. EDI Community of ASC X12, TDCC, and UCS
ISA-12
I11
Interchange Control Version Number
Required
Identifier (ID)

This version number covers the interchange control segments

00401
Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

A control number assigned by the interchange sender

ISA-14
I13
Acknowledgment Requested
Required
Identifier (ID)
Min 1Max 1

Code sent by the sender to request an interchange acknowledgment (TA1)

0
No Acknowledgment Requested
1
Interchange Acknowledgment Requested
ISA-15
I14
Usage Indicator
Required
Identifier (ID)
Min 1Max 1

Code to indicate whether data enclosed by this interchange envelope is test, production or information

I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Element Separator
Required
String (AN)
Min 1Max 1

Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator

>
Component Element Separator

Functional Group Header

RequiredMax use 1

To indicate the beginning of a functional group and to provide control information

Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)

Code identifying a group of application related transaction sets

IM
Motor Carrier Freight Details and Invoice (210, 980)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15

Code identifying party sending transmission; codes agreed to by trading partners

GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15

Code identifying party receiving transmission. Codes agreed to by trading partners

Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Assigned number originated and maintained by the sender

GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2

Code used in conjunction with Data Element 480 to identify the issuer of the standard

T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)

Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed

004010
Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1997

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1

To indicate the start of a transaction set and to assign a control number

Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)

Code uniquely identifying a Transaction Set

  • The transaction set identifier (ST01) used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
210
Motor Carrier Freight Details and Invoice
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

B3
020
Heading > B3

Beginning Segment for Carrier's Invoice

RequiredMax use 1

To transmit basic data relating to the carrier's invoice

Example
If either Delivery Date (B3-09) or Date/Time Qualifier (B3-10) is present, then the other is required
B3-01
147
Shipment Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code defining relationship of this shipment with respect to other shipments given to the carrier at the same time

Usage notes

Not used by Default MercuryGate Importer

B3-02
76
Invoice Number
Required
String (AN)
Min 1Max 22

Identifying number assigned by issuer

B3-03
145
Shipment Identification Number
Required
String (AN)
Min 1Max 30

Identification number assigned to the shipment by the shipper that uniquely identifies the shipment from origin to ultimate destination and is not subject to modification; (Does not contain blanks or special characters)

Usage notes

MercuryGate uses the Bill of Lading number with NO DASHES as the Shipment ID.

B3-04
146
Shipment Method of Payment
Required
Identifier (ID)

Code identifying payment terms for transportation charges

CC
Collect
PP
Prepaid (by Seller)
B3-05
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1

Code specifying the weight unit

Usage notes

Not used by Default MercuryGate Importer

Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

  • B306 is the billing date.
B3-07
193
Net Amount Due
Required
Numeric (N2)
Min 1Max 12

Total charges to be paid by the receiver of this transaction set expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

B3-08
202
Correction Indicator
Optional
Identifier (ID)
Min 2Max 2

Code used to indicate that the transaction set contains information which corrects previous information

Usage notes

Not used by Default MercuryGate Importer

B3-09
32
Delivery Date
Optional
Date (DT)
CCYYMMDD format

Date for delivery of cargo to final consignee or to next mode expressed in format CCYYMMDD

  • On collect freight bills the data in B309 will be the actual delivery date. For the shipments invoiced prior to delivery, the B309 will be the estimated date of delivery.
B3-10
374
Date/Time Qualifier
Optional
Identifier (ID)
Min 3Max 3

Code specifying type of date or time, or both date and time

Usage notes

Not used by Default MercuryGate Importer

B3-11
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4

Standard Carrier Alpha Code

Optional
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

B3-13
375
Tariff Service Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the types of services for rating purposes

Usage notes

Not used by Default MercuryGate Importer

B3-14
335
Transportation Terms Code
Optional
Identifier (ID)
Min 3Max 3

Code identifying the trade terms which apply to the shipment transportation responsibility

  • If B314 is used, B304 will indicate the party or parties responsible for payment of the transportation terms identified in B314.
Usage notes

Not used by Default MercuryGate Importer

G62
070
Heading > G62

Date/Time

RequiredMax use 6

To specify pertinent dates and times

Usage notes

The G62 segment should be sent with a Date Qualifier of "11" followed
by the date shipped.

Example
If either Time Qualifier (G62-03) or Time (G62-04) is present, then the other is required
G62-01
432
Date Qualifier
Required
Identifier (ID)

Code specifying type of date

Usage notes

MercuryGate requires code "11" specifying "shipped on this date

11
Shipped on This Date
Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

Usage notes

Ship date.

G62-03
176
Time Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code specifying the reported time

Usage notes

Not used by Default MercuryGate Importer

Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

Usage notes

Not used by Default MercuryGate Importer

G62-05
623
Time Code
Optional
Identifier (ID)

Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow

Usage notes

Not used by Default MercuryGate Importer

LT
Local Time
R3
080
Heading > R3

Route Information - Motor

RequiredMax use 12

To specify carrier and routing sequences and details

Example
R3-01
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4

Standard Carrier Alpha Code

R3-02
133
Routing Sequence Code
Required
Identifier (ID)

Code describing the relationship of a carrier to a specific shipment movement

B
Origin/Delivery Carrier (Any Mode)
R3-03
19
City Name
Optional
String (AN)
Min 2Max 30

Free-form text for city name

  • R303 is the station or city name at which carriers interchange shipments
R3-04
91
Transportation Method/Type Code
Optional
Identifier (ID)

Code specifying the method or type of transportation for the shipment

A
Air
LT
Less Than Trailer Load (LTL)
M
Motor (Common Carrier)
MP
Motor (Package Carrier)
O
Containerized Ocean
R
Rail
X
Intermodal (Piggyback)
0100 Consignee
RequiredMax >1
Variants (all may be used)
Shipper
N1
110
Heading > Consignee > N1

Name

RequiredMax use 1

To identify a party by type of organization, name, and code

Usage notes

The N1-N4 loop should be sent twice. Once to identify the shipper and
once to identify the consignee

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
N1-01
98
Entity Identifier Code
Required
Identifier (ID)

Code identifying an organizational entity, a physical location, property or an individual

CN
Consignee

Information relative to the destination of shipment.

Optional
String (AN)
Min 1Max 60

Free-form name

N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code designating the system/method of code structure used for Identification Code (67)

Usage notes

Not used by Default MercuryGate Importer

N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80

Code identifying a party or other code

  • This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
N1-05
706
Entity Relationship Code
Optional
Identifier (ID)
Min 2Max 2

Code describing entity relationship

  • N105 and N106 further define the type of entity in N101.
Usage notes

Not used by Default MercuryGate Importer

N1-06
98
Entity Identifier Code
Optional
Identifier (ID)
Min 2Max 3

Code identifying an organizational entity, a physical location, property or an individual

Usage notes

Not used by Default MercuryGate Importer

N2
120
Heading > Consignee > N2

Additional Name Information

OptionalMax use 1

To specify additional names or those longer than 35 characters in length

Usage notes

Not used by Default MercuryGate Importer

Example
Required
String (AN)
Min 1Max 60

Free-form name

Optional
String (AN)
Min 1Max 60

Free-form name

N3
130
Heading > Consignee > N3

Address Information

OptionalMax use 2

To specify the location of the named party

Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55

Address information

N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55

Address information

N4
140
Heading > Consignee > N4

Geographic Location

RequiredMax use 1

To specify the geographic place of the named party

Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N4-01
19
City Name
Required
String (AN)
Min 2Max 30

Free-form text for city name

  • A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2

Code (Standard State/Province) as defined by appropriate government agency

  • N402 is required only if city name (N401) is in the U.S. or Canada.
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15

Code defining international postal zone code excluding punctuation and blanks (zip code for United States)

N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3

Code identifying the country

N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code identifying type of location

Usage notes

Not used by Default MercuryGate Importer

N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30

Code which identifies a specific location

Usage notes

Not used by Default MercuryGate Importer

0100 Consignee end
0100 Shipper
RequiredMax >1
Variants (all may be used)
Consignee
N1
110
Heading > Shipper > N1

Name

RequiredMax use 1

To identify a party by type of organization, name, and code

Usage notes

The N1-N4 loop should be sent twice. Once to identify the shipper and
once to identify the consignee

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
N1-01
98
Entity Identifier Code
Required
Identifier (ID)

Code identifying an organizational entity, a physical location, property or an individual

SH
Shipper
Optional
String (AN)
Min 1Max 60

Free-form name

N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code designating the system/method of code structure used for Identification Code (67)

Usage notes

Not used by Default MercuryGate Importer

N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80

Code identifying a party or other code

  • This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
N1-05
706
Entity Relationship Code
Optional
Identifier (ID)
Min 2Max 2

Code describing entity relationship

  • N105 and N106 further define the type of entity in N101.
Usage notes

Not used by Default MercuryGate Importer

N1-06
98
Entity Identifier Code
Optional
Identifier (ID)
Min 2Max 3

Code identifying an organizational entity, a physical location, property or an individual

Usage notes

Not used by Default MercuryGate Importer

N2
120
Heading > Shipper > N2

Additional Name Information

OptionalMax use 1

To specify additional names or those longer than 35 characters in length

Usage notes

Not used by Default MercuryGate Importer

Example
Required
String (AN)
Min 1Max 60

Free-form name

Optional
String (AN)
Min 1Max 60

Free-form name

N3
130
Heading > Shipper > N3

Address Information

OptionalMax use 2

To specify the location of the named party

Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55

Address information

N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55

Address information

N4
140
Heading > Shipper > N4

Geographic Location

RequiredMax use 1

To specify the geographic place of the named party

Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N4-01
19
City Name
Required
String (AN)
Min 2Max 30

Free-form text for city name

  • A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2

Code (Standard State/Province) as defined by appropriate government agency

  • N402 is required only if city name (N401) is in the U.S. or Canada.
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15

Code defining international postal zone code excluding punctuation and blanks (zip code for United States)

N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3

Code identifying the country

N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code identifying type of location

Usage notes

Not used by Default MercuryGate Importer

N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30

Code which identifies a specific location

Usage notes

Not used by Default MercuryGate Importer

0100 Shipper end
Heading end

Detail

0300 Loop
OptionalMax 999
S5
010
Detail > 0300 Loop > S5

Stop Off Details

RequiredMax use 1

To specify stop-off detail reference numbers and stop reason

  • Loops 0300, 0305, 0310 and 0320 shall only be used to identify all stop-off locations and associated data for loading and unloading of freight with the exception of the original stop-off location (shipper) for truckload carriers.
    The original stop-off location (shipper) shall be transmitted in loop 0100.
Usage notes
## The S5 and N4 segments are required whenever there is a special charge code of:
## SOC - Stop Off Charge

TRF - Transfer Charge

Example
S5-01
165
Stop Sequence Number
Required
Numeric (N0)
Min 1Max 3

Identifying number for the specific stop and the sequence in which the stop is to be performed

S5-02
163
Stop Reason Code
Required
Identifier (ID)

Code specifying the reason for the stop

CL
Complete
CU
Complete Unload
PL
Part Load
PU
Part Unload
0310 Loop
OptionalMax 2
N1
050
Detail > 0300 Loop > 0310 Loop > N1

Name

RequiredMax use 1

To identify a party by type of organization, name, and code

Usage notes

Not used by Default MercuryGate Importer

The N1 is optional. It would contain the name information for the stop or
pickup

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
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
Min 2Max 3

Code identifying an organizational entity, a physical location, property or an individual

Optional
String (AN)
Min 1Max 60

Free-form name

N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code designating the system/method of code structure used for Identification Code (67)

N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80

Code identifying a party or other code

  • This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
N1-05
706
Entity Relationship Code
Optional
Identifier (ID)
Min 2Max 2

Code describing entity relationship

  • N105 and N106 further define the type of entity in N101.
N1-06
98
Entity Identifier Code
Optional
Identifier (ID)
Min 2Max 3

Code identifying an organizational entity, a physical location, property or an individual

N4
080
Detail > 0300 Loop > 0310 Loop > N4

Geographic Location

OptionalMax use 1

To specify the geographic place of the named party

Usage notes

Not used by Default MercuryGate Importer

If the S5 segment is sent due to a special charge code of, SOC, , or TRF, the N4 segment must be sent specifying the city and state of the stop-off.

Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N4-01
19
City Name
Required
String (AN)
Min 2Max 30

Free-form text for city name

  • A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2

Code (Standard State/Province) as defined by appropriate government agency

  • N402 is required only if city name (N401) is in the U.S. or Canada.
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15

Code defining international postal zone code excluding punctuation and blanks (zip code for United States)

N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3

Code identifying the country

N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code identifying type of location

N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30

Code which identifies a specific location

0310 Loop end
0300 Loop end
0400 Loop
RequiredMax 9999
LX
120
Detail > 0400 Loop > LX

Assigned Number

RequiredMax use 1

To reference a line number in a transaction set

Example
LX-01
554
Assigned Number
Required
Numeric (N0)
Min 1Max 6

Number assigned for differentiation within a transaction set

L0
170
Detail > 0400 Loop > L0

Line Item - Quantity and Weight

OptionalMax use 10

To specify quantity, weight, volume, and type of service for a line item including applicable "quantity/rate-as" data

Usage notes

Only one L0 segment should be sent for the entire Freight bill

Example
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 either Quantity (L0-13) or Yes/No Condition or Response Code (L0-15) is present, then the other is required
L0-01
213
Lading Line Item Number
Required
Numeric (N0)
Min 1Max 3

Sequential line number for a lading item

Usage notes

The same number should be used for related lines in the L1 segment

Not used by Default MercuryGate Importer

L0-02
220
Billed/Rated-as Quantity
Required
Decimal number (R)
Min 1Max 11

Basis for rating (miles, value, volume, etc.); Note: Weight may be defined by either data element 220 or 81

Usage notes

Minimum weight, actual weight, or actual miles - whichever is applicable. This factor is used in the calculation of charges.

Not used by Default MercuryGate Importer

L0-03
221
Billed/Rated-as Qualifier
Required
Identifier (ID)

Code identifying the type of quantity or value on which the rate or item pricing is based

Usage notes

Basis for rate qualifier.

Not used by Default MercuryGate Importer

DM
Miles
FR
Flat Rate
LC
100 Pounds
L0-04
81
Weight
Required
Decimal number (R)
Min 1Max 10

Numeric value of weight

Usage notes

Actual shipment weight in pounds.
The L004 (Weight) and L005 (Weight Qualifier) elements identify actual gross weight of the shipment and should be present regardless of how the freight bill is being charged

L0-05
187
Weight Qualifier
Required
Identifier (ID)

Code defining the type of weight

Usage notes

Gross weight of the shipment as stated on the Bill of Lading.

Not used by Default MercuryGate Importer

G
Gross Weight
L0-06
183
Volume
Optional
Decimal number (R)
Min 1Max 8

Value of volumetric measure

Usage notes

Not used by Default MercuryGate Importer

L0-07
184
Volume Unit Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code identifying the volume unit

Usage notes

Not used by Default MercuryGate Importer

L0-08
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7

Number of units (pieces) of the lading commodity

  • L008 is the number of handling units of the line item tendered to the carrier.
L0-09
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3

Code for packaging form of the lading quantity

L0-10
458
Dunnage Description
Optional
String (AN)
Min 2Max 25

Material used to protect lading

Usage notes

Not used by Default MercuryGate Importer

L0-11
188
Weight Unit Code
Required
Identifier (ID)

Code specifying the weight unit

Usage notes

Indicates the weight specified in the L004 element stated in pounds.

Not used by Default MercuryGate Importer

L
Pounds
L0-12
56
Type of Service Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying extent of transportation service requested

Usage notes

Not used by Default MercuryGate Importer

L0-13
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

  • L013 can only be used if the code in L009 is PLT, SKD, or SLP.
  • L013 is used to convey the total number of boxes, cartons, or pieces contained on a pallet, skid, or slip sheet for the line item.
Usage notes

Not used by Default MercuryGate Importer

L0-14
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3

Code for packaging form of the lading quantity

Usage notes

Not used by Default MercuryGate Importer

L0-15
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)
Min 1Max 1

Code indicating a Yes or No condition or response

  • L015 designates whether the carrier will be required to verify the number of units contained on a pallet, slip sheet or skid. Code "Y" indicates that the carrier will be required to verify. Code "N" indicates that the carrier will not be required to verify.
Usage notes

Not used by Default MercuryGate Importer

L1
180
Detail > 0400 Loop > L1

Rate and Charges

RequiredMax use 10

To specify rate and charges detail relative to a line item including freight charges, advances, special charges, and entitlements

Usage notes

The L1 segment may be repeated up to 10 times, once for every line item charge on the bill. It must be sent at least once with the freight rate. It should be repeated for each separate special charge

Example
If either Declared Value (L1-14) or Rate/Value Qualifier (L1-15) is present, then the other is required
If either Billed/Rated-as Quantity (L1-17) or Billed/Rated-as Qualifier (L1-18) is present, then the other is required
If either Freight Rate (L1-02) or Rate/Value Qualifier (L1-03) is present, then the other is required
L1-01
213
Lading Line Item Number
Required
Numeric (N0)
Min 1Max 3

Sequential line number for a lading item

Usage notes

The same number should be used for related line numbers in the L0 segment.

Not used by Default MercuryGate Importer

L1-02
60
Freight Rate
Optional
Decimal number (R)
Min 1Max 9

Rate that applies to the specific commodity

Usage notes

Rate or charge used in determining line haul or special charges. If a decimal point is required, it must be physically sent (this may be omitted for special charges).

L1-03
122
Rate/Value Qualifier
Optional
Identifier (ID)

Code qualifying how to extend charges or interpret value

Usage notes

If L003 = 'FR', then L103 = 'FR' or 'MN'.
If L003 = 'DM', then L103 = 'PM'.
If L003 = 'LC', then L103 = 'PH'. The L102 rate should be the rate per hundred pounds.

For special charges, this can be omitted or set to 'FR

FR
Flat Rate
MN
Minimum
PH
Per Hundred (of Basic Unit)
PM
Per Mile
L1-04
58
Charge
Required
Numeric (N2)
Min 1Max 12

For a line item: freight or special charge; for the total invoice: the total charges -- expressed in the standard monetary denomination for the currency specified

Usage notes

This field has 2 implied decimals. For example, a charge of
$500.00 would be sent as 50000.

L1-05
191
Advances
Optional
Numeric (N2)
Min 1Max 9

Incidental charges occurring during transportation which are not generally considered to be freight charges (examples - stop charges, diversion and reconsignment, icing) expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

L1-06
117
Prepaid Amount
Optional
Numeric (N2)
Min 1Max 9

Money paid at point of origin (usually by shipper) expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

L1-07
120
Rate Combination Point Code
Optional
String (AN)
Min 3Max 9

The code denoting the connecting station for a joint rate obtained by combining two or more published rates which are used for the calculation of transportation charges

Usage notes

Not used by Default MercuryGate Importer

L1-08
150
Special Charge or Allowance Code
Optional
Identifier (ID)

Code identifying type of special charge or allowance

Usage notes

This field is required whenever there is a special charge code.
The only special charge codes accepted by MercuryGate are:

405
Fuel Surcharge
CLN
Cleaning Charge
CUA
Currency Adjustment
DTU
Detention Unloading
EXM
Excess Mileage Charge
LAY
Layover Charges
MIL
Special Mileage Movements
SOC
Stop-off Charge
TAY
Governmental Tax
TER
Terminal Charge
TRF
Transfer Charge
TTL
Local Tax
UND
Unloading
L1-09
121
Rate Class Code
Optional
Identifier (ID)
Min 1Max 3

Code identifying specifically designated class of goods; Note: For international air shipments, see IATA Resolution 600k

Usage notes

Not used by Default MercuryGate Importer

L1-10
39
Entitlement Code
Optional
Identifier (ID)
Min 1Max 1

Code identifying entitlement party

Usage notes

Not used by Default MercuryGate Importer

L1-11
16
Charge Method of Payment
Optional
Identifier (ID)
Min 1Max 1

Code defining method of payment

Usage notes

Not used by Default MercuryGate Importer

L1-12
276
Special Charge Description
Optional
String (AN)
Min 2Max 25

Identification of special charge; this data element is used whenever an applicable code cannot be found in data element 150

Usage notes

Not used by Default MercuryGate Importer

L1-13
257
Tariff Application Code
Optional
Identifier (ID)
Min 1Max 1

Code indicating to which traffic a tariff applies

Usage notes

Not used by Default MercuryGate Importer

L1-14
74
Declared Value
Optional
Numeric (N2)
Min 2Max 12

Monetary assigned value expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

L1-15
122
Rate/Value Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code qualifying how to extend charges or interpret value

Usage notes

Not used by Default MercuryGate Importer

L1-16
372
Lading Liability Code
Optional
Identifier (ID)
Min 1Max 1

Code identifying limits of liability

Usage notes

Not used by Default MercuryGate Importer

L1-17
220
Billed/Rated-as Quantity
Optional
Decimal number (R)
Min 1Max 11

Basis for rating (miles, value, volume, etc.); Note: Weight may be defined by either data element 220 or 81

Usage notes

Not used by Default MercuryGate Importer

L1-18
221
Billed/Rated-as Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code identifying the type of quantity or value on which the rate or item pricing is based

Usage notes

Not used by Default MercuryGate Importer

L1-19
954
Percent
Optional
Decimal number (R)
Min 1Max 10

Percentage expressed as a decimal

  • L119 is the percent used to determine the charge in L104.
Usage notes

Not used by Default MercuryGate Importer

L1-20
100
Currency Code
Optional
Identifier (ID)

Code (Standard ISO) for country in whose currency the charges are specified

  • L120, if used, indicates the currency for all monetary amounts in this L1 segment.
CAD
Canadian Dollar
USD
US Dollar
L1-21
610
Amount
Optional
Numeric (N2)
Min 1Max 15

Monetary amount

  • L121 is the origin rated as charge amount.
Usage notes

Not used by Default MercuryGate Importer

0400 Loop end
Detail end

Summary

L3
010
Summary > L3

Total Weight and Charges

RequiredMax use 1

To specify the total shipment in terms of weight, volume, rates, charges, advances, and prepaid amounts applicable to one or more line items

Example
If either Freight Rate (L3-03) or Rate/Value Qualifier (L3-04) is present, then the other is required
If either Volume (L3-09) or Volume Unit Qualifier (L3-10) is present, then the other is required
If either Declared Value (L3-14) or Rate/Value Qualifier (L3-15) is present, then the other is required
L3-01
81
Weight
Required
Decimal number (R)
Min 1Max 10

Numeric value of weight

Usage notes

Total weight.

L3-02
187
Weight Qualifier
Required
Identifier (ID)

Code defining the type of weight

Usage notes

Not used by Default MercuryGate Importer

B
Billed Weight
G
Gross Weight
M
Minimum Weight (for rate)
L3-03
60
Freight Rate
Optional
Decimal number (R)
Min 1Max 9

Rate that applies to the specific commodity

Usage notes

Rate for entire freight bill

Not used by Default MercuryGate Importer

L3-04
122
Rate/Value Qualifier
Optional
Identifier (ID)

Code qualifying how to extend charges or interpret value

Usage notes

Not used by Default MercuryGate Importer

FR
Flat Rate
PH
Per Hundred (of Basic Unit)
PM
Per Mile
L3-05
58
Charge
Required
Numeric (N2)
Min 1Max 12

For a line item: freight or special charge; for the total invoice: the total charges -- expressed in the standard monetary denomination for the currency specified

  • L305 is the total charges.
L3-06
191
Advances
Optional
Numeric (N2)
Min 1Max 9

Incidental charges occurring during transportation which are not generally considered to be freight charges (examples - stop charges, diversion and reconsignment, icing) expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

L3-07
117
Prepaid Amount
Optional
Numeric (N2)
Min 1Max 9

Money paid at point of origin (usually by shipper) expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

L3-08
150
Special Charge or Allowance Code
Optional
Identifier (ID)
Min 3Max 3

Code identifying type of special charge or allowance

Usage notes

Not used by Default MercuryGate Importer

L3-09
183
Volume
Optional
Decimal number (R)
Min 1Max 8

Value of volumetric measure

Usage notes

Not used by Default MercuryGate Importer

L3-10
184
Volume Unit Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code identifying the volume unit

Usage notes

Not used by Default MercuryGate Importer

L3-11
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7

Number of units (pieces) of the lading commodity

Usage notes

Not used by Default MercuryGate Importer

L3-12
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1

Code specifying the weight unit

Usage notes

Not used by Default MercuryGate Importer

L3-13
171
Tariff Number
Optional
String (AN)
Min 1Max 7

Standard tariff number for the tariff which governs the rates applied to the commodity item(s)

Usage notes

Not used by Default MercuryGate Importer

L3-14
74
Declared Value
Optional
Numeric (N2)
Min 2Max 12

Monetary assigned value expressed in the standard monetary denomination for the currency specified

Usage notes

Not used by Default MercuryGate Importer

L3-15
122
Rate/Value Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code qualifying how to extend charges or interpret value

Usage notes

Not used by Default MercuryGate Importer

SE
020
Summary > SE

Transaction Set Trailer

RequiredMax use 1

To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)

Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10

Total number of segments included in a transaction set including ST and SE segments

SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

Summary end

Functional Group Trailer

RequiredMax use 1

To indicate the end of a functional group and to provide control information

Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6

Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element

GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Assigned number originated and maintained by the sender

Interchange Control Trailer

RequiredMax use 1

To define the end of an interchange of zero or more functional groups and interchange-related control segments

Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5

A count of the number of functional groups included in an interchange

IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

A control number assigned by the interchange sender

EDI Samples

Sample from Mercury Gate - 1

ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231101*0134*U*00401*000000001*0*T*>
GS*IM*SENDERGS*RECEIVERGS*20231101*013414*000000001*X*004010
ST*210*0001
B3**1520630*0017628170*PP**20101115*193101****SCAC
G62*11*20101112
R3*SCAC*B**M
N1*SH*MERCURYGATE - DRY
N3*ATTN JOHN DOE
N4*AURORA*IL*605061076*US
N1*CN*MERCURYGATE FT WORTH- DRY
N3*90 TRADE WIND DR E
N4*FORTH WORTH*TX*76177*US
S5*1*CU
N1*CN*MERCURYGATE FT WORTH – DRY
N4*FORT WORTH*TX*76177
LX*1
L0*1*915*DM*37124*G******L
L1*1*1.76*PM*161040
LX*2
L1*2***28365****405****FUEL SURCHARGE
LX*3
L1*3***3696****405****FUEL SURCHARGE
L3*37124*G*1.76*PM*193101*******L
SE*22*0001
GE*1*000000001
IEA*1*000000001

Sample from Mercury Gate - 2

ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231101*0135*U*00401*000000001*0*T*>~
GS*IM*SENDERGS*RECEIVERGS*20231101*013514*000000001*X*004010~
ST*210*0001~
B3**987440L7*0017981390*PP*L*20101210*17850****SCAC~
G62*11*20101209~
R3*SCAC*B**LT~
N1*SH*MERCURYGATE ~
N3*6710 OAKLEY INDUSTRIAL~
N4*UNION CITY*GA*30291*USA~
N1*CN*INTERNATIONAL TRADERS~
N3*2699 HIGHWOOD BLVD~
N4*SMYRNA*TN*37167*USA~
LX*1~
L0*1*2626*FR*2626*G******L~
L1*1*4.88*FR*15000********GROCERY/DRY PRODUCTS~
LX*2~
L0*2*150*FR*150*G******L~
L1*2*19*FR*2850****405****FUEL SURCHARGE~
L3*2626*G***17850~
SE*18*0001~
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.