---
title: "Customs Clearance NO - \"Dokumentkontroll\" via API"
description: sende dokumenter i digitoll og dokkontroll via API
---

[Skip to content](https://hub.emmasys.com/help-center/customs-clearance-no-dokumentkontroll-via-api#main-content)

English

Show submenu for translations

[Ask our support](https://hub.emmasys.com/help-center/kb-tickets/new?hsLang=en)

![emma logo santa hat (4)](https://hub.emmasys.com/hs-fs/hubfs/emma%20logo%20santa%20hat%20(4).png?width=300&height=100&name=emma%20logo%20santa%20hat%20(4).png)

- [Help Center](https://hub.emmasys.com/help-center)
- [Customer Portal](https://hub.emmasys.com/customer-portal)
- [Website](https://emmasys.com/)
- [Status Page](https://hub.emmasys.com/help-center/system-status)

Open main navigation

Close main navigation

- [Help Center](https://hub.emmasys.com/help-center)
- [Customer Portal](https://hub.emmasys.com/customer-portal)
- [Website](https://emmasys.com/)
- [Status Page](https://hub.emmasys.com/help-center/system-status)
- English
  
  Show submenu for translations
- [Ask our support](https://hub.emmasys.com/help-center/kb-tickets/new)
- Contact us

 Contact us

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://hub.emmasys.com/help-center?hsLang=en)
2. [Emma CMS Norway](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en)
3. [Customs Clearance NO](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en#customs-clearance-no)

September 4, 2025

# Customs Clearance NO - "Dokumentkontroll" via API

## Send Documents to Norwegian Customs (Tolletaten) via API

This guide explains how EmmaSped sends supporting documents to Norwegian Customs (Tolletaten) using our API. It covers prerequisites, how documents are uploaded, when they are transmitted automatically, how to send them on demand, and how to verify delivery.

---

#### 1) Prerequisites

1. **Maskinporten integration**
   
     - You must be connected to **Maskinporten** with a valid client certificate.
     - Your organization needs an **Integration ID (IntegrasjonsID)** registered with **Digdir** (Digitaliseringsdirektoratet).
     - This setup is the [same as for Digitoll](https://hub.emmasys.com/help-center/digitoll-api-mot-maskinporten?hsLang=en). If Digitoll is already working from your environment, you typically meet these requirements.

---

#### 2) Where to add documents in EmmaSped

Documents are attached to the declaration in **Scan** inside the customs clearance view:

- **Paste/attached Doc**: Paste directly from clipboard into **Scan**.
  
  ![Snag\_c46b62](https://hub.emmasys.com/hs-fs/hubfs/Snag_c46b62.png?width=236&height=40&name=Snag_c46b62.png)
- **Email/Outlook integration**: Forward/drag emails or attachments from Outlook; they appear under **Scan** for the selected declaration.

> Tip: Give files clear names (e.g., `INV_12345_2025-08-01.pdf`) to simplify audit trails.

---

#### 3) When documents are sent automatically

When a declaration is **submitted in TVINN toward Digitoll** (i.e., the flow uses Digitoll), EmmaSped will **automatically send the attached documents via API** to Tolletaten.

- After a successful send, you can verify timestamp under **"DOK KONTROLL SENDT"** .
  
  ![Snag\_c5c209](https://hub.emmasys.com/hs-fs/hubfs/Snag_c5c209.png?width=464&height=130&name=Snag_c5c209.png)

> Note: If the declaration is addressed to a **different customs office** where Digitoll does **not** apply, Tolletaten will only request documents **if a document control is initiated**.

---

#### 4) How to send documents on demand (manual send)

If documents are not sent automatically (e.g., non‑Digitoll cases) or if Customs requests them:

1. Open the declaration in EmmaSped.
2. Confirm the necessary files are present under **SCAN**.
3. **from TVINN table, Select/mark the declaration** in the list.
4. Go to the **DoK Kontrol** menu in the **top‑right** and choose **"Send med API"** 
   
   ![Snag\_c367be](https://hub.emmasys.com/hs-fs/hubfs/Snag_c367be.png?width=670&height=143&name=Snag_c367be.png)

**Expected system behavior**

- The system packages the current attachments from **Scan** and transmits them to Tolletaten via the API endpoint authorized through Maskinporten.
- On success, the declaration shows that documents have been sent (see verification below).

---

#### 5) How to verify that documents were sent

Use **any** of the following:

- **TVINN tabell**: Look for **"DOK KONTROLL SENDT"** colum in the table.
- **TVINN table indicators** (for document control cases):
  
    - Declaration status  **5**.
    - The **Kontroll** field show code **D** (document control/D).

> If Customs later requests documents, repeat the **Send with API** action after confirming the correct attachments are in **Scan**.

---

#### 6) Common scenarios

### A) Digitoll flow

- You submit the declaration in TVINN (toward Digitoll).
- EmmaSped **auto‑sends** attached documents.
- You see a date in **"DOK KONTROLL SENDT"**. And in the note on the actual scan view

### B) Other expedition unit / non‑Digitoll

- Documents are **not** auto‑sent.
- If Tolletaten starts a **document control**, TVINN may show **status 5** and **Control = D**.
- You then **send with API** manually from **Dok kontroll → Send med API**.

---

#### 7) Troubleshooting

- **I don’t see “DOK KONTROLL SENDT”.**
  
    - Refresh the declaration. Confirm files exist in **Scan**. If non‑Digitoll, use **Send med API**.
- **Maskinporten/authorization errors.**
  
    - Verify the client certificate is valid, Integration ID is correct, scopes/permissions match the Digitoll setup, and system time is accurate.
- **File/format issues.**
  
    - Re‑upload the file and retry. Large or password‑protected PDFs may be rejected.
- **TVINN shows status 5, Control = D, but Customs says they didn’t receive documents.**
  
    - Re‑send via **Send med API** and check the log for a success entry. Ensure attachments are present in **Scan** at send time.

---

#### 8) Best practices

- Attach all expected documents **before** submitting to TVINN when using Digitoll routes, to benefit from auto‑send.
- If you add docuemnts after the TVINN subition, you will need to manually click **Send med API** after uploading the documents.

---

#### 10) Support

If you need help with Maskinporten/Digdir configuration or encounter repeated send failures, contact Emma Support with:

- Declaration ID and timestamp
- Whether the flow is Digitoll or not
- Screenshot of **Scan** and **Dok kontroll**
- Any error messages from the log

- [Emma CMS General](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#main-content)

    - [Bonded Warehouse](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#bonded-warehouse)
    - [Reports](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#reports)
    - [NCTS](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#ncts)
    - [Customs Clearance](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#customs-clearance)
    - [General](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#general)
    - [ICS2](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#ics2)
    - [Invoicing](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#invoicing)
    - [Azure](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#azure)
    - [Customer Database](https://hub.emmasys.com/help-center/emma-cms-general?hsLang=en#customer-database)
- [Emma CMS Sweden](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#main-content)

    - [General](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#general)
    - [AES - Export](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#aes-export)
    - [Import](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#import)
    - [NCTS SE](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#ncts-se)
    - [Bonded Warehouse](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#bonded-warehouse)
    - [Temporary storage](https://hub.emmasys.com/help-center/emma-cms-sweden?hsLang=en#temporary-storage)
- [Emma CMS Norway](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en#main-content)

    - [Reports](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en#reports)
    - [NCTS NO](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en#ncts-no)
    - [Customs Clearance NO](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en#customs-clearance-no)
    - [Article register](https://hub.emmasys.com/help-center/emma-cms-norway?hsLang=en#article-register)
- [Emma CMS Denmark](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#main-content)

    - [DMS Import](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#dms-import)
    - [DMS Temporary Storage](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#dms-temporary-storage)
    - [Bonded Warehouse](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#bonded-warehouse)
    - [Custom Clearance](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#custom-clearance)
    - [NCTS](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#ncts)
    - [General](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#general)
    - [Invoicing](https://hub.emmasys.com/help-center/emma-cms-denmark?hsLang=en#invoicing)
- [Emma CMS Finland](https://hub.emmasys.com/help-center/emma-cms-finland?hsLang=en#main-content)

    - [Customs Clearance](https://hub.emmasys.com/help-center/emma-cms-finland?hsLang=en#customs-clearance)
    - [UTU Export](https://hub.emmasys.com/help-center/emma-cms-finland?hsLang=en#utu-export)
    - [UTU Import](https://hub.emmasys.com/help-center/emma-cms-finland?hsLang=en#utu-import)
- [Emma Compliance](https://hub.emmasys.com/help-center/emma-compliance?hsLang=en#main-content)

    - [General](https://hub.emmasys.com/help-center/emma-compliance?hsLang=en#general)
    - [Functions](https://hub.emmasys.com/help-center/emma-compliance?hsLang=en#functions)
    - [Inbox & Document handling](https://hub.emmasys.com/help-center/emma-compliance?hsLang=en#inbox-document-handling)
    - [Errors & Troubleshooting](https://hub.emmasys.com/help-center/emma-compliance?hsLang=en#errors-troubleshooting)
- [Emma CMS Release Notes](https://hub.emmasys.com/help-center/emma-cms-release-notes?hsLang=en#main-content)

    - [How to find change log in Emma CMS?](https://hub.emmasys.com/help-center/emma-cms-release-notes?hsLang=en#how-to-find-change-log-in-emma-cms)
    - [Release notes 2026](https://hub.emmasys.com/help-center/emma-cms-release-notes?hsLang=en#release-notes-2026)
    - [Other updates](https://hub.emmasys.com/help-center/emma-cms-release-notes?hsLang=en#other-updates)
- [Digitoll](https://hub.emmasys.com/help-center/digitoll?hsLang=en#main-content)

    - [Get Started](https://hub.emmasys.com/help-center/digitoll?hsLang=en#get-started)
    - [Shipments & Transport](https://hub.emmasys.com/help-center/digitoll?hsLang=en#shipments-transport)
    - [Overview & Status](https://hub.emmasys.com/help-center/digitoll?hsLang=en#overview-status)
    - [Setup & Integrations](https://hub.emmasys.com/help-center/digitoll?hsLang=en#setup-integrations)
    - [Troubleshooting & Support](https://hub.emmasys.com/help-center/digitoll?hsLang=en#troubleshooting-support)
    - [Customs & Regulations](https://hub.emmasys.com/help-center/digitoll?hsLang=en#customs-regulations)
    - [ICS2](https://hub.emmasys.com/help-center/digitoll?hsLang=en#ics2)
- [FAQ](https://hub.emmasys.com/help-center/faq?hsLang=en#main-content)

    - [General](https://hub.emmasys.com/help-center/faq?hsLang=en#general)
    - [Privacy and Security](https://hub.emmasys.com/help-center/faq?hsLang=en#privacy-and-security)
- [System Status Page](https://hub.emmasys.com/help-center/system-status-page?hsLang=en)
- [Troubleshooting](https://hub.emmasys.com/help-center/troubleshooting?hsLang=en#main-content)

    - [Citrix help - Emma CMS / EmmaCloud](https://hub.emmasys.com/help-center/troubleshooting?hsLang=en#citrix-help-emma-cms-emmacloud)
    - [Azure](https://hub.emmasys.com/help-center/troubleshooting?hsLang=en#azure)
    - [Emma CMS](https://hub.emmasys.com/help-center/troubleshooting?hsLang=en#emma-cms)

- [Help Center](https://hub.emmasys.com/help-center)
- [Customer Portal](https://hub.emmasys.com/customer-portal)
- [Website](https://emmasys.com/)
- [Status Page](https://hub.emmasys.com/help-center/system-status)

[![emmalogohelpcenter](https://hub.emmasys.com/hubfs/emmalogohelpcenter.svg "emmalogohelpcenter")](http://emmasys.com?hsLang=en)

[mailto:support@emmasys.com](mailto:support@emmasys.com) <https://emmasys.com/?hsLang=en> <https://www.linkedin.com/company/emma-systems-as>

Copyright © 2025, Emma Systems AS