D17A
Message D17A/CUSRES
Customs response message
This Customs Response Message (CUSRES) permits the transfer of data from a customs administration: - to acknowledge the receipt of the message - to indicate whether the information received is correct or if there are errors (i.e. accepted without errors, accepted with errors, rejected, etc.) - to inform the sender of the status of the customs declaration (i.e. goods released, goods for examination, documents required, etc.) - to transmit additional information as agreed between parties (i.e. tax information, quantity information, etc.) - to respond to batched messages (i.e. CUSDEC, CUSCAR, CUSREP, CUSEXP). Note: this message is not meant to replace the functionality of the CONTRL message.
Message description
UNH
M(1) : Message headerA service segment starting and uniquely identifying a message. The message type code for the Customs response message is CUSRES. Note: Customs response messages conforming to this document must contain the following data in segment UNH, composite S009: Data element 0065 CUSRES 0052 D 0054 17A 0051 UN
BGM
M(1) : Beginning of messageA segment identifying the type and the reference number of the message to which the CUSRES is a response.
DTM
C(9) : Date/time/periodA segment identifying the relevant dates and times in the message. For example, payment date.
FTX
C(99) : Free textA segment stating information in unsolicited clear text.
TDT
C(9) : Transport informationA segment to specify any means of transport that is related to all information at the lower level of the message.
LOC
C(99) : Place/location identificationA segment to identify a country and/or place and/or location information related to the whole message.
GEI
C(10) : Processing informationA segment identifying the various customs processing indicators. For example, cargo released, cargo held, examination required, earlier message accepted or rejected, etc.
EQD
C(999) : Equipment detailsA segment identifying equipment initials and numbers required to identify a shipment, covering the whole message, e.g. to indicate the container number that Customs wants to examine.
SG1 C(99) : NAD-SG2
A group of segments identifying party details, including contact and communication contact information.
NAD
M(1) : Name and addressA segment to identify the name and/or address of the party related to all information at the lower level of the message. For example, the importer.
SG2 C(9) : CTA-COM
A group of segments identifying contact and communication contact information.
CTA
M(1) : Contact informationA segment to identify a person or a department to whom communication should be directed.
COM
C(9) : Communication contactA segment to identify a communication number of a department or a person to whom communication should be directed.
SG3 C(999) : RFF-DTM-LOC
A group of segments identifying references, dates and locations related information.
RFF
M(1) : ReferenceA segment identifying references (e.g. manifest number).
DTM
C(9) : Date/time/periodA segment identifying a date related to the preceding RFF.
LOC
C(9) : Place/location identificationA segment identifying a location related to the preceding RFF.
SG4 C(99999) : ERP-RFF-ERC-FTX
A group of segments identifying an application error condition within a message to which the CUSRES is a response.
ERP
M(1) : Error point detailsA segment identifying the location of an application error within the referenced message.
RFF
C(9) : ReferenceA segment to provide the references related to the application error.
ERC
C(99) : Application error informationA segment identifying the type of application errors within a message.
FTX
C(99) : Free textA segment to provide explanation and/or supplementary information related to the specified application error.
SG5 C(99) : TAX-MOA-GEI
A group of segments identifying the customs amounts for duties, taxes and fees, following computation by customs, for all customs declarations.
TAX
M(1) : Duty/tax/fee detailsA segment identifying the tax and/or duty and/or fee type, rate and base totals for all customs declarations.
MOA
C(99) : Monetary amountA segment to identify a tax and/or duty and/or fee amount related to TAX.
GEI
C(99) : Processing informationA segment identifying method of payment.
SG6 C(99999) : DOC-PAC-RFF-PCI-FTX-TDT-LOC-DTM-GEI-MEA-EQD-SG7-SG9-SG11-SG12-SG14
A group of segments specifying goods item details including status of goods, related references, package identification, details of transport, relevant parties, contacts, dates and/or times and location, general indicators, measurements, documentary requirements, monetary amounts, currencies and item taxes, fees and duties.
DOC
M(1) : Document/message detailsA segment to identify the master bill number reported in a multi-consignment message. This segment can also be used to identify the Customs declaration where the CUSRES is responding to multiple declarations.
PAC
C(9) : PackageA segment identifying number and type of packages.
RFF
C(9) : ReferenceA segment identifying a particular reference, e.g. house of bill number, master bill number.
PCI
C(9) : Package identificationA segment identifying marking and labels on individual shipping or packing units.
FTX
C(99) : Free textA segment to provide the goods description.
TDT
C(9) : Transport informationA segment to identify any means of transport that is related to a part of the information in the message. For example, when one CUSRES message contains more than one release note.
LOC
C(9) : Place/location identificationA segment identifying the places relevant to the item, which is different from the places identified at header level. For example, customs house of entry, warehouse, etc.
DTM
C(9) : Date/time/periodA segment identifying necessary dates.
GEI
C(99) : Processing informationA segment identifying customs processing indicator at item level.
MEA
C(99) : MeasurementsSegment identifying various measurement values.
EQD
C(999) : Equipment detailsA segment identifying equipment initials and numbers.
SG7 C(9) : NAD-SG8
A group of segments identifying information on the party and other contact and communication contact information related only to part of the message.
NAD
M(1) : Name and addressA segment identifying information about a party related only to a part of the message. For example, in a message with several release notes or in a message related to several declarations, a customs agent and the person responsible for the information.
SG8 C(9) : CTA-COM
A group of segments identifying contact and communication contact information.
CTA
M(1) : Contact informationA segment to identify a person or a department to whom communication should be directed.
COM
C(9) : Communication contactA segment to identify a communication number of a department or a person to whom communication should be directed.
SG9 C(99) : MOA-SG10
A group of segments identifying the monetary amount, currencies and the rate of exchange, against which duties, taxes or fees are being computed, per item.
MOA
M(1) : Monetary amountA segment identifying the monetary amount.
SG10 C(9) : CUX-DTM
A group of segments identifying currencies, a rate of exchange and an associated date related to the monetary amount.
CUX
M(1) : CurrenciesA segment identifying currencies and the rate of exchange for a monetary amount identified within this group.
DTM
C(1) : Date/time/periodA segment identifying a date related to the rate of exchange.
SG11 C(99) : TAX-MOA-GEI
A group of segments identifying customs amounts for taxes, duties and fees related to a single customs declaration (e.g. a simplified customs declaration).
TAX
M(1) : Duty/tax/fee detailsA segment identifying tax/duty/fee related to a single customs declaration.
MOA
C(99) : Monetary amountA segment identifying tax/duty/fee amounts related to TAX.
GEI
C(99) : Processing informationA segment identifying the methods of payment related to TAX.
SG12 C(9999) : CST-FTX-SG13
A group of segments identifying goods in terms of customs identities and customs amounts for duties, taxes and fees, following computation by customs.
CST
M(1) : Customs status of goodsA segment identifying goods in terms of customs identities, status and intended use.
FTX
C(9) : Free textA segment to specify the goods description.
SG13 C(999999) : TAX-MOA-GEI-MEA-RFF
A group of segments identifying the customs amounts for- duties, taxes and fees related to the customs items identified in CST.
TAX
M(1) : Duty/tax/fee detailsA segment identifying the tax and/or duty and/or fee type, rate and base for customs item amounts.
MOA
C(99) : Monetary amountA segment identifying a tax and/or duty and/or fee amount related to TAX.
GEI
C(99) : Processing informationA segment identifying method of payment.
MEA
C(9) : MeasurementsA segment to identify measurements related to the calculation of the customs duties.
RFF
C(9) : ReferenceA segment to identify reference numbers related to the tax calculations (e.g. reference number for VAT free allowance).
SG14 C(9999) : ERP-RFF-ERC-FTX
A group of segments identifying an application error condition related only to a part of the message.
ERP
M(1) : Error point detailsA segment identifying the location of an application error.
RFF
C(9) : ReferenceA segment to provide the references related to the application error.
ERC
C(9999) : Application error informationA segment identifying the type of application errors.
FTX
C(9) : Free textA segment to provide explanation and/or supplementary information related to the specified application error.
CNT
C(9) : Control totalA segment to identify control totals.
SG15 C(9) : 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 resultA segment containing the result of the algorithm permitting the verification of the authenticity of the sender and the integrity of the data.
DTM
C(9) : Date/time/periodA segment identifying a date associated with the preceding AUT.
UNT
M(1) : Message trailerA 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 DTM, Date/time/period C 9 FTX, Free text C 99 TDT, Transport information C 9 LOC, Place/location identification C 99 GEI, Processing information C 10 EQD, Equipment details C 999 --- Segment Group 1 ------------------------- C 99 -------+ NAD, Name and address M 1 | | --- Segment Group 2 ------------------------- C 9 ------+| CTA, Contact information M 1 || COM, Communication contact C 9 || ---- ----------------------------------------------------------++ --- Segment Group 3 ------------------------- C 999 -------+ RFF, Reference M 1 | DTM, Date/time/period C 9 | LOC, Place/location identification C 9 | ---- -----------------------------------------------------------+ --- Segment Group 4 ------------------------- C 99999 -------+ ERP, Error point details M 1 | RFF, Reference C 9 | ERC, Application error information C 99 | FTX, Free text C 99 | ---- -----------------------------------------------------------+ --- Segment Group 5 ------------------------- C 99 -------+ TAX, Duty/tax/fee details M 1 | MOA, Monetary amount C 99 | GEI, Processing information C 99 | ---- -----------------------------------------------------------+ --- Segment Group 6 ------------------------- C 99999 -------+ DOC, Document/message details M 1 | PAC, Package C 9 | RFF, Reference C 9 | PCI, Package identification C 9 | FTX, Free text C 99 | TDT, Transport information C 9 | LOC, Place/location identification C 9 | DTM, Date/time/period C 9 | GEI, Processing information C 99 | MEA, Measurements C 99 | EQD, Equipment details C 999 | | --- Segment Group 7 ------------------------- C 9 ------+| NAD, Name and address M 1 || || --- Segment Group 8 ------------------------- C 9 -----+|| CTA, Contact information M 1 ||| COM, Communication contact C 9 ||| ---- ---------------------------------------------------------++| | --- Segment Group 9 ------------------------- C 99 ------+| MOA, Monetary amount M 1 || || --- Segment Group 10 ------------------------ C 9 -----+|| CUX, Currencies M 1 ||| DTM, Date/time/period C 1 ||| ---- ---------------------------------------------------------++| | --- Segment Group 11 ------------------------ C 99 ------+| TAX, Duty/tax/fee details M 1 || MOA, Monetary amount C 99 || GEI, Processing information C 99 || ---- ----------------------------------------------------------+| | --- Segment Group 12 ------------------------ C 9999 ------+| CST, Customs status of goods M 1 || FTX, Free text C 9 || || --- Segment Group 13 ------------------------ C 999999 -----+|| TAX, Duty/tax/fee details M 1 ||| MOA, Monetary amount C 99 ||| GEI, Processing information C 99 ||| MEA, Measurements C 9 ||| RFF, Reference C 9 ||| ---- ---------------------------------------------------------++| | --- Segment Group 14 ------------------------ C 9999 ------+| ERP, Error point details M 1 || RFF, Reference C 9 || ERC, Application error information C 9999 || FTX, Free text C 9 || ---- ----------------------------------------------------------++ CNT, Control total C 9 --- Segment Group 15 ------------------------ C 9 -------+ AUT, Authentication result M 1 | DTM, Date/time/period C 9 | ---- -----------------------------------------------------------+ UNT, Message trailer M 1