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
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
Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)
00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10
ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)
00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10
ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15
ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15
ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format
ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format
ISA-11
I10
Interchange Control Standards Identifier
Required
Identifier (ID)
U
U.S. EDI Community of ASC X12, TDCC, and UCS
ISA-12
I11
Interchange Control Version Number
Required
Identifier (ID)
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
ISA-14
I13
Acknowledgment Requested
Required
Identifier (ID)
Min 1Max 1
0
No Acknowledgment Requested
1
Interchange Acknowledgment Requested
ISA-15
I14
Usage Indicator
Required
Identifier (ID)
Min 1Max 1
I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Element Separator
Required
String (AN)
Min 1Max 1
>
Component Element Separator

Functional Group Header

RequiredMax use 1
Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)
IM
Motor Carrier Freight Details and Invoice (210, 980)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15
GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15
Required
Date (DT)
CCYYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9
GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2
T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)
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
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
210
Motor Carrier Freight Details and Invoice
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
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
B3-01
147
Shipment Qualifier
Optional
Identifier (ID)
Min 1Max 1
Usage notes
B3-02
76
Invoice Number
Required
String (AN)
Min 1Max 22
B3-03
145
Shipment Identification Number
Required
String (AN)
Min 1Max 30
Usage notes
B3-04
146
Shipment Method of Payment
Required
Identifier (ID)
CC
Collect
PP
Prepaid (by Seller)
B3-05
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1
Usage notes
Required
Date (DT)
CCYYMMDD format
B3-07
193
Net Amount Due
Required
Numeric (N2)
Min 1Max 12
Usage notes
B3-08
202
Correction Indicator
Optional
Identifier (ID)
Min 2Max 2
Usage notes
B3-09
32
Delivery Date
Optional
Date (DT)
CCYYMMDD format
B3-10
374
Date/Time Qualifier
Optional
Identifier (ID)
Min 3Max 3
Usage notes
B3-11
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4
Optional
Date (DT)
CCYYMMDD format
B3-13
375
Tariff Service Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
B3-14
335
Transportation Terms Code
Optional
Identifier (ID)
Min 3Max 3
Usage notes
G62
070
Heading > G62

Date/Time

RequiredMax use 6
Usage notes
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)
Usage notes
11
Shipped on This Date
Required
Date (DT)
CCYYMMDD format
Usage notes
G62-03
176
Time Qualifier
Optional
Identifier (ID)
Min 1Max 2
Usage notes
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
Usage notes
G62-05
623
Time Code
Optional
Identifier (ID)
Usage notes
LT
Local Time
R3
080
Heading > R3

Route Information - Motor

RequiredMax use 12
Example
R3-01
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4
R3-02
133
Routing Sequence Code
Required
Identifier (ID)
B
Origin/Delivery Carrier (Any Mode)
R3-03
19
City Name
Optional
String (AN)
Min 2Max 30
R3-04
91
Transportation Method/Type Code
Optional
Identifier (ID)
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
Usage notes
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)
CN
Consignee
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2
Usage notes
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
N1-05
706
Entity Relationship Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
N1-06
98
Entity Identifier Code
Optional
Identifier (ID)
Min 2Max 3
Usage notes
N2
120
Heading > Consignee > N2

Additional Name Information

OptionalMax use 1
Usage notes
Example
Required
String (AN)
Min 1Max 60
Optional
String (AN)
Min 1Max 60
N3
130
Heading > Consignee > N3

Address Information

OptionalMax use 2
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
140
Heading > Consignee > N4

Geographic Location

RequiredMax use 1
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
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2
Usage notes
N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30
Usage notes
0100 Consignee end
0100 Shipper
RequiredMax >1
Variants (all may be used)
Consignee
N1
110
Heading > Shipper > N1

Name

RequiredMax use 1
Usage notes
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)
SH
Shipper
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2
Usage notes
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
N1-05
706
Entity Relationship Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
N1-06
98
Entity Identifier Code
Optional
Identifier (ID)
Min 2Max 3
Usage notes
N2
120
Heading > Shipper > N2

Additional Name Information

OptionalMax use 1
Usage notes
Example
Required
String (AN)
Min 1Max 60
Optional
String (AN)
Min 1Max 60
N3
130
Heading > Shipper > N3

Address Information

OptionalMax use 2
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
140
Heading > Shipper > N4

Geographic Location

RequiredMax use 1
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
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2
Usage notes
N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30
Usage notes
0100 Shipper end
Heading end

Detail

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

Stop Off Details

RequiredMax use 1
Usage notes
Example
S5-01
165
Stop Sequence Number
Required
Numeric (N0)
Min 1Max 3
S5-02
163
Stop Reason Code
Required
Identifier (ID)
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
Usage notes
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
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Min 1Max 2
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
N1-05
706
Entity Relationship Code
Optional
Identifier (ID)
Min 2Max 2
N1-06
98
Entity Identifier Code
Optional
Identifier (ID)
Min 2Max 3
N4
080
Detail > 0300 Loop > 0310 Loop > N4

Geographic Location

OptionalMax use 1
Usage notes
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
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2
N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30
0310 Loop end
0300 Loop end
0400 Loop
RequiredMax 9999
LX
120
Detail > 0400 Loop > LX

