Test data for H7

On this site you can find test data for various test cases for H7 on the TFE environment.

Note: It is highly recommended that you start the testing process by going through and fulfilling the Basic test cases as they are created as a guide and to check that everything is working as intended.

Basic test cases

These test cases are for testing basic functionality of the H7 as well as its supporting functions, such as correction/amendment, invalidation, etc.

Each test scenario comes with a collection of test files needed to fulfill each test scenario as well as a guide document on what to expect and which notifications the test scenarios should generate. Be aware that these test cases are not necessarily filled with realistic data and are only used for the purpose of making sure that the basic functionality is working as intended and that you are aware of which notifications are sent for each scenario.

Test case
Description
XML test files
Documentation
Test package
Submit H7
Test case for submitting an H7 declaration. It includes submitting a standard (IMA) and a pre-lodged(IMD) declaration as well as submitting an H7 declaration which is rejected.
Standard H7 (IMA).xml
Pre-lodged H7 (IMD).xml
Rejected standard H7 (IMA).xml
Functional test cases - H7.docx
Functional test cases - H7.zip
Correction of pre-lodged H7
Test case for correcting a pre-lodged H7 declaration. It includes submitting a pre-lodged H7 declaration (IMD), sending a correction request and receiving the correct notifications.
There will also be scenarios to test that errors are caught.
Pre-lodged H7 (IMD).xml
Correction request with wrong format.xml
Correction request failing validation.xml
Successful correction request.xml
Functional test cases - Correction.docx
Functional test cases - Correction.zip
Amendment of a standard H7
Test case for amending (correcting) a standard H7 declaration. It includes submitting a standard H7 declaration (IMA), sending an amendment request and receiving the correct notifications.
There will also be scenarios to test that errors are caught.
Standard H7 (IMA).xml
Amendment request with wrong format.xml
Amendment request failing validation.xml
Successful amendment request.xml
Functional test cases - Amendment.docx
Functional test cases - Amendment.zip
Invalidation of a standard H7
Test case for invalidating a standard H7 declaration. It includes submitting a standard H7 declaration (IMA), sending an invalidation request and receiving the correct notifications.
There will also be scenarios to test that errors are caught.
Standard H7 (IMA).xml
Invalidation request with wrong format.xml
Successful invalidation request.xml
Functional test cases - Invalidation.docx
Functional test cases - Invalidation.zip
Invalidation and repayment of a standard H7
Test case for invalidating with repayment a standard H7 declaration. It includes submitting a standard H7 declaration (IMA), sending an invalidation and repayment request and receiving the correct notifications.
There will also be scenarios to test that errors are caught.
Standard H7 (IMA).xml
Invalidation and repayment request with wrong format.xml
Invalidation and repayment request failing validation.xml
Successful invalidation and repayment request.xml
Functional test cases - Invalidation and repayment.docx
Functional test cases - Invalidation and repayment.zip
Submit I2
Test case for presenting goods via I2 for a pre-lodged H7 declaration. It includes submitting a pre-lodged H7 declaration (IMD), sending an I2 - Good presentation declaration and receiving the correct notifications.
There will also be scenarios to test that errors are caught.
Pre-lodged H7 (IMD).xml
I2 declaration failing validation.xml
Successful submission of an I2 declaration.xml
Functional test cases - I2.docx
Functional test cases - I2.zip

H7 example XMLs

The following XML examples are intended to show how to fill an H7 XML file in different scenarios, such as multiple goods items, different currencies, etc.
Each file is accompanied by a short description as well as the expected notifications that should be received.

