What are the mandatory, conditional and optional S&S GB fields?

HMRC defines which GB ENS fields are mandatory, conditional, or optional. This guide breaks down each one with explanations and XML tags.

HMRC has confirmed what the mandatory, conditional and optional fields are for GB ENS declarations. Let's look at them in more detail!

https://www.ensadviser.com/content/images/2025/01/image-2.png

S&S GB Dataset

Mandatory Fields

 

  1. Local Reference Number (LRN) – The Local Reference Number needs to be unique for every submission. This number will be used by HMG to reference the specific entry summary declaration if there are any queries around the submitted declaration before it has been accepted and a movement reference number (MRN) issued.
    1. In the XML file: RefNumHEA4
  2. Consignor – Exporter/seller details. HMRC needs these consignor details: EORI number (optional), name, street and number, postcode, city and country code
    1. In the XML file: TRACONCO1
  3. Person lodging the summary declaration - The GB EORI number of the person lodging the entry summary declaration must be provided.
    1. In the XML file: PERLODSUMDEC
  4. Consignee – Importer/buyer details. HMRC needs these consignee details: EORI number (optional), name, street and number, postcode, city and country code.
    1. In the XML file: TRACONCE1
  5. Country(ies) of routing codes – Chronological order of all countries between departure and final destination. E.g. DE->FR->GB. The 2 digit country code must be used. This information can only be added on header level.
    1. In the XML file: CouOfRouCodITI1
  6. Mode of transport at the border – The mode of transport corresponding to the active means of transport in which the goods are expected to enter the customs territory of the Community. These are the options: 
    1.  
      1. Maritime
      1. Rail
      1. Road
      1. RoRo – accompanied
      1. RoRo – unaccompanied
    1. In the XML file: TraModAtBorHEA76
  7. Identity of means of transport crossing border – This field where appropriate contains the identity of the means of transport or, if containerised, the equipment identification number. 
      1. For maritime, the IMO ship identification number to be included.
      1. For Rail the wagon number to be included.
      1. Not to be used for Air - the IATA flight number should be included in the data field ‘conveyance reference number’.
      1. For accompanied roll-on roll-off, the Vehicle Registration Number to be included. - Road (Channel Tunnel), the Vehicle Registration Number to be included.
      1. For unaccompanied roll-on roll-off, the IMO ship identification number to be included.
    1. In the XML file: IdeOfMeaOfTraCroHEA85
  8. First place of arrival code – The customs office of first entry code needs to be sent. E.g.: GB000040

    List of codes for all ports:
    https://www.gov.uk/guidance/location-codes-for-ports-of-entry-in-great-britain

    If the port is missing from the list above, the closest customs office code needs to be sent.
    1. In the XML file: RefNumCUSOFFFENT731
  9. Date and time of arrival at first place of arrival in the Customs territory – Expected date and time of arrival. Format: YYYYMMDDHHMM
    1. In the XML file: ExpDatOfArrFIRENT733
  10. Place of loading – Place of Loading is used for the identification of the seaport, airport, freight terminal, rail station or other place at which the goods are loaded onto the means of transport being used for their carriage, including the country where it is located.
      1. For unaccompanied this will be the port of departure
      1. For accompanied this will be the freight terminal, warehouse or other place
    1. In the XML file: PlaLoaGOOITE334
  11. Place of unloading - Place of unloading is used for the identification of the seaport, airport, freight terminal, rail station or other place at which the goods are unloaded.
      1. For unaccompanied this will be the port of arrival
      1. For accompanied this will be the freight terminal, warehouse or other place
    1. In the XML file: PlaUnlGOOITE334
  12. Goods description – This is a plain language description precise enough for customs to be able to identify the goods without reference to other documents/materials.

    You can find acceptable item description examples here:
    https://taxation-customs.ec.europa.eu/system/files/2021-03/guidance_acceptable_goods_description_en.pdf
    1. In the XML file: GooDesGDS23
  13. Types of packages – Type of package to be specified from a list of package types.

    You can find the package codes here:
    https://www.gov.uk/government/publications/uk-trade-tariff-kind-of-packages-codes/uk-trade-tariff-kind-of-packages-codes
    1. In the XML file: KinOfPacGS23
  14. Number of packages – The number of packages based on number of packages which are packaged in such a way that they cannot be divided without undoing the package.
    1. In the XML file: NumOfPacGS24
  15. Goods item number – The number of the item in relation to the total number of items contained in the declaration.
    1. In the XML file: IteNumGDS7
  16. Gross mass (kg) – Total Gross Weight of goods including packaging.
    1. In the XML file: TotGroMasHEA307
  17. Seal number – Seal number for package. If there is no seal, send ’No Seal’.
    1. In the XML file: SeaIdSEAID530
  18. Transport document number  - The reference for the transport document that covers the transport of the goods into the UK. Usually Bill of Lading, Container List or the Commercial Invoice.
    1. In the XML file: DocRefDC23
  19. Transport Charges Method of payment code – The payment method for transport charges.

    The codes are:
    A - Payment in cash
    B - Payment by credit card
    C - Payment by cheque
    D -Other (for example direct debit to cash account)
    H - Electronic credit transfer
    Y - Account holder with carrier
    Z - Not pre-paid

    a. In the XML file: TraChaMetOfPayHEA1
  20. Declaration date and time – The date and time when the declaration is submitted. Format: YYYYMMDDHHMM
    1. In the XML file: DecDatTimHEA114

