The Danish VAT API: what the docs do not say

The Tax Agency’s VAT filing API lets an accounting program pre-fill the Danish VAT return. We built a client and tested it against the Tax Agency’s test environment. This is what we learned — for anyone building or choosing a solution.

Last checked:

Step by stepFive things we learned
  1. Only rsa-sha1
  2. Errors come with HTTP 200
  3. Error codes missing from the table
  4. Whole kroner
  5. Access expires quietly

What the API can and cannot do

The API is also called NemVirksomhed and consists of three services for accounting software vendors. The program pre-fills the return, the user follows a link to TastSelv Erhverv and approves, and the receipt can be shown in the program.

ServiceWhat it doesWhat to know
VirksomhedKalenderHentFetches the business’s deadlinesGives deadlines only, not periods — derive the period from the frequency
ModtagMomsangivelseForeloebigSends a draft and returns a linkDoes not file; the business approves on skat.dk
MomsangivelseKvitteringHentFetches the receiptBefore approval it answers with an advisory
The three services as we used them

The API is free; the vendor carries its own costs and first-line support under the cooperation agreement with the Tax Agency.

Five things we learned

  1. Only rsa-sha1. The gateway rejects rsa-sha256 signatures and accepts only rsa-sha1 with a sha1 digest. An expired timestamp is rejected too.
  2. Errors come with HTTP 200. Business errors sit in the response structure (error or advisory), not as a SOAP Fault. A client that only catches Faults reads “no data” when it actually has no access.
  3. Error codes missing from the table. We met 8283 (search period over 2 years), 2510 (foreign purchase VAT requires the “Rubrik A-varer” box — explicitly 0 for purchases outside the EU) and 475 (no returns for the period).
  4. Whole kroner. Amounts are integers in kroner without øre, in 17 fields in a fixed order.
  5. Access expires quietly. The customer’s delegation to the software vendor expires after 3 years. A sudden error 4801 for a customer that has worked for years is an expired delegation, not a bug.

The right has another name. The system user’s right in TastSelv Erhverv is called “Adgang til EMCS B2B Systembruger” — without the word VAT. And a production certificate (OCES3 system certificate, ordered in MitID Erhverv) does not work against the test environment.

Should you build it yourself?

If you use a registered accounting program, it must support VAT filing through the Tax Agency’s VAT API — so normally you build nothing. Building makes sense if you have your own finance system or are a software vendor. The contact to the Tax Agency’s API team is on skat.dk.

Questions and answers

Can the API file VAT without anyone approving?

No. The return becomes a draft that the business or accountant approves on skat.dk.

What does the API cost?

It is free to use; the vendor carries its own costs.

Where are the endpoints?

They are handed out under the cooperation agreement and are confidential, so we do not show them here.

Sources

Last reviewed: 2026-12-03

Fixed price, no commitment

Building a VAT integration?

Tell us which system it concerns. We answer with a plan for the integration and a fixed price.

  • A fixed price before we start
  • An answer by e-mail, no calls
  • Your details are used only to answer you

Fields marked with * are required.

What is it about?