304Shipping Instructions

This X12 Transaction Set provides the format and establishes the data contents of the Shipping Instructions Transaction Set (304) for use within the context of an Electronic Data Interchange (EDI) environment. When this transaction set is transmitted to an ocean carrier, it provides all the information necessary to prepare and distribute a contract of carriage such as an ocean bill of lading, sea waybill, and other shipping documents. When this transaction set is transmitted to a freight forwarder or customs broker, it provides for the transmission of shipping and financial information required by the forwarder or customs broker to move cargo and provide the services requested.

  • ST
    Transaction Set Header
    M必须(Mandatory)
    Repeat 1

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

  • B2
    Beginning Segment for Shipment Information Transaction
    M必须(Mandatory)
    Repeat 1

    To transmit basic data relating to shipment information

  • B2A
    Set Purpose
    O可选(Optional)
    Repeat 1

    To allow for positive identification of transaction set purpose

  • Y6
    Authentication
    O可选(Optional)
    Repeat 2

    To specify the authority for authorizing an action and the date authentication is made

  • G1
    Shipment Type Information
    O可选(Optional)
    Repeat 1

    To specify the General Commodity (GC) code and any required special indicators for the shipment

  • G2
    Beyond Routing
    O可选(Optional)
    Repeat 1

    To specify routing of a beyond point

  • G3
    Compensation Information
    O可选(Optional)
    Repeat 1

    To convey brokerage, freight forwarder compensation, and other compensation information related to shipments

  • N9
    Extended Reference Information
    O可选(Optional)
    Repeat 100

    To transmit identifying information as specified by the Reference Identification Qualifier

  • YNQ
    Yes/No Question
    O可选(Optional)
    Repeat 10

    To identify and answer yes and no questions, including the date, time, and comments further qualifying the condition

  • V1
    Vessel Identification
    O可选(Optional)
    Repeat 2

    To provide vessel details and voyage number

  • V3
    Vessel Schedule
    O可选(Optional)
    Repeat 1

    To transmit vessel scheduling information

  • M0
    Letter of Credit Reference
    O可选(Optional)
    Repeat 1

    To transmit letter of credit details

  • CUR
    Currency
    O可选(Optional)
    Repeat 1

    To specify the currency (dollars, pounds, francs, etc.) used in a transaction

  • M1Loop1Insurance LOOPO可选(Optional)Repeat 5
    M1CUR
    • M1
      Insurance
      M必须(Mandatory)
      Repeat 1

      To specify details related to insurance

    • CUR
      Currency
      O可选(Optional)
      Repeat 1

      To specify the currency (dollars, pounds, francs, etc.) used in a transaction

  • M2
    Sales/Delivery Terms
    O可选(Optional)
    Repeat 1

    To state terms and dates

  • C2
    Bank ID
    O可选(Optional)
    Repeat 1

    To specify data required for electronic payment

  • ITD
    Terms of Sale/Deferred Terms of Sale
    O可选(Optional)
    Repeat 1

    To specify terms of sale

  • DTM
    Date/Time Reference
    O可选(Optional)
    Repeat 20

    To specify pertinent dates and times

  • N1Loop1Party Identification LOOPO可选(Optional)Repeat 100
    N1N2N3N4G61
    • N1
      Party Identification
      M必须(Mandatory)
      Repeat 1

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

    • N2
      Additional Name Information
      O可选(Optional)
      Repeat 2

      To specify additional names

    • N3
      Party Location
      O可选(Optional)
      Repeat 2

      To specify the location of the named party

    • N4
      Geographic Location
      O可选(Optional)
      Repeat 1

      To specify the geographic place of the named party

    • G61
      Contact
      O可选(Optional)
      Repeat 3

      To identify a person or office to whom communications should be directed

  • R4Loop1Port or Terminal LOOPO可选(Optional)Repeat 20
    R4DTM
    • R4
      Port or Terminal
      M必须(Mandatory)
      Repeat 1

      Contractual or operational port or point relevant to the movement of the cargo

    • DTM
      Date/Time Reference
      O可选(Optional)
      Repeat 15

      To specify pertinent dates and times

  • R2A
    Route Information with Preference
    O可选(Optional)
    Repeat 25

    To specify the responsibilities and carrier preference

  • R2
    Route Information
    O可选(Optional)
    Repeat 13

    To specify carrier and routing sequences and details

  • K1
    Remarks
    O可选(Optional)
    Repeat 12

    To transmit information in a free-form format for comment or special instruction

  • L11
    Business Instructions and Reference Number
    O可选(Optional)
    Repeat 99

    To specify instructions in this business relationship or a reference number

  • H3
    Special Handling Instructions
    O可选(Optional)
    Repeat 6

    To specify special handling instructions in coded or free-form format

  • L5
    Description, Marks and Numbers
    O可选(Optional)
    Repeat 999

    To specify the line item in terms of description, quantity, packaging, and marks and numbers

  • X1
    Export License
    O可选(Optional)
    Repeat 25

    To transmit information contained on an export license

  • X2
    Import License
    O可选(Optional)
    Repeat 5

    To transmit import license number and effective dates

  • C8Loop1Certifications and Clauses LOOPO可选(Optional)Repeat 20
    C8C8CSUP
    • C8
      Certifications and Clauses
      M必须(Mandatory)
      Repeat 1

      To specify applicable certifications and clauses

    • C8C
      Certifications Clauses Continuation
      O可选(Optional)
      Repeat 5

      To specify additional applicable certifications and clauses

    • SUP
      Supplementary Information
      O可选(Optional)
      Repeat 10

      To provide processible supplementary information

  • LXLoop1Transaction Set Line Number LOOPO可选(Optional)Repeat 999
    LXY2N7Loop1L11K1PO4Loop1L0Loop1
    • LX
      Transaction Set Line Number
      M必须(Mandatory)
      Repeat 1

      To reference a line number in a transaction set

    • Y2
      Container Details
      O可选(Optional)
      Repeat 10

      To specify container information and transportation service to be used

    • N7Loop1Equipment Details LOOPO可选(Optional)Repeat 999
      N7QTYL4N12M7M7AW09LH6L1Loop1L7X1X2N9H1Loop1LH1Loop1
      • N7
        Equipment Details
        M必须(Mandatory)
        Repeat 1

        To identify the equipment

      • QTY
        Quantity Information
        O可选(Optional)
        Repeat 1

        To specify quantity information

      • L4
        Measurement
        O可选(Optional)
        Repeat 1

        To describe physical dimensions and quantities

      • N12
        Equipment Environment
        O可选(Optional)
        Repeat 1

        To describe the operating environment of the equipment

      • M7
        Seal Numbers
        O可选(Optional)
        Repeat 5

        To record seal numbers used and the organization that applied the seals

      • M7A
        Seal Number Replacement
        O可选(Optional)
        Repeat 100

        To provide an audit trail of seal number changes

      • W09
        Equipment and Temperature
        O可选(Optional)
        Repeat 1

        To relate equipment type and required temperatures

      • LH6
        Hazardous Certification
        O可选(Optional)
        Repeat 6

        To specify the name of the person certifying that the shipment complies with the regulations and/or the actual certification

      • L1Loop1Rate and Charges LOOPO可选(Optional)Repeat 20
        L1CUR
        • L1
          Rate and Charges
          M必须(Mandatory)
          Repeat 1

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

        • CUR
          Currency
          O可选(Optional)
          Repeat 1

          To specify the currency (dollars, pounds, francs, etc.) used in a transaction

      • L7
        Tariff Reference
        O可选(Optional)
        Repeat 1

        To reference details of the tariff used to arrive at applicable rates or charge

      • X1
        Export License
        O可选(Optional)
        Repeat 25

        To transmit information contained on an export license

      • X2
        Import License
        O可选(Optional)
        Repeat 5

        To transmit import license number and effective dates

      • N9
        Extended Reference Information
        O可选(Optional)
        Repeat 100

        To transmit identifying information as specified by the Reference Identification Qualifier

      • H1Loop1Hazardous Material LOOPO可选(Optional)Repeat 10
        H1H2
        • H1
          Hazardous Material
          M必须(Mandatory)
          Repeat 1

          To specify information relative to hazardous material

        • H2
          Additional Hazardous Material Description
          O可选(Optional)
          Repeat 10

          To specify free-form hazardous material descriptive data in addition to the information provided in the H1 segment

      • LH1Loop1Hazardous Identification Information LOOPO可选(Optional)Repeat 100
        LH1LH2LH3LFHLEPLH4LHTLHRPER
        • LH1
          Hazardous Identification Information
          M必须(Mandatory)
          Repeat 1

          To specify the hazardous commodity identification reference number and quantity

        • LH2
          Hazardous Classification Information
          O可选(Optional)
          Repeat 4

          To specify the hazardous notation and endorsement information

        • LH3
          Hazardous Material Shipping Name Information
          O可选(Optional)
          Repeat 10

          To specify the hazardous material shipping name and additional descriptive requirements

        • LFH
          Free-form Hazardous Material Information
          O可选(Optional)
          Repeat 25

          To uniquely identify the variable information required by government regulation covering the transportation of hazardous material shipments

        • LEP
          EPA Required Data
          O可选(Optional)
          Repeat 3

          To specify the Environmental Protection Agency (EPA) information relating to shipments of hazardous material

        • LH4
          Canadian Dangerous Requirements
          O可选(Optional)
          Repeat 1

          To specify additional Transport Canada requirements covering transportation of dangerous goods in Canada

        • LHT
          Transborder Hazardous Requirements
          O可选(Optional)
          Repeat 3

          To specify the placard information required by the second government agency when shipment is to cross into another country

        • LHR
          Hazardous Material Identifying Reference Numbers
          O可选(Optional)
          Repeat 5

          To transmit specific hazardous material reference numbers

        • PER
          Administrative Communications Contact
          O可选(Optional)
          Repeat 5

          To identify a person or office to whom administrative communications should be directed

    • L11
      Business Instructions and Reference Number
      O可选(Optional)
      Repeat 100

      To specify instructions in this business relationship or a reference number

    • K1
      Remarks
      O可选(Optional)
      Repeat 10

      To transmit information in a free-form format for comment or special instruction

    • PO4Loop1Item Physical Details LOOPO可选(Optional)Repeat 100
      PO4MEAMANN9
      • PO4
        Item Physical Details
        M必须(Mandatory)
        Repeat 1

        To specify the physical qualities, packaging, weights, and dimensions relating to the item

      • MEA
        Measurements
        O可选(Optional)
        Repeat 5

        To specify physical measurements or counts, including dimensions, tolerances, variances, and weights (See Figures Appendix for example of use of C001)

      • MAN
        Marks and Numbers Information
        O可选(Optional)
        Repeat 5

        To indicate identifying marks and numbers for shipping containers

      • N9
        Extended Reference Information
        O可选(Optional)
        Repeat 5

        To transmit identifying information as specified by the Reference Identification Qualifier

    • L0Loop1Line Item - Quantity and Weight LOOPO可选(Optional)Repeat 120
      L0MEAN9PO4Loop2QTYL4LH6PALLoop1CTPLoop1L5LINL12YNQL1Loop2L7SACLoop1L9Loop1X1X2C8Loop2H1Loop2LH1Loop2N1Loop2
      • L0
        Line Item - Quantity and Weight
        M必须(Mandatory)
        Repeat 1

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

      • MEA
        Measurements
        O可选(Optional)
        Repeat 10

        To specify physical measurements or counts, including dimensions, tolerances, variances, and weights (See Figures Appendix for example of use of C001)

      • N9
        Extended Reference Information
        O可选(Optional)
        Repeat 100

        To transmit identifying information as specified by the Reference Identification Qualifier

      • PO4Loop2Item Physical Details LOOPO可选(Optional)Repeat 100
        PO4MEAMANN9
        • PO4
          Item Physical Details
          M必须(Mandatory)
          Repeat 1

          To specify the physical qualities, packaging, weights, and dimensions relating to the item

        • MEA
          Measurements
          O可选(Optional)
          Repeat 5

          To specify physical measurements or counts, including dimensions, tolerances, variances, and weights (See Figures Appendix for example of use of C001)

        • MAN
          Marks and Numbers Information
          O可选(Optional)
          Repeat 5

          To indicate identifying marks and numbers for shipping containers

        • N9
          Extended Reference Information
          O可选(Optional)
          Repeat 5

          To transmit identifying information as specified by the Reference Identification Qualifier

      • QTY
        Quantity Information
        O可选(Optional)
        Repeat 5

        To specify quantity information

      • L4
        Measurement
        O可选(Optional)
        Repeat 1

        To describe physical dimensions and quantities

      • LH6
        Hazardous Certification
        O可选(Optional)
        Repeat 6

        To specify the name of the person certifying that the shipment complies with the regulations and/or the actual certification

      • PALLoop1Pallet Type and Load Characteristics LOOPO可选(Optional)Repeat 3
        PALQTY
        • PAL
          Pallet Type and Load Characteristics
          M必须(Mandatory)
          Repeat 1

          To identify the type and physical attributes of the pallet, and, gross weight, gross volume, and height of the load and the pallet

        • QTY
          Quantity Information
          O可选(Optional)
          Repeat 1

          To specify quantity information

      • CTPLoop1Pricing Information LOOPO可选(Optional)Repeat 1
        CTPCUR
        • CTP
          Pricing Information
          M必须(Mandatory)
          Repeat 1

          To specify pricing information

        • CUR
          Currency
          O可选(Optional)
          Repeat 1

          To specify the currency (dollars, pounds, francs, etc.) used in a transaction

      • L5
        Description, Marks and Numbers
        O可选(Optional)
        Repeat 999

        To specify the line item in terms of description, quantity, packaging, and marks and numbers

      • LIN
        Item Identification
        O可选(Optional)
        Repeat 1

        To specify basic item identification data

      • L12
        Alternate Lading Description
        O可选(Optional)
        Repeat 20

        To provide lading description beyond what is required for rating and billing purposes

      • YNQ
        Yes/No Question
        O可选(Optional)
        Repeat 10

        To identify and answer yes and no questions, including the date, time, and comments further qualifying the condition

      • L1Loop2Rate and Charges LOOPO可选(Optional)Repeat 20
        L1CUR
        • L1
          Rate and Charges
          M必须(Mandatory)
          Repeat 1

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

        • CUR
          Currency
          O可选(Optional)
          Repeat 1

          To specify the currency (dollars, pounds, francs, etc.) used in a transaction

      • L7
        Tariff Reference
        O可选(Optional)
        Repeat 1

        To reference details of the tariff used to arrive at applicable rates or charge

      • SACLoop1Service, Promotion, Allowance, or Charge Information LOOPO可选(Optional)Repeat 10
        SACCUR
        • SAC
          Service, Promotion, Allowance, or Charge Information
          M必须(Mandatory)
          Repeat 1

          To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

        • CUR
          Currency
          O可选(Optional)
          Repeat 1

          To specify the currency (dollars, pounds, francs, etc.) used in a transaction

      • L9Loop1Charge Detail LOOPO可选(Optional)Repeat 10
        L9CUR
        • L9
          Charge Detail
          M必须(Mandatory)
          Repeat 1

          To specify special charge code and the associated monetary amount

        • CUR
          Currency
          O可选(Optional)
          Repeat 1

          To specify the currency (dollars, pounds, francs, etc.) used in a transaction

      • X1
        Export License
        O可选(Optional)
        Repeat 25

        To transmit information contained on an export license

      • X2
        Import License
        O可选(Optional)
        Repeat 5

        To transmit import license number and effective dates

      • C8Loop2Certifications and Clauses LOOPO可选(Optional)Repeat 20
        C8C8CSUP
        • C8
          Certifications and Clauses
          M必须(Mandatory)
          Repeat 1

          To specify applicable certifications and clauses

        • C8C
          Certifications Clauses Continuation
          O可选(Optional)
          Repeat 5

          To specify additional applicable certifications and clauses

        • SUP
          Supplementary Information
          O可选(Optional)
          Repeat 10

          To provide processible supplementary information

      • H1Loop2Hazardous Material LOOPO可选(Optional)Repeat 10
        H1H2
        • H1
          Hazardous Material
          M必须(Mandatory)
          Repeat 1

          To specify information relative to hazardous material

        • H2
          Additional Hazardous Material Description
          O可选(Optional)
          Repeat 10

          To specify free-form hazardous material descriptive data in addition to the information provided in the H1 segment

      • LH1Loop2Hazardous Identification Information LOOPO可选(Optional)Repeat 1000
        LH1LH2LH3LFHLEPLH4LHTLHRPER
        • LH1
          Hazardous Identification Information
          M必须(Mandatory)
          Repeat 1

          To specify the hazardous commodity identification reference number and quantity

        • LH2
          Hazardous Classification Information
          O可选(Optional)
          Repeat 4

          To specify the hazardous notation and endorsement information

        • LH3
          Hazardous Material Shipping Name Information
          O可选(Optional)
          Repeat 10

          To specify the hazardous material shipping name and additional descriptive requirements

        • LFH
          Free-form Hazardous Material Information
          O可选(Optional)
          Repeat 25

          To uniquely identify the variable information required by government regulation covering the transportation of hazardous material shipments

        • LEP
          EPA Required Data
          O可选(Optional)
          Repeat 3

          To specify the Environmental Protection Agency (EPA) information relating to shipments of hazardous material

        • LH4
          Canadian Dangerous Requirements
          O可选(Optional)
          Repeat 1

          To specify additional Transport Canada requirements covering transportation of dangerous goods in Canada

        • LHT
          Transborder Hazardous Requirements
          O可选(Optional)
          Repeat 3

          To specify the placard information required by the second government agency when shipment is to cross into another country

        • LHR
          Hazardous Material Identifying Reference Numbers
          O可选(Optional)
          Repeat 5

          To transmit specific hazardous material reference numbers

        • PER
          Administrative Communications Contact
          O可选(Optional)
          Repeat 5

          To identify a person or office to whom administrative communications should be directed

      • N1Loop2Party Identification LOOPO可选(Optional)Repeat 10
        N1N2N3N4G61
        • N1
          Party Identification
          M必须(Mandatory)
          Repeat 1

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

        • N2
          Additional Name Information
          O可选(Optional)
          Repeat 2

          To specify additional names

        • N3
          Party Location
          O可选(Optional)
          Repeat 2

          To specify the location of the named party

        • N4
          Geographic Location
          O可选(Optional)
          Repeat 1

          To specify the geographic place of the named party

        • G61
          Contact
          O可选(Optional)
          Repeat 3

          To identify a person or office to whom communications should be directed

  • L3Loop1Total Weight and Charges LOOPO可选(Optional)Repeat 1
    L3CURMEAPWKSUPL1Loop3TDSLoop1SACLoop2L9Loop2ISSV9K1L11
    • L3
      Total Weight and Charges
      M必须(Mandatory)
      Repeat 1

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

    • CUR
      Currency
      O可选(Optional)
      Repeat 1

      To specify the currency (dollars, pounds, francs, etc.) used in a transaction

    • MEA
      Measurements
      O可选(Optional)
      Repeat 5

      To specify physical measurements or counts, including dimensions, tolerances, variances, and weights (See Figures Appendix for example of use of C001)

    • PWK
      Paperwork
      O可选(Optional)
      Repeat 50

      To identify the type or transmission or both of paperwork or supporting information

    • SUP
      Supplementary Information
      O可选(Optional)
      Repeat 999

      To provide processible supplementary information

    • L1Loop3Rate and Charges LOOPO可选(Optional)Repeat 20
      L1CUR
      • L1
        Rate and Charges
        M必须(Mandatory)
        Repeat 1

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

      • CUR
        Currency
        O可选(Optional)
        Repeat 1

        To specify the currency (dollars, pounds, francs, etc.) used in a transaction

    • TDSLoop1Total Monetary Value Summary LOOPO可选(Optional)Repeat 1
      TDSCUR
      • TDS
        Total Monetary Value Summary
        M必须(Mandatory)
        Repeat 1

        To specify the total invoice discounts and amounts

      • CUR
        Currency
        O可选(Optional)
        Repeat 1

        To specify the currency (dollars, pounds, francs, etc.) used in a transaction

    • SACLoop2Service, Promotion, Allowance, or Charge Information LOOPO可选(Optional)Repeat 10
      SACCUR
      • SAC
        Service, Promotion, Allowance, or Charge Information
        M必须(Mandatory)
        Repeat 1

        To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

      • CUR
        Currency
        O可选(Optional)
        Repeat 1

        To specify the currency (dollars, pounds, francs, etc.) used in a transaction

    • L9Loop2Charge Detail LOOPO可选(Optional)Repeat 10
      L9CUR
      • L9
        Charge Detail
        M必须(Mandatory)
        Repeat 1

        To specify special charge code and the associated monetary amount

      • CUR
        Currency
        O可选(Optional)
        Repeat 1

        To specify the currency (dollars, pounds, francs, etc.) used in a transaction

    • ISS
      Invoice Shipment Summary
      O可选(Optional)
      Repeat 5

      To specify summary details of total items shipped in terms of quantity, weight, and volume

    • V9
      Event Detail
      O可选(Optional)
      Repeat 10

      To specify information about a specific event

    • K1
      Remarks
      O可选(Optional)
      Repeat 999

      To transmit information in a free-form format for comment or special instruction

    • L11
      Business Instructions and Reference Number
      O可选(Optional)
      Repeat 24

      To specify instructions in this business relationship or a reference number

  • SE
    Transaction Set Trailer
    M必须(Mandatory)
    Repeat 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)

Segment
X12 EDI Release 00601
To indicate the start of a transaction set and to assign a control number
Elements
  • ST01143Transaction Set Identifier Code
    ID
    M必须(Mandatory)
    Min 3 / Max 3

    Code uniquely identifying a Transaction Set

    Codes (320)
  • ST02329Transaction Set Control Number
    AN
    M必须(Mandatory)
    Min 4 / Max 9

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

  • ST031705Implementation Convention Preference
    AN
    O可选(Optional)
    Min 1 / Max 9

    Reference assigned to identify Implementation Convention