Conditional Fields

  1. Unique Consignment Reference Number - This field must be provided by Fast Parcel Operators. It is optional for other modes of transport.
    1. In the XML file: ComRefNumHEA
  2. Carrier (or in other words, the haulier)- The person responsible for submitting the ENS.
    1. This field must be completed if the carrier is different from the person
      lodging the ENS.
    1. The carrier must be identified by an EORI number and the carrier name and address are conditional.
      1. The name and address are optional if the EORI is a GB EORI.
      1. The name and address are mandatory if the EORI is an EU EORI.
    1. In the XML file: TRACARENT601
  3. Notify party - The party that needs to be notified of the arrival of the goods.
    1. This field must be provided where this information is available.
    1. In the XML file: NOTPAR670
  4. Conveyance reference number - This field should be provided for all modes except accompanied or unaccompanied roll on roll off. You should provide information to identify the journey of the means of transport for example, voyage, flight or trip number, if applicable.
    1. In the XML file: ConRefNumHEA
  5. Number of pieces - This field must be provided if pieces are unpackaged. if ‘type of package’ indicates bulk, number of pieces is not required.
    1. In the XML file: NumOfPieGS25
  6. Container number - This field must be provided where containers are being moved. In particular this must be provided for Maritime Containers and Unaccompanied RoRo (where it should be the Trailer Number).
    1. In the XML file: ConNumNR21
  7. Shipping marks and numbers of packages - This field must be completed for all packaged goods and should include information and descriptions that will enable the identification of individual packages.
    1. In the XML file: MarNumOfPacGSL21
  8. UN dangerous goods code - This code is a unique, 4-digit serial number assigned by the UN. It must be provided where relevant. 
    1. In the XML file: UNDanGooCodGDI1

Optional Fields

  1. Commodity code - The commodity / HS code of the item. Only the first 4 digits are required.
    1. In the XML file: ComNomCMD1
  2. Total number of packages - The total number of packages for goods declared within declaration.
    1. In the XML file: TotNumOfPacHEA306
  3. Number of items - Total number of items declared in the Entry Summary Declaration.
    1. In the XML file: TotNumOfIteHEA305
  4. Other specific circumstances indicator - Specific circumstance indicator, can be:

    A - Postal and express consignments
    C - Road mode of transport
    D - Rail mode of transport
    E - Authorised economic operator
    1. In the XML file: SpeCirIndHEA1
  5. Special mentions - Enter Codes for Special Mentions ‘Additional Information/Special Indication Code’ to be sent across the Common Domain.
    The codes can be found under the 'Additional Information' tab in the Reduced ENS Dataset Excel file.
    1. In the XML file: AddInfCodMT23
  6. Signature and authentication - I have not found anything related to this optional field. It does not seem to have a field in the XML.
  7. Declaration place - Text describing where the declaration was completed (office address etc).
    1. In the XML file: DecPlaHEA394
  8. Nationality of active means of transport crossing the border - Nationality of the Means of Transport Crossing Border (e.g.: trailer or unit ID). Should only be added for RoRo or Road movements.
    1. In the XML file: NatIDEMEATRAGI973
  9. Office of subsequent entry - Reference number is required if some of the goods are destined to be transported to subsequent Offices of Entry.
    1. In the XML file: RefNumSUBENR909

Sources

The newest Appendix 1 (which contains all the field rules and codes) can be downloaded from here: https://www.gov.uk/guidance/safety-and-security-requirements-on-imports-and-exports

The API guide can be accessed here: https://developer.service.hmrc.gov.uk/guides/safety-and-security-import-declarations-end-to-end-service-guide/

Still have questions about this? Let me know in the comments section!