Tullverket

EDI – System developers

Here you will find information needed for system developers that are developing a customs EDI-system or companies developing an in-house system.

Several EDI authorisations becomes one EDI registration (TVEDI)

Swedish Customs will change the process for EDI authorisations on 15 September 2020. Current EDI authorisations TVEUP, TVEUT, TVEMU, TVZEM, TVEKH, TVEKB, TVEUS and test authorisation for system developers will cease to apply and will be transformed to a registration for communication via EDI (TVEDI).

Swedish Customs will contact the companies concerned.


Before you may gain access to the Swedish Customs' test environment and send test transactions following our technical specifications your company should:

  • apply for Registration for electronic communication via EDI (TVEDI)
  • register a contact person for signature certificates
  • receive Technical specifications for EDI-communication with Swedish Customs and install the passwords for the EDI party and communication party
  • order and install signature certificates.

Application procedure for TVEDI

Approved tests for system developers


Once the final tests are approved you will receive a Decision on approved tests. An approved test means that Swedish Customs has approved that the system developers' final test for the current message was correct at the time of the test. This does not mean that Swedish Customs has examined whether the system in question has any limitations. Neither has Swedish Customs examined any other features of the system than the fact that the system is able to send and receive messages according to current technical specifications.

On request, your approved test results may be published on tullverket.se. A company is able to go through simplified tests if they conduct final tests with a system that has a decision of approved tests.

EDI –Test environment and final tests

EDI – List of systems with approved tests

More detailed information for system developers is available on the website in Swedish.

Support when developing a system

Cooperation during your development process

To facilitate our support during the development process we recommend that

  • a system description of the system configuration and communication solution is available
  • the system has exchange logs
  • the system applies the terms and definitions used in the technical specifications and guidelines for declarations
  • statuses, symbols etc. used in the system are clearly defined that those who buy the system can easily explain their problems in the event of contact with Swedish Customs.

Technical specifications

The technical specifications provided by Swedish Customs describes the content and structure of the EDI messages. The system your company develops must follow these technical specifications.

Technical specifications (in Swedish)

Technical specifications ENS (SCTS-AIS)

Guidelines for declarations

The Guidelines for declarations provide information on how to correctly fill in electronic documents. This is to be used in combination with the technical specifications.

Guidelines for declarations (in Swedish)

EDI Security

Swedish Customs applies a PKI-based security concept. The system your company develops must follow the security requirements.

EDI – Security concept

EDI Communication

Swedish Customs provides the possibility to submit data electronically with TCP/IP over Internet. In order to do so the OFTP version 2 is used which is the latest version of OFTP. The system your company develops must follow RFC5024 that describes the protocol for OTFP version 2.

EDI – Communication

How to calculate Tull-id number series (LRN)

 How to calculate Tull-id-number series (to be used as Local Reference Number, LRN)

Check digit calculation for customs IDPDF

Information about ENS/ICS

Test indicator

In order to be able to control whether a specific electronic message is to be sent to the Swedish Customs' production environment or the test environment, the test indicator must be used correctly. Even when receiving messages, the system must take into account the test indicator so that no confusion can occur. An omitted test indicator or the value "0" means production environment. Other valid values mean test environment (currently only the value "1" is used. For more information see the technical specification in question.

Swedish Customs recommend that you develop a system that can simultaneously handle transactions in the test and production environment on the same EDI party.


Questions or problems?

For questions or problems during the test process, contact EDI Test at edi.test@tullverket.se.


Last updated: 2020-09-14

What is updated:

New page


4000