Test case
Description
XML file
Notifications
Relevant notes
Standard (IMA) C07 with automatic release
A standard H7 declaration with C07 procedure (Consignments of low value) and automatic release of goods.
IMA_C07_AR.xml
CWMACC
CWMTAX
CWMCLE
Standard (IMA) C07 with manual release
A standard H7 declaration with C07 procedure (Consignments of low value) and manual release.
IMA_C07_MR.xml
CWMACC
CWMTAX
After manual handling:
CWMCLE
The Importer is not registered for deferred payment (has pligtkode 079) and the declaration is selected for manual handling by a Customs Officer.
Standard (IMA) C07 with automatic release and direct representation
A standard H7 declaration with C07 procedure (Consignments of low value), automatic release and direct representation.
IMA_C07_AR_DR.xml
CWMACC
CWMTAX
CWMCLE
The Agent-field is filled out with FunctionCode = 2, which means direct representation.
Standard (IMA) C07 with automatic release and IOSS
A standard H7 declaration with C07 and F48 procedure (Consignments of low value), automatic release and IOSS.
IMA_C07_AR_IOSS.xml
CWMACC
CWMCLE
The DomesticDutyTaxParty-field is filled out with RoleCode = FR5 and an extra GovernmentProcedure is declared (F48), meaning that the declaration makes use of the IOSS scheme.
When a declaration contains an IOSS-number no VAT will be calculated, and therefore no CWMTAX-notification will be sent.
Standard (IMA) C07 with automatic release, 3 different items with different currencies
A standard H7 declaration with C07 (Consignments of low value) and automatic release.
There are 3 different goods items declared, all declared with different currencies as well.
IMA_C07_AR_3GI_3CUR.xml
CWMACC
CWMTAX
CWMCLE
It is possible to declared different goods items with different currencies. In the CWMTAX-notification they will all be calculated and stated in DKK.
Pre-lodged (IMD) C07 with automatic release
A pre-lodged H7 declaration with C07 procedure (Consignments of low value) and automatic release of goods.
IMD_C07_AR.xml
CWMTAX
CWMRCV
When sending a pre-lodged declaration there will be a pre-calculation of VAT sent in the CWMTAX-notification.
When the goods have been presented, a final VAT calculation will be done and the remaining notifications will be sent (see the notications for an IMA).
Standard (IMA) C08 with VAT and automatic release
A standard H7 declaration with C08 procedure (Consignments sent from one private individual to another), imposed VAT and automatic release of goods.
IMA_C08_AR_VAT.xml
CWMACC
CWMTAX
CWMCLE
The declaration contains goods items mentioned in Article 27 of Regulation (EC) No 1186/2009 (tobacco, alcohol and toilet water) and is therefore not relieved from VAT.
Notice that that the GoodsMeasure-field also has the TariffQuantity-field filled when declaring this kind of goods item.
Standard (IMA) C08 with VAT and manual release
A standard H7 declaration with C08 procedure (Consignments sent from one private individual to another), imposed VAT and manual release of goods.
IMA_C08_MR_VAT.xml
CWMACC
CWMTAX
After manual handling:
CWMCLE
The declaration contains goods items mentioned in Article 27 of Regulation (EC) No 1186/2009 (tobacco, alcohol and toilet water) and is therefore not relieved from VAT.
Notice that that the GoodsMeasure-field also has the TariffQuantity-field filled when declaring this kind of goods item.
The Importer is not registered for deferred payment (has pligtkode 079), as they are a private person, and the declaration is selected for manual handling by a Customs Officer.
Standard (IMA) C08 with no VAT and automatic release
A standard H7 declaration with C08 procedure (Consignments sent from one private individual to another), no VAT and automatic release of goods.
IMA_C08_AR_noVAT.xml
CWMACC
CWMCLE
Since the declaration does not contains goods items mentioned in Article 27 of Regulation (EC) No 1186/2009 (tobacco, alcohol and toilet water) it is relieved from Import VAT. Therefore there is no CWMTAX-notification.
Pre-lodged (IMA) C08 with no VAT and automatic release
A pre-lodged H7 declaration with C08 procedure (Consignments sent from one private individual to another), no VAT and automatic release of goods.
IMD_C08_AR_noVAT.xml
CWMRCV
Since the declaration does not contains goods items mentioned in Article 27 of Regulation (EC) No 1186/2009 (tobacco, alcohol and toilet water) it is relieved from Import VAT. Therefore there is no CWMTAX-notification.
When the goods have been presented, the remaining notifications will be sent (see the notications for an IMA with no VAT).

Specific test scenarios

This section contains XML examples with more business relevant scenarios. The examples all contain different scenarios for actors, procedures and schemes.
The examples are split into 3 categories dependent on their use case: B2B (Business-to-Business), B2P (Business-to-Private) and P2P (Private-to-Private).

B2B examples

Business-to-business with no representation
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Platform (Seller)
Business (EORI)
Business (EORI)
None
C07/None/None
A standard customs declaration without any representation. The declarant is responsible for VAT payment.
B2B_1.xml
Business to business with direct representation
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Platform (Seller)
Business (EORI)
Business (EORI)
Courier company/Post/Express (Direct Representation)
C07/None/None
A standard customs declaration with direct representation. The declarant is responsible for VAT payment.
B2B_2.xml

B2P examples

Business to private with no representation
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Platform (Seller)
Private (EORI)
Private (EORI)
None
C07/None/None
A standard customs declaration with no representation. The declarant is responsible for VAT payment and the declaration will be selected for manual cash payment. The payment has to be handled before the declaration can go to clearance.
B2P_1.xml
Business to private with direct representation
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Platform (Seller)
Private (EORI)
Private (EORI)
Courier company/Post/Express (Direct Representation)
C07/None/None
A standard customs declaration with direct representation. The declarant is responsible for VAT payment and the declaration will be selected for manual cash payment. The payment has to be handled before the declaration can go to clearance.
B2P_2.xml
Business to private with direct representation - the Import Scheme (Importordningen)
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Platform (Seller)
Private (EORI)
Private (EORI)
Courier company/Post/Express (Direct Representation)
C07 & F48/Import scheme/FR5
A standard customs declaration with direct representation. The special scheme for distance sales of goods (the Import Scheme) is declared, and there will therefore be no VAT calculation (no CWMTAX-notification).
B2P_3.xml
Business to private with direct representation – the Transport Scheme (Transportørordningen)
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Platform (Seller)
Private (EORI)
Courier company/Post/Express (Special EORI for private customs declaration)
Courier company/Post/Express (Direct Representation)
C07 & F49/Transport scheme/None
A standard customs declaration with direct representation. The special scheme for special arrangements for declaration and payment of import VAT (the Transport Scheme).
B2P_4.xml

P2P examples

Private to private (direct representation)
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Individual (Private)
Private (EORI)
Private (EORI)
Courier company/Post/Express (Direct Representation)
C08/None/None
A standard customs declaration with direct representation. There will be no VAT calculation and therefore no CWMTAX-notification.
P2P_1.xml
Private to private with representation – special commodity code
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Individual (Private)
Private (EORI)
Private (EORI)
Courier company/Post/Express (Direct Representation)
C08/None/None
A standard customs declaration with direct representation. The declaration will be selected for manual cash payment because of the commodity code (alcohol). The payment has to be handled before the declaration can go to clearance.
P2P_2.xml
Private to private (no representation)
Exporter (Consignor)
Importer
Declarant
Representative (Agent)
Procedure(s)/Scheme/RoleCode
Relevant notes
XML file
Individual (Private)
Private (EORI)
Private (EORI)
None
C08/None/None
A standard customs declaration with no representation. There will be no VAT calculation and therefore no CWMTAX-notification.
P2P_3.xml