MercuryGate
/
Motor Carrier Freight Details and Invoice
  • Specification
  • EDI Inspector
Import guide into your account
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

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
    View the latest version of this implementation guide as an interactive webpage
    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

    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
    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

    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
    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
    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
    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
    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
    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
    YYMMDD format

    Date of the interchange

    ISA-10
    I09
    Interchange Time
    Required
    HHMM format

    Time of the interchange

    ISA-11
    I10
    Interchange Control Standards Identifier
    Required

    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

    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
    Min 9Max 9

    A control number assigned by the interchange sender

    ISA-14
    I13
    Acknowledgment Requested
    Required
    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
    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
    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

    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
    Min 2Max 15

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

    GS-03
    124
    Application Receiver's Code
    Required
    Min 2Max 15

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

    GS-04
    373
    Date
    Required
    CCYYMMDD format

    Date expressed as CCYYMMDD

    GS-05
    337
    Time
    Required
    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
    Min 1Max 9

    Assigned number originated and maintained by the sender

    GS-07
    455
    Responsible Agency Code
    Required
    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

    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

    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

    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
    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

    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
    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
    Min 1Max 22

    Identifying number assigned by issuer

    B3-03
    145
    Shipment Identification Number
    Required
    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

    Code identifying payment terms for transportation charges

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

    Code specifying the weight unit

    Usage notes

    Not used by Default MercuryGate Importer

    B3-06
    373
    Date
    Required
    CCYYMMDD format

    Date expressed as CCYYMMDD

    • B306 is the billing date.
    B3-07
    193
    Net Amount Due
    Required
    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
    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
    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
    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
    Min 2Max 4

    Standard Carrier Alpha Code

    B3-12
    373
    Date
    Optional
    CCYYMMDD format

    Date expressed as CCYYMMDD

    B3-13
    375
    Tariff Service Code
    Optional
    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
    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

    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
    At least one of Date Qualifier (G62-01) or Time Qualifier (G62-03) is required
    If either Time Qualifier (G62-03) or Time (G62-04) is present, then the other is required
    G62-01
    432
    Date Qualifier
    Required

    Code specifying type of date

    Usage notes

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

    11
    Shipped on This Date
    G62-02
    373
    Date
    Required
    CCYYMMDD format

    Date expressed as CCYYMMDD

    Usage notes

    Ship date.

    G62-03
    176
    Time Qualifier
    Optional
    Min 1Max 2

    Code specifying the reported time

    Usage notes

    Not used by Default MercuryGate Importer

    G62-04
    337
    Time
    Optional
    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

    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

    Route Information - Motor

    RequiredMax use 12

    To specify carrier and routing sequences and details

    Example
    R3-01
    140
    Standard Carrier Alpha Code
    Required
    Min 2Max 4

    Standard Carrier Alpha Code

    R3-02
    133
    Routing Sequence Code
    Required

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

    B
    Origin/Delivery Carrier (Any Mode)
    R3-03
    19
    City Name
    Optional
    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

    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)
    0100Shipper
    N1
    110

    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

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

    CN
    Consignee

    Information relative to the destination of shipment.

    N1-02
    93
    Name
    Optional
    Min 1Max 60

    Free-form name

    N1-03
    66
    Identification Code Qualifier
    Optional
    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
    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
    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
    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

    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
    N2-01
    93
    Name
    Required
    Min 1Max 60

    Free-form name

    N2-02
    93
    Name
    Optional
    Min 1Max 60

    Free-form name

    N3
    130

    Address Information

    OptionalMax use 2

    To specify the location of the named party

    Example
    N3-01
    166
    Address Information
    Required
    Min 1Max 55

    Address information

    N3-02
    166
    Address Information
    Optional
    Min 1Max 55

    Address information

    N4
    140

    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
    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
    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
    Min 3Max 15

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

    N4-04
    26
    Country Code
    Optional
    Min 2Max 3

    Code identifying the country

    N4-05
    309
    Location Qualifier
    Optional
    Min 1Max 2

    Code identifying type of location

    Usage notes

    Not used by Default MercuryGate Importer

    N4-06
    310
    Location Identifier
    Optional
    Min 1Max 30

    Code which identifies a specific location

    Usage notes

    Not used by Default MercuryGate Importer

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

    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

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

    SH
    Shipper
    N1-02
    93
    Name
    Optional
    Min 1Max 60

    Free-form name

    N1-03
    66
    Identification Code Qualifier
    Optional
    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
    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
    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
    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

    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
    N2-01
    93
    Name
    Required
    Min 1Max 60

    Free-form name

    N2-02
    93
    Name
    Optional
    Min 1Max 60

    Free-form name

    N3
    130

    Address Information

    OptionalMax use 2

    To specify the location of the named party

    Example
    N3-01
    166
    Address Information
    Required
    Min 1Max 55

    Address information

    N3-02
    166
    Address Information
    Optional
    Min 1Max 55

    Address information

    N4
    140

    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
    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
    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
    Min 3Max 15

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

    N4-04
    26
    Country Code
    Optional
    Min 2Max 3

    Code identifying the country

    N4-05
    309
    Location Qualifier
    Optional
    Min 1Max 2

    Code identifying type of location

    Usage notes

    Not used by Default MercuryGate Importer

    N4-06
    310
    Location Identifier
    Optional
    Min 1Max 30

    Code which identifies a specific location

    Usage notes

    Not used by Default MercuryGate Importer

    Detail

    0300 Loop
    OptionalMax 999
    S5
    010

    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
    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

    Code specifying the reason for the stop

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

    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
    Min 2Max 3

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

    N1-02
    93
    Name
    Optional
    Min 1Max 60

    Free-form name

    N1-03
    66
    Identification Code Qualifier
    Optional
    Min 1Max 2

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

    N1-04
    67
    Identification Code
    Optional
    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
    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
    Min 2Max 3

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

    N4
    080

    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
    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
    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
    Min 3Max 15

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

    N4-04
    26
    Country Code
    Optional
    Min 2Max 3

    Code identifying the country

    N4-05
    309
    Location Qualifier
    Optional
    Min 1Max 2

    Code identifying type of location

    N4-06
    310
    Location Identifier
    Optional
    Min 1Max 30

    Code which identifies a specific location

    0400 Loop
    RequiredMax 9999
    LX
    120

    Assigned Number

    RequiredMax use 1

    To reference a line number in a transaction set

    Example
    LX-01
    554
    Assigned Number
    Required
    Min 1Max 6

    Number assigned for differentiation within a transaction set

    L0
    170

    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
    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
    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

    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
    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

    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
    Min 1Max 8

    Value of volumetric measure

    Usage notes

    Not used by Default MercuryGate Importer

    L0-07
    184
    Volume Unit Qualifier
    Optional
    Min 1Max 1

    Code identifying the volume unit

    Usage notes

    Not used by Default MercuryGate Importer

    L0-08
    80
    Lading Quantity
    Optional
    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
    Min 3Max 3

    Code for packaging form of the lading quantity

    L0-10
    458
    Dunnage Description
    Optional
    Min 2Max 25

    Material used to protect lading

    Usage notes

    Not used by Default MercuryGate Importer

    L0-11
    188
    Weight Unit Code
    Required

    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
    Min 2Max 2

    Code specifying extent of transportation service requested

    Usage notes

    Not used by Default MercuryGate Importer

    L0-13
    380
    Quantity
    Optional
    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
    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
    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

    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
    At least one of Charge (L1-04), Advances (L1-05) or Prepaid Amount (L1-06) is required
    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
    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
    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

    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
    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
    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
    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
    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

    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
    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
    Min 1Max 1

    Code identifying entitlement party

    Usage notes

    Not used by Default MercuryGate Importer

    L1-11
    16
    Charge Method of Payment
    Optional
    Min 1Max 1

    Code defining method of payment

    Usage notes

    Not used by Default MercuryGate Importer

    L1-12
    276
    Special Charge Description
    Optional
    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
    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
    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
    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
    Min 1Max 1

    Code identifying limits of liability

    Usage notes

    Not used by Default MercuryGate Importer

    L1-17
    220
    Billed/Rated-as Quantity
    Optional
    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
    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
    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

    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
    Min 1Max 15

    Monetary amount

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

    Not used by Default MercuryGate Importer

    Summary

    L3
    010

    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 Weight Unit Code (L3-12) is present, then Weight (L3-01) 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
    Min 1Max 10

    Numeric value of weight

    Usage notes

    Total weight.

    L3-02
    187
    Weight Qualifier
    Required

    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
    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

    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
    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
    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
    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
    Min 3Max 3

    Code identifying type of special charge or allowance

    Usage notes

    Not used by Default MercuryGate Importer

    L3-09
    183
    Volume
    Optional
    Min 1Max 8

    Value of volumetric measure

    Usage notes

    Not used by Default MercuryGate Importer

    L3-10
    184
    Volume Unit Qualifier
    Optional
    Min 1Max 1

    Code identifying the volume unit

    Usage notes

    Not used by Default MercuryGate Importer

    L3-11
    80
    Lading Quantity
    Optional
    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
    Min 1Max 1

    Code specifying the weight unit

    Usage notes

    Not used by Default MercuryGate Importer

    L3-13
    171
    Tariff Number
    Optional
    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
    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
    Min 2Max 2

    Code qualifying how to extend charges or interpret value

    Usage notes

    Not used by Default MercuryGate Importer

    SE
    020

    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
    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
    Min 4Max 9

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

    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
    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
    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
    Min 1Max 5

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

    IEA-02
    I12
    Interchange Control Number
    Required
    Min 9Max 9

    A control number assigned by the interchange sender

    EDI Samples

    Sample from Mercury Gate - 1

    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

    Sample from Mercury Gate - 2

    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~

    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.