Assigned Number

RequiredMax use 1
Example
LX-01
554
Assigned Number
Required
Numeric (N0)
Min 1Max 6
L0
170
Detail > 0400 Loop > L0

Line Item - Quantity and Weight

OptionalMax use 10
Usage notes
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
Usage notes
L0-02
220
Billed/Rated-as Quantity
Required
Decimal number (R)
Min 1Max 11
Usage notes
L0-03
221
Billed/Rated-as Qualifier
Required
Identifier (ID)
Usage notes
DM
Miles
FR
Flat Rate
LC
100 Pounds
L0-04
81
Weight
Required
Decimal number (R)
Min 1Max 10
Usage notes
L0-05
187
Weight Qualifier
Required
Identifier (ID)
Usage notes
G
Gross Weight
L0-06
183
Volume
Optional
Decimal number (R)
Min 1Max 8
Usage notes
L0-07
184
Volume Unit Qualifier
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L0-08
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7
L0-09
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3
L0-10
458
Dunnage Description
Optional
String (AN)
Min 2Max 25
Usage notes
L0-11
188
Weight Unit Code
Required
Identifier (ID)
Usage notes
L
Pounds
L0-12
56
Type of Service Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
L0-13
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
Usage notes
L0-14
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3
Usage notes
L0-15
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L1
180
Detail > 0400 Loop > L1

Rate and Charges

RequiredMax use 10
Usage notes
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
Usage notes
L1-02
60
Freight Rate
Optional
Decimal number (R)
Min 1Max 9
Usage notes
L1-03
122
Rate/Value Qualifier
Optional
Identifier (ID)
Usage notes
FR
Flat Rate
MN
Minimum
PH
Per Hundred (of Basic Unit)
PM
Per Mile
L1-04
58
Charge
Required
Numeric (N2)
Min 1Max 12
Usage notes
L1-05
191
Advances
Optional
Numeric (N2)
Min 1Max 9
Usage notes
L1-06
117
Prepaid Amount
Optional
Numeric (N2)
Min 1Max 9
Usage notes
L1-07
120
Rate Combination Point Code
Optional
String (AN)
Min 3Max 9
Usage notes
L1-08
150
Special Charge or Allowance Code
Optional
Identifier (ID)
Usage notes
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
Usage notes
L1-10
39
Entitlement Code
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L1-11
16
Charge Method of Payment
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L1-12
276
Special Charge Description
Optional
String (AN)
Min 2Max 25
Usage notes
L1-13
257
Tariff Application Code
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L1-14
74
Declared Value
Optional
Numeric (N2)
Min 2Max 12
Usage notes
L1-15
122
Rate/Value Qualifier
Optional
Identifier (ID)
Min 2Max 2
Usage notes
L1-16
372
Lading Liability Code
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L1-17
220
Billed/Rated-as Quantity
Optional
Decimal number (R)
Min 1Max 11
Usage notes
L1-18
221
Billed/Rated-as Qualifier
Optional
Identifier (ID)
Min 2Max 2
Usage notes
L1-19
954
Percent
Optional
Decimal number (R)
Min 1Max 10
Usage notes
L1-20
100
Currency Code
Optional
Identifier (ID)
CAD
Canadian Dollar
USD
US Dollar
L1-21
610
Amount
Optional
Numeric (N2)
Min 1Max 15
Usage notes
0400 Loop end
Detail end

Summary

L3
010
Summary > L3

Total Weight and Charges

RequiredMax use 1
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
Usage notes
L3-02
187
Weight Qualifier
Required
Identifier (ID)
Usage notes
B
Billed Weight
G
Gross Weight
M
Minimum Weight (for rate)
L3-03
60
Freight Rate
Optional
Decimal number (R)
Min 1Max 9
Usage notes
L3-04
122
Rate/Value Qualifier
Optional
Identifier (ID)
Usage notes
FR
Flat Rate
PH
Per Hundred (of Basic Unit)
PM
Per Mile
L3-05
58
Charge
Required
Numeric (N2)
Min 1Max 12
L3-06
191
Advances
Optional
Numeric (N2)
Min 1Max 9
Usage notes
L3-07
117
Prepaid Amount
Optional
Numeric (N2)
Min 1Max 9
Usage notes
L3-08
150
Special Charge or Allowance Code
Optional
Identifier (ID)
Min 3Max 3
Usage notes
L3-09
183
Volume
Optional
Decimal number (R)
Min 1Max 8
Usage notes
L3-10
184
Volume Unit Qualifier
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L3-11
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7
Usage notes
L3-12
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1
Usage notes
L3-13
171
Tariff Number
Optional
String (AN)
Min 1Max 7
Usage notes
L3-14
74
Declared Value
Optional
Numeric (N2)
Min 2Max 12
Usage notes
L3-15
122
Rate/Value Qualifier
Optional
Identifier (ID)
Min 2Max 2
Usage notes
SE
020
Summary > SE

Transaction Set Trailer

RequiredMax use 1
Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10
SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
Summary end

Functional Group Trailer

RequiredMax use 1
Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6
GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Interchange Control Trailer

RequiredMax use 1
Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5
IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
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.