D11B

Message D11B/CUSDEC

Customs declaration message

This Customs Declaration Message (CUSDEC) permits the transfer of data from a declarant to a customs administration for the purpose of meeting legislative and/or operational requirements in respect of the declaration of goods for import, export or transit. The message may also be used, for example : - to transmit data from an exporter in one country to an importer in another country; - to transmit consignment data from one customs administration to another; - to transmit data from a customs authority to other governments agencies and/or interested administrations. - to transmit data from a declarant to the appropriate data collection agency on the movement of goods between statistical territories.

Message description

UNH

M(1) : Message header

A service segment starting and uniquely identifying a message. The message type code for the Customs declaration message is CUSDEC. Note: Customs declaration messages conforming to this document must contain the following data in segment UNH, composite S009: Data element 0065 CUSDEC 0052 D 0054 11B 0051 UN

BGM

M(1) : Beginning of message

A segment identifying the declaration type and reference.

CST

C(1) : Customs status of goods

A segment identifying the customs procedure and status of the goods relevant to the whole message.

LOC

C(99) : Place/location identification

A segment identifying a place or location relevant to the entire message. For example, port of loading, office of entry, etc.

DTM

C(15) : Date/time/period

A segment identifying dates, times or periods relevant to the whole message. For example, actual date of arrival, elected date of presentation, etc.

GEI

C(25) : Processing information

A segment identifying the various indicators required by a customs system. For example, special programs, release certification, duty free eligibility under GSP, etc.

FII

C(1) : Financial institution information

A segment identifying an account and a related financial institution relevant to the whole message.

MEA

C(5) : Measurements

A segment identifying various measurement factors where these are required for the whole declaration (message).

EQD

C(999) : Equipment details

A segment identifying the equipment (e.g. container id.) used to transport all the goods related to the whole declaration (message).

SEL

C(999) : Seal number

A segment identifying Customs seals used in the transport of goods related to the whole declaration (message).

FTX

C(99) : Free text

A segment explaining the reasons or actions undertaken in processing a message.

SG1 C(99) : RFF-DTM-SG2

A group of segments identifying various references, manifest quantities and package identities relevant to the whole message.

RFF

M(1) : Reference

A segment identifying the various references relevant to the whole message.

DTM

C(1) : Date/time/period

A segment identifying a date related to the previous RFF segment.

SG2 C(10) : PAC-SG3

A group of segment identifying the numbers of, the types of, and the markings individual packages.

PAC

M(1) : Package

A segment identifying the number and type of packages manifested on a bill of lading, warehouse entry, etc.

SG3 C(999) : PCI-FTX

A group of segments identifying markings and labels on manifested units.

PCI

M(1) : Package identification

A segment identifying markings and labels on individual manifested units.

FTX

C(1) : Free text

A segment describing the goods identified in PCI in narrative form.

SG4 C(5) : TDT-TPL

A group of segments identifying the mode, means and identification of the transport used.

TDT

M(1) : Transport information

A segment identifying the mode and means of transport used.

TPL

C(1) : Transport placement

A segment identifying the transport vehicle used.

SG5 C(99) : DOC-DTM-LOC

A group of segments identifying documentary requirements where they are needed as supporting information for the entire message.

DOC

M(1) : Document/message details

A segment identifying a specific document required as supporting information for the entire message.

DTM

C(2) : Date/time/period

A segment identifying dates related to the document identified in DOC.

LOC

C(1) : Place/location identification

A segment identifying a location related to the document identified in DOC.

SG6 C(99) : NAD-RFF-CTA-COM

A group of segments identifying the parties relevant to the whole message, with their related references, contacts, and communication numbers.

NAD

M(1) : Name and address

A segment identifying the parties relevant to the entire message. For example importer, ultimate consignee, etc.

RFF

C(10) : Reference

A segment identifying references relating to the party specified within the group. For example, a special mailing request number for refunds relating to the customs transaction.

CTA

C(1) : Contact information

A segment identifying a contact person(s) or department(s) associated with the party specified in this group.

COM

C(5) : Communication contact

A segment identifying the phone number, fax number or other communications number of the party and (or) contact specified within this group.

SG7 C(1) : TOD-LOC-FTX

A group of segments identifying the terms of delivery pertinent to the entire message.

TOD

M(1) : Terms of delivery or transport

A segment identifying terms of delivery, relevant to the entire message, in a coded format.

LOC

C(2) : Place/location identification

A segment identifying a location related to the terms of delivery identified in TOD.

FTX

C(1) : Free text

A segment identifying the terms of delivery in narrative form.

SG8 C(25) : MOA-SG9

A group of segments identifying monetary amounts, currencies and their exchange rates, when required for the whole declaration.

MOA

M(1) : Monetary amount

A segment identifying a monetary function and up to five monetary amounts.

SG9 C(1) : CUX-DTM

A group of segments identifying currencies, a rate of exchange and a related date for a monetary amount identified within this group.

CUX

M(1) : Currencies

A segment identifying currencies and the rate of exchange for a monetary amount identified within this group.

DTM

C(1) : Date/time/period

A segment identifying a date related to the information contained in the CUX.

SG10 C(99) : EFI-CED-COM-RFF-DTM-QTY

A group of segments that refers through an external file identification to each of the external files and giving additional information about each of the files.

EFI

M(1) : External file link identification

This segment will identify the external files by indicating the file name, file number and its sequence number in an exchange.

CED

C(99) : Computer environment details

To give precise definitions of all necessary elements belonging to the configuration of a computer system, e.g. hardware, firmware, operating system, communication and application software.

COM

C(9) : Communication contact

To identify a communication number of a department or a person to whom communication should be directed.

RFF

C(9) : Reference

A segment giving reference related to the file identified by a previous external file link identification segment.

DTM

C(9) : Date/time/period

This segment will convey the date/time details of the external file.

QTY

C(9) : Quantity

The size/volume of the external file identified in the previous external file link identification segment.

UNS

M(1) : Section control

A service segment placed at the beginning of the detail section to indicate the beginning of that section.

SG11 C(999) : DMS-DTM-MEA-SG12-SG14-SG15-SG17-SG19-SG20-SG22-SG31

A group of segments identifying line item details for a commercial document.

DMS

M(1) : Document/message summary

A segment identifying the commercial document number, the document type and the number of detail lines within the document heading this group.

DTM

C(1) : Date/time/period

A segment identifying a date related to the commercial document identified in DMS.

MEA

C(5) : Measurements

A segment providing measurements values for the whole commercial document where required by an administration.

SG12 C(25) : MOA-SG13

A group of segments identifying various monetary amounts, currencies and rates of exchange that pertain to the whole commercial document.

MOA

M(1) : Monetary amount

A segment identifying a monetary amount related to the whole commercial document.

SG13 C(1) : CUX-DTM

A group of segments identifying currencies, rate of exchange and an associated date.

CUX

M(1) : Currencies

A segment identifying currency details and a rate of exchange related to the preceding MOA.

DTM

C(1) : Date/time/period

The effective date of the rate of exchange reported in this group.

SG14 C(1) : TOD-LOC-FTX

A group of segments identifying the terms of delivery pertinent to the whole commercial document.

TOD

M(1) : Terms of delivery or transport

A segment identifying, in a coded format, the terms of delivery relevant to the entire document.

LOC

C(2) : Place/location identification

A segment identifying a location related to the information contained in the TOD.

FTX

C(1) : Free text

A segment identifying the terms of delivery in narrative form.

SG15 C(10) : NAD-SG16

A group of segments identifying the parties and other related documentary requirements associated with the whole commercial document.

NAD

M(1) : Name and address

A segment identifying the parties and addresses relevant to the whole commercial document. For example, manufacturer, invoicer, buyer, etc.

SG16 C(10) : DOC-DTM-LOC

A segment identifying other documentary requirements associated with a party identified in the preceding NAD segment. For example, purchase order, contract number, etc.

DOC

M(1) : Document/message details

A segment identifying documents associated with the party identified in the preceding NAD.

DTM

C(2) : Date/time/period

A segment identifying a date associated with the information contained in DOC.

LOC

C(1) : Place/location identification

A segment identifying a location related to the preceding DOC.

SG17 C(10) : PAC-SG18

A group of segments identifying the number, type, and contents of the shipping units associated with the entire commercial document.

PAC

M(1) : Package

A segment identifying the number and type of shipping units covered by the whole document.

SG18 C(999) : PCI-FTX-RFF

A group of segments identifying marks and labels of shipping units associated with the whole commercial document.

PCI

M(1) : Package identification

A segment identifying marks and labels on specific shipping units covered by the entire document.

FTX

C(1) : Free text

A segment describing the goods identified in PCI in narrative form.

RFF

C(1) : Reference

A segment identifying a reference associated with the information contained in PCI.

SG19 C(5) : PYT-MOA-PCD-FTX

A group of segments identifying the payment terms for the whole commercial document.

PYT

M(1) : Payment terms

A segment identifying the payment terms in coded format for the whole commercial document.

MOA

C(1) : Monetary amount

A segment identifying a monetary amount associated with the preceding PYT.

PCD

C(1) : Percentage details

A segment identifying percentage details associated with the preceding PYT.

FTX

C(1) : Free text

A segment identifying the payment terms in a narrative form.

SG20 C(10) : ALC-RTE-MOA-PCD-QTY-SG21

A group of segments identifying allowances, charges, or adjustments and related details for the whole commercial document.

ALC

M(1) : Allowance or charge

A segment identifying allowances, charges and adjustments related to the whole commercial document.

RTE

C(1) : Rate details

A segment identifying rate information related to the preceding ALC.

MOA

C(1) : Monetary amount

A segment identifying the monetary amount associated with the ALC.

PCD

C(1) : Percentage details

A segment identifying percentage information associated with the ALC.

QTY

C(1) : Quantity

A segment identifying a quantity associated with the ALC.

SG21 C(1) : CUX-DTM

A group of segments identifying currencies, a rate of exchange, and an associated date for an allowance, charge or adjustment reported in the preceding ALC segment.

CUX

M(1) : Currencies

A segment identifying currency details and a rate of exchange related to the preceding MOA.

DTM

C(1) : Date/time/period

A segment identifying a date associated with the preceding CUX.

SG22 C(9999) : LIN-PIA-QTY-PRI-PCD-MEA-QVR-MOA-NAD-GIR-GEI-LOC-SG23-SG24-SG26-SG27-SG28-SG29

A group of segments identifying line item details for a commercial document.

LIN

M(1) : Line item

A segment identifying the line item number and the item number identification of a particular commercial document line.

PIA

C(1) : Additional product id

A segment identifying additional or substitutional item identification codes related to the information in LIN.

QTY

C(1) : Quantity

A segment identifying a specific quantity related to information in LIN.

PRI

C(2) : Price details

A segment identifying price information for a particular line item identified in LIN.

PCD

C(1) : Percentage details

A segment identifying percentage information for a particular line item identified in LIN.

MEA

C(15) : Measurements

A segment identifying secondary quantity information where more than one quantity is required to be reported for a commercial document line.

QVR

C(5) : Quantity variances

A segment identifying the quantity difference an the reason for this difference between the commercial document line and the actual line item.

MOA

C(15) : Monetary amount

A segment identifying monetary amounts required by customs, but not otherwise captured by the commercial document line value.

NAD

C(10) : Name and address

A segment identifying the parties and addresses relevant to a particular commercial document line. For example, manufacturer, ultimate consignee etc.

GIR

C(9999) : Related identification numbers

A segment identifying a serial numbers or other related numbers associated with the merchandise on a specific commercial document line.

GEI

C(99) : Processing information

A segment identifying the various indicators required for the importation of merchandise by customs and other agencies.

LOC

C(1) : Place/location identification

A segment identifying a place or location relevant to the line item details for the commercial document.

SG23 C(10) : DOC-DTM

A group of segments identifying customs documentary requirements for a commercial document line item. For example, an import or export license.

DOC

M(1) : Document/message details

A segment identifying a specific customs documentary requirement for a commercial line item.

DTM

C(2) : Date/time/period

A segment identifying dates related to the preceding DOC.

SG24 C(10) : ALC-RTE-MOA-PCD-QTY-SG25

A group of segments identifying allowances, charges, or adjustments and related details for the commercial document line.

ALC

M(1) : Allowance or charge

A segment identifying allowances, charges or adjustments specific to a commercial document line.

RTE

C(1) : Rate details

A segment identifying rate information related to the preceding ALC.

MOA

C(1) : Monetary amount

A segment identifying the monetary amount associated with the preceding ALC.

PCD

C(1) : Percentage details

A segment identifying percentage information associated with the preceding ALC.

QTY

C(1) : Quantity

A segment identifying a quantity associated with the preceding ALC.

SG25 C(1) : CUX-DTM

A group of segments identifying currencies, rates of exchange and associated dates for an allowance, charge, or adjustment reported in the preceding ALC.

CUX

M(1) : Currencies

A segment identifying currencies and the rate of exchange for an allowance, charge, or adjustment reported in the preceding ALC segment.

DTM

C(1) : Date/time/period

A segment identifying a specific date related to CUX.

SG26 C(1) : TOD-LOC

A group of segments identifying the terms of delivery pertinent to a commercial document line.

TOD

M(1) : Terms of delivery or transport

A segment identifying, in coded format, the terms of delivery particular to a commercial document line.

LOC

C(2) : Place/location identification

A segment identifying a location related to the information contained in the preceding TOD segment.

SG27 C(5) : PYT-MOA-PCD-FTX

A group of segments identifying the payment terms for a commercial document line.

PYT

M(1) : Payment terms

A segment identifying the terms of payment, in a coded format, for a particular commercial document line.

MOA

C(1) : Monetary amount

A segment identifying a monetary amount associated with the preceding PYT.

PCD

C(1) : Percentage details

A segment identifying percentage details associated with the preceding PYT.

FTX

C(1) : Free text

A segment starting the terms of payment in narrative form.

SG28 C(99) : IMD-FTX

A group of segments identifying a commercial description for a documented commodity that is associated with this Customs, item line.

IMD

M(1) : Item description

A segment identifying a documented item via an industry coded format, or a restricted narrative.

FTX

C(1) : Free text

A segment identifying the item description in extended narrative form.

SG29 C(10) : PAC-SG30

A group of segments identifying the number, type, contents and description of the packing units associated with the commercial document line.

PAC

M(1) : Package

A segment identifying the number and type of packing units particular to a document line.

SG30 C(999) : PCI-FTX-RFF

A group of segments identifying marks, labels and description of packages relating to a document line.

PCI

M(1) : Package identification

A segment identifying a particular package associated with the preceding PAC.

FTX

C(1) : Free text

A segment identifying a particular packing unit, associated with the preceding PCI, in narrative form.

RFF

C(1) : Reference

A segment identifying a reference related to the preceding PCI.

SG31 C(99) : EFI-CED-COM-RFF-DTM-QTY

A group of segments that refers through an external file identification to each of the external files and giving additional information

EFI

M(1) : External file link identification

This segment will identify the external files by indicating the file name, file number and its sequence number in an exchange.

CED

C(99) : Computer environment details

To give precise definitions of all necessary elements belonging to the configuration of a computer system, e.g. hardware, firmware, operating system, communication and application software.

COM

C(9) : Communication contact

To identify a communication number of a department or a person to whom communication should be directed.

RFF

C(9) : Reference

A segment giving reference related to the file identified by a previous external file link identification segment.

DTM

C(9) : Date/time/period

This segment will convey the date/time details of the external file.

QTY

C(9) : Quantity

The size/volume of the external file identified in the previous external file link identification segment.

SG32 C(99999) : CST-FTX-LOC-DTM-MEA-NAD-TDT-SG33-SG35-SG37-SG39-SG40-SG41-SG42-SG43-SG44-SG46

A group of segments identifying detailed information for a single customs item of a customs declaration.

CST

M(1) : Customs status of goods

A segment identifying the customs tariff of the goods, their required treatment and, where these are different to the header information, the type of declaration and the current status of the goods.

FTX

C(9) : Free text

A segment identifying the goods, related to the preceding CST, in narrative form.

LOC

C(25) : Place/location identification

A segment identifying the places relevant to a customs item. For example, country of origin, country of export, etc.

DTM

C(5) : Date/time/period

A segment identifying dates particular to the customs item. For example, date of original exportation.

MEA

C(20) : Measurements

A segment identifying the necessary statistical information requirements related to a tariff number. For example, net weights, volumes, etc.

NAD

C(5) : Name and address

A segment identifying a party particular to the customs item when required by customs. For example, manufacturer of the goods.

TDT

C(9) : Transport information

A segment identifying transport details, for statistical purposes, on goods crossing statistical boundaries.

SG33 C(10) : PAC-SG34

A group of segments identifying the number, type and reference of the packing units associated with the customs item.

PAC

M(1) : Package

A segment identifying the number and type of packages relating to the customs item.

SG34 C(999) : PCI-FTX

A group of segments identifying marks and labels, and giving the description of single packages associated with a customs item.

PCI

M(1) : Package identification

A segment identifying markings and labels on the type of packages reported in the preceding PAC.

FTX

C(1) : Free text

A segment describing the goods identified in PCI in narrative form.

SG35 C(25) : MOA-SG36

A group of segments identifying various monetary amounts, currencies and rates of exchange that pertain to the customs item.

MOA

M(1) : Monetary amount

A segment identifying the monetary amounts necessary for statistical and duty purposes.

SG36 C(1) : CUX-DTM

A group of segments identifying currencies, a rate of exchange and an associated date related to the preceding MOA.

CUX

M(1) : Currencies

A segment identifying currencies and the rate of exchange for an amount reported in the preceding MOA.

DTM

C(1) : Date/time/period

A segment identifying a date related to the preceding CUX.

SG37 C(999) : RFF-DTM-GIN-MOA-SG38

A group of segments identifying references, descriptions, and monetary amounts associated with a customs item.

RFF

M(1) : Reference

A segment identifying particular references relating to the customs item. For example, the invoice number of any invoice that contains merchandise on this customs item.

DTM

C(1) : Date/time/period

A segment identifying a date associated with the preceding RFF.

GIN

C(99) : Goods identity number

A segment identifying any line or range of lines on the commercial document reported in the preceding RFF segment, that contains goods on this customs item.

MOA

C(1) : Monetary amount

A segment identifying commercial document line monetary amounts where the Commercial Group is not offered but an administration requires this information.

SG38 C(1) : IMD-FTX

A group of segments identifying a commercial description for a documented commodity that is associated with this customs line item.

IMD

M(1) : Item description

A segment identifying the coded industry description of the merchandise on the document line(s) identified in the preceding GIN segment.

FTX

C(5) : Free text

A segment identifying the documented merchandise in narrative form.

SG39 C(25) : DOC-DTM-LOC-NAD

A group of segments identifying report documentary requirements of particular government agencies, with the optional name and address of the agency involved.

DOC

M(1) : Document/message details

A segment identifying a document related to a customs item.

DTM

C(2) : Date/time/period

A segment identifying dates associated with the preceding DOC.

LOC

C(1) : Place/location identification

A segment identifying a location associated with the preceding DOC.

NAD

C(5) : Name and address

A segment identifying the identity and address of the agency related to the documentary requirement.

SG40 C(1) : TOD-LOC-FTX

A group of segments identifying the terms of delivery pertinent to a customs item.

TOD

M(1) : Terms of delivery or transport

A segment identifying, in coded format, the terms of delivery of the entered goods, where these are specific to the customs item.

LOC

C(2) : Place/location identification

A segment identifying the place of delivery associated with the preceding TOD.

FTX

C(1) : Free text

A segment identifying the terms of delivery in narrative form.

SG41 C(1) : GDS-FTX

A group of segments identifying the customs description of merchandise entered on a customs item.

GDS

M(1) : Nature of cargo

A segment identifying a customs description, in coded format, of the goods declared on the customs item.

FTX

C(1) : Free text

A segment identifying the customs description in narrative form.

SG42 C(25) : GEI-PCD-DTM-RFF

A group of segments identifying special indicators or value data related to the customs item.

GEI

M(1) : Processing information

A segment identifying any necessary processing indicators where these are required by customs at the item level.

PCD

C(1) : Percentage details

A segment identifying percentage details related to adjustments where a relationship is identified between the buyer and seller.

DTM

C(1) : Date/time/period

A segment identifying a date related the preceding GEI.

RFF

C(1) : Reference

A segment identifying a reference related to the preceding GEI.

SG43 C(10) : TAX-MOA-GEI

A group of segments identifying duties/taxes/fees and methods of payment related to a customs item.

TAX

M(1) : Duty/tax/fee details

A segment identifying the tax type, rate and base associated with a customs item.

MOA

C(2) : Monetary amount

A segment identifying monetary amounts (e.g. tax/fee amount) associated with the preceding TAX.

GEI

C(1) : Processing information

A segment identifying an indicator (e.g. method payment indicator) associated with the preceding TAX.

SG44 C(1) : QVR-QTY-SG45

A group of segments identifying variances between the quantity commercially documented and/or produced to Customs and the quantity declared.

QVR

M(1) : Quantity variances

A segment identifying quantity difference and the reason for the difference between the declared and commercially documented amounts.

QTY

C(1) : Quantity

A segment identifying the quantity related to the preceding QVR.

SG45 C(1) : RFF-DTM

A group of segments identifying an earlier customs declaration in order to balance the total quantity declared with the total quantity presented to Customs.

RFF

M(1) : Reference

A segment identifying a reference to a previous customs declaration.

DTM

C(1) : Date/time/period

A segment identifying a date associated with the preceding RFF.

SG46 C(50) : GIR-GEI-NAD-MEA-SG47-SG49-SG50

A group of segments identifying customs reporting requirements associated with a secondary tariff number.

GIR

M(1) : Related identification numbers

A segment identifying the tariff number where the published tariff requires more than one tariff number.

GEI

C(10) : Processing information

A segment identifying any necessary processing indicators related to the tariff number in the preceding GIR segment, where these are required by customs.

NAD

C(1) : Name and address

A segment identifying a party particular to the goods governed by the tariff number in the preceding GIR segment. For example, manufacturer of the goods.

MEA

C(5) : Measurements

A segment identifying the necessary statistical information requirements related to the tariff number in the GIR segment. For example, net weight, volume, etc.

SG47 C(10) : MOA-SG48

A group of segments identifying various monetary amounts, currencies and rates of exchange that pertain to a secondary tariff number within a customs item.

MOA

M(1) : Monetary amount

A segment identifying the monetary amount necessary for statistical and/or duty purposes, as it relates to the tariff number in the preceding GIR segment.

SG48 C(1) : CUX-DTM

A group of segments identifying currencies, a rate of exchange and related date for an amount reported in the preceding MOA.

CUX

M(1) : Currencies

A segment identifying currencies and the rate of exchange for an amount reported in the preceding MOA segment.

DTM

C(1) : Date/time/period

A segment identifying a date related to the preceding CUX.

SG49 C(10) : TAX-MOA-GEI

A group of segments identifying the duties, taxes, and/or fees pertinent to the tariff number reported in the GIR segment.

TAX

M(1) : Duty/tax/fee details

A segment identifying the tax type, rate and base associated with the preceding GIR.

MOA

C(2) : Monetary amount

A segment identifying monetary amounts (e.g. tax/fee amount) associated with the preceding TAX.

GEI

C(1) : Processing information

A segment identifying an indicator associated with the preceding TAX, (e.g. method of payment indicator).

SG50 C(5) : DOC-DTM-LOC

A group of segments identifying specific documentary information which may be required by the tariff number in the GIR segment. For example, a textile category number.

DOC

M(1) : Document/message details

A segment identifying a specific document related to the preceding GIR.

DTM

C(2) : Date/time/period

A segment identifying a date associated with the preceding DOC.

LOC

C(1) : Place/location identification

A segment identifying a place associated with the preceding DOC.

UNS

M(1) : Section control

A service segment placed at the beginning of the summary section to indicate the start of that section.

CNT

C(5) : Control total

A segment specifying control totals. For example, the number of commercial documents, the total number of customs item, values, and packages reported in the message.

SG51 C(50) : TAX-MOA-GEI

A segment identifying the totals and duty/tax/fee levels due for the declaration and summarizing this total by each accounting code included in the total due.

TAX

M(1) : Duty/tax/fee details

A segment identifying the summary tax type, rates and base for a full declaration.

MOA

C(2) : Monetary amount

A segment identifying amounts associated with the preceding TAX (e.g. total amounts for each duty/tax/fee).

GEI

C(1) : Processing information

A segment identifying an indicator related to the preceding TAX (e.g. summary method of payment).

SG52 C(1) : AUT-DTM

A group of segments permitting the verification of the authenticity of the sender and the integrity of the data.

AUT

M(1) : Authentication result

A segment containing the result of the algorithm permitting the verification of the authenticity of the sender and the integrity of the data.

DTM

C(1) : Date/time/period

A segment identifying a date associated with the preceding AUT.

UNT

M(1) : Message trailer

A service segment ending a message, giving the total number of segments in the message (including the UNH & UNT) and the control reference number of the message.

Message structure

UNH, Message header                           M        1
BGM, Beginning of message                     M        1
CST, Customs status of goods                  C        1
LOC, Place/location identification            C       99
DTM, Date/time/period                         C       15
GEI, Processing information                   C       25
FII, Financial institution information        C        1
MEA, Measurements                             C        5
EQD, Equipment details                        C      999
SEL, Seal number                              C      999
FTX, Free text                                C       99

--- Segment Group 1 ------------------------- C       99 -------+
RFF, Reference                                M        1        |
DTM, Date/time/period                         C        1        |
                                                                |
--- Segment Group 2 ------------------------- C       10 ------+|
PAC, Package                                  M        1       ||
                                                               ||
--- Segment Group 3 ------------------------- C      999 -----+||
PCI, Package identification                   M        1      |||
FTX, Free text                                C        1      |||
---- ---------------------------------------------------------+++

--- Segment Group 4 ------------------------- C        5 -------+
TDT, Transport information                    M        1        |
TPL, Transport placement                      C        1        |
---- -----------------------------------------------------------+

--- Segment Group 5 ------------------------- C       99 -------+
DOC, Document/message details                 M        1        |
DTM, Date/time/period                         C        2        |
LOC, Place/location identification            C        1        |
---- -----------------------------------------------------------+

--- Segment Group 6 ------------------------- C       99 -------+
NAD, Name and address                         M        1        |
RFF, Reference                                C       10        |
CTA, Contact information                      C        1        |
COM, Communication contact                    C        5        |
---- -----------------------------------------------------------+

--- Segment Group 7 ------------------------- C        1 -------+
TOD, Terms of delivery or transport           M        1        |
LOC, Place/location identification            C        2        |
FTX, Free text                                C        1        |
---- -----------------------------------------------------------+

--- Segment Group 8 ------------------------- C       25 -------+
MOA, Monetary amount                          M        1        |
                                                                |
--- Segment Group 9 ------------------------- C        1 ------+|
CUX, Currencies                               M        1       ||
DTM, Date/time/period                         C        1       ||
---- ----------------------------------------------------------++

--- Segment Group 10 ------------------------ C       99 -------+
EFI, External file link identification        M        1        |
CED, Computer environment details             C       99        |
COM, Communication contact                    C        9        |
RFF, Reference                                C        9        |
DTM, Date/time/period                         C        9        |
QTY, Quantity                                 C        9        |
---- -----------------------------------------------------------+
UNS, Section control                          M        1

--- Segment Group 11 ------------------------ C      999 -------+
DMS, Document/message summary                 M        1        |
DTM, Date/time/period                         C        1        |
MEA, Measurements                             C        5        |
                                                                |
--- Segment Group 12 ------------------------ C       25 ------+|
MOA, Monetary amount                          M        1       ||
                                                               ||
--- Segment Group 13 ------------------------ C        1 -----+||
CUX, Currencies                               M        1      |||
DTM, Date/time/period                         C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 14 ------------------------ C        1 ------+|
TOD, Terms of delivery or transport           M        1       ||
LOC, Place/location identification            C        2       ||
FTX, Free text                                C        1       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 15 ------------------------ C       10 ------+|
NAD, Name and address                         M        1       ||
                                                               ||
--- Segment Group 16 ------------------------ C       10 -----+||
DOC, Document/message details                 M        1      |||
DTM, Date/time/period                         C        2      |||
LOC, Place/location identification            C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 17 ------------------------ C       10 ------+|
PAC, Package                                  M        1       ||
                                                               ||
--- Segment Group 18 ------------------------ C      999 -----+||
PCI, Package identification                   M        1      |||
FTX, Free text                                C        1      |||
RFF, Reference                                C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 19 ------------------------ C        5 ------+|
PYT, Payment terms                            M        1       ||
MOA, Monetary amount                          C        1       ||
PCD, Percentage details                       C        1       ||
FTX, Free text                                C        1       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 20 ------------------------ C       10 ------+|
ALC, Allowance or charge                      M        1       ||
RTE, Rate details                             C        1       ||
MOA, Monetary amount                          C        1       ||
PCD, Percentage details                       C        1       ||
QTY, Quantity                                 C        1       ||
                                                               ||
--- Segment Group 21 ------------------------ C        1 -----+||
CUX, Currencies                               M        1      |||
DTM, Date/time/period                         C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 22 ------------------------ C     9999 ------+|
LIN, Line item                                M        1       ||
PIA, Additional product id                    C        1       ||
QTY, Quantity                                 C        1       ||
PRI, Price details                            C        2       ||
PCD, Percentage details                       C        1       ||
MEA, Measurements                             C       15       ||
QVR, Quantity variances                       C        5       ||
MOA, Monetary amount                          C       15       ||
NAD, Name and address                         C       10       ||
GIR, Related identification numbers           C     9999       ||
GEI, Processing information                   C       99       ||
LOC, Place/location identification            C        1       ||
                                                               ||
--- Segment Group 23 ------------------------ C       10 -----+||
DOC, Document/message details                 M        1      |||
DTM, Date/time/period                         C        2      |||
---- ---------------------------------------------------------+||
                                                               ||
--- Segment Group 24 ------------------------ C       10 -----+||
ALC, Allowance or charge                      M        1      |||
RTE, Rate details                             C        1      |||
MOA, Monetary amount                          C        1      |||
PCD, Percentage details                       C        1      |||
QTY, Quantity                                 C        1      |||
                                                              |||
--- Segment Group 25 ------------------------ C        1 ----+|||
CUX, Currencies                               M        1     ||||
DTM, Date/time/period                         C        1     ||||
---- --------------------------------------------------------++||
                                                               ||
--- Segment Group 26 ------------------------ C        1 -----+||
TOD, Terms of delivery or transport           M        1      |||
LOC, Place/location identification            C        2      |||
---- ---------------------------------------------------------+||
                                                               ||
--- Segment Group 27 ------------------------ C        5 -----+||
PYT, Payment terms                            M        1      |||
MOA, Monetary amount                          C        1      |||
PCD, Percentage details                       C        1      |||
FTX, Free text                                C        1      |||
---- ---------------------------------------------------------+||
                                                               ||
--- Segment Group 28 ------------------------ C       99 -----+||
IMD, Item description                         M        1      |||
FTX, Free text                                C        1      |||
---- ---------------------------------------------------------+||
                                                               ||
--- Segment Group 29 ------------------------ C       10 -----+||
PAC, Package                                  M        1      |||
                                                              |||
--- Segment Group 30 ------------------------ C      999 ----+|||
PCI, Package identification                   M        1     ||||
FTX, Free text                                C        1     ||||
RFF, Reference                                C        1     ||||
---- --------------------------------------------------------+++|
                                                                |
--- Segment Group 31 ------------------------ C       99 ------+|
EFI, External file link identification        M        1       ||
CED, Computer environment details             C       99       ||
COM, Communication contact                    C        9       ||
RFF, Reference                                C        9       ||
DTM, Date/time/period                         C        9       ||
QTY, Quantity                                 C        9       ||
---- ----------------------------------------------------------++

--- Segment Group 32 ------------------------ C    99999 -------+
CST, Customs status of goods                  M        1        |
FTX, Free text                                C        9        |
LOC, Place/location identification            C       25        |
DTM, Date/time/period                         C        5        |
MEA, Measurements                             C       20        |
NAD, Name and address                         C        5        |
TDT, Transport information                    C        9        |
                                                                |
--- Segment Group 33 ------------------------ C       10 ------+|
PAC, Package                                  M        1       ||
                                                               ||
--- Segment Group 34 ------------------------ C      999 -----+||
PCI, Package identification                   M        1      |||
FTX, Free text                                C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 35 ------------------------ C       25 ------+|
MOA, Monetary amount                          M        1       ||
                                                               ||
--- Segment Group 36 ------------------------ C        1 -----+||
CUX, Currencies                               M        1      |||
DTM, Date/time/period                         C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 37 ------------------------ C      999 ------+|
RFF, Reference                                M        1       ||
DTM, Date/time/period                         C        1       ||
GIN, Goods identity number                    C       99       ||
MOA, Monetary amount                          C        1       ||
                                                               ||
--- Segment Group 38 ------------------------ C        1 -----+||
IMD, Item description                         M        1      |||
FTX, Free text                                C        5      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 39 ------------------------ C       25 ------+|
DOC, Document/message details                 M        1       ||
DTM, Date/time/period                         C        2       ||
LOC, Place/location identification            C        1       ||
NAD, Name and address                         C        5       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 40 ------------------------ C        1 ------+|
TOD, Terms of delivery or transport           M        1       ||
LOC, Place/location identification            C        2       ||
FTX, Free text                                C        1       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 41 ------------------------ C        1 ------+|
GDS, Nature of cargo                          M        1       ||
FTX, Free text                                C        1       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 42 ------------------------ C       25 ------+|
GEI, Processing information                   M        1       ||
PCD, Percentage details                       C        1       ||
DTM, Date/time/period                         C        1       ||
RFF, Reference                                C        1       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 43 ------------------------ C       10 ------+|
TAX, Duty/tax/fee details                     M        1       ||
MOA, Monetary amount                          C        2       ||
GEI, Processing information                   C        1       ||
---- ----------------------------------------------------------+|
                                                                |
--- Segment Group 44 ------------------------ C        1 ------+|
QVR, Quantity variances                       M        1       ||
QTY, Quantity                                 C        1       ||
                                                               ||
--- Segment Group 45 ------------------------ C        1 -----+||
RFF, Reference                                M        1      |||
DTM, Date/time/period                         C        1      |||
---- ---------------------------------------------------------++|
                                                                |
--- Segment Group 46 ------------------------ C       50 ------+|
GIR, Related identification numbers           M        1       ||
GEI, Processing information                   C       10       ||
NAD, Name and address                         C        1       ||
MEA, Measurements                             C        5       ||
                                                               ||
--- Segment Group 47 ------------------------ C       10 -----+||
MOA, Monetary amount                          M        1      |||
                                                              |||
--- Segment Group 48 ------------------------ C        1 ----+|||
CUX, Currencies                               M        1     ||||
DTM, Date/time/period                         C        1     ||||
---- --------------------------------------------------------++||
                                                               ||
--- Segment Group 49 ------------------------ C       10 -----+||
TAX, Duty/tax/fee details                     M        1      |||
MOA, Monetary amount                          C        2      |||
GEI, Processing information                   C        1      |||
---- ---------------------------------------------------------+||
                                                               ||
--- Segment Group 50 ------------------------ C        5 -----+||
DOC, Document/message details                 M        1      |||
DTM, Date/time/period                         C        2      |||
LOC, Place/location identification            C        1      |||
---- ---------------------------------------------------------+++
UNS, Section control                          M        1
CNT, Control total                            C        5

--- Segment Group 51 ------------------------ C       50 -------+
TAX, Duty/tax/fee details                     M        1        |
MOA, Monetary amount                          C        2        |
GEI, Processing information                   C        1        |
---- -----------------------------------------------------------+

--- Segment Group 52 ------------------------ C        1 -------+
AUT, Authentication result                    M        1        |
DTM, Date/time/period                         C        1        |
---- -----------------------------------------------------------+
UNT, Message trailer                          M        1