DMS Import
A DMS Import declaration is the import declaration to Dutch Customs (DMS). This article follows the screens of the import declaration in Shipment. For each screen you see which JSON field fills which field. The column Field in Shipment shows the section and the label as you see them on the screen.
How declarations, dossiers, the address book and the article master data work in general is in the article Customs.
| Endpoint | POST /erpservices/ImportDossier |
| Where in the request | dmsImportDeclarations (array) |
| One request | One dossier, maximum 10 declarations per request in total. |
DeclarationType in status updates |
1 |
| Reference in the response | frn |
Downloads
Endpoint
POST {base-url}/erpservices/ImportDossier
Replace {base-url} with the URL of your product and environment:
| Product and environment | {base-url} |
| Stratech Shipment – Test | https://test-{prefix}.shipment-stratech.nl |
| Stratech Shipment – Production | https://{prefix}.stratechshipment.nl |
| Beurtvaartadres ShipmentManager – Test | https://{prefix}.accshipmentmanager.eu |
| Beurtvaartadres ShipmentManager – Production | https://{prefix}.shipmentmanager.eu |
Structure
The request is a dossier with the declaration in the array dmsImportDeclarations. The paths in the tables below start at one item of that array.
How to read the tables
The column Req. shows what the API requires: ✓ means the request is rejected without the field. Default means Shipment fills in that value when you leave the field out. Which fields Customs requires depends on the type of declaration; those rules are in the MIG (see Downloads). Shipment checks them when it validates the declaration.
Control fields
| Field in Shipment | JSON field | Type | Req. | Description |
| – | applicationReferenceId |
string |
✓ | Your unique reference for this declaration. Never reuse it, not even when you send the same dataset again. A duplicate returns HTTP 409. |
| – | doSubmitWhenValid |
boolean |
Default false. true: Shipment submits the declaration to Customs as soon as it is valid. |
|
| – | doNotSaveWhenInvalid |
boolean |
Default false: an invalid declaration is saved, so a user can complete it in Shipment. true: an invalid declaration is not saved and you get the errors back. |
|
| – | fullUserNameOfSubmitter |
string(64) |
Full name of the user who submits the declaration. |
Step 1: Aangifte (Declaration)

Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Algemene gegevens > Aangiftevolgnummer (FRN) | – | Generated by Shipment. Not in the request; returned in the response as frn. |
||
| Algemene gegevens > Dossiernummer | dossierNumber |
string(30) |
✓ | At the top of the request, outside the declaration: dossierNumber. The dossier name in Shipment, for example your order or delivery number. |
| Algemene gegevens > Soort aangifte - aangiftesymbool | declarationSymbol |
string(2) |
Default IM |
Declaration symbol indicating the customs flow. |
| Algemene gegevens > Soort aangifte - aangiftetype | declarationType |
string(1) |
Default A |
Type of customs declaration. |
| Algemene gegevens > – | simplificationType |
string(5) |
The type of the simplification (CL239 codes starting with NRV). | |
| Algemene gegevens > – | simplifiedProcedureTimeWindow |
integer |
The desired number of days before the supplementary declaration should be submitted. When the SimplificationType has been set to one of the CL239 codes starting with NRV, the number of days before the supplementary declaration is expected to be submitted needs to be specified as well. Which value is allowed depends on the chosen SimplificationType. Valid values for each SimplificationType are as follows: NRV01: min: 1, max: 10 NRV02: min: 11, max: 120 NRV03: min: 1, max: 10 NRV04: min: 11, max: 730 NRV05: min: 1, max: 10 NRV06: min: 11, max: 730 NRV07: There's no time window. SimplifiedProcedureTimeWindow is expected to be null when the SimplificationType is NRV07. | |
| Algemene gegevens > Gevraagde regeling | governmentProcedure.currentCode |
string(2) |
✓ | Requested customs procedure code. Code list CL092. |
| Algemene gegevens > Voorafgaande regeling | governmentProcedure.previousCode |
string(2) |
✓ | Previous customs procedure code. Code list CL093. |
| Algemene gegevens > Verbijzonderde regeling | governmentProcedure.specialCode |
string(3) |
Additional customs procedure code. Code list CL102. | |
| Algemene gegevens > – | governmentProcedure.special2Code |
string(3) |
The second additional procedure code (code list CL102). | |
| Algemene gegevens > Taal aangifte | language |
string(2) |
Default NL |
Language used for the customs declaration. Code list CL012. |
| Container > Containerzending | isContainerShipment |
boolean |
Default false |
Indicates whether the shipment is transported in containers. |
| Container > Containernummer | containers[].number |
string(17) |
Container identification number. | |
| Aanvullende informatie > Code | additionalInformation[].code |
string(5) |
Additional information code. | |
| Aanvullende informatie > Identificatie / Omschrijving | additionalInformation[].description |
string(512) |
Additional information description. |
Step 2: Importeur (Importer)

Path: importer
| Field in Shipment | JSON field | Type | Req. | Description |
| Importeur > Geselecteerde importeur | internalCode |
string(450) |
✓ | Internal code of the importer as configured in the Shipment address book. |
| Importeur > Eenmalig adres > (Bedrijfs)naam | address.name |
string |
✓ | The name. |
| Importeur > Eenmalig adres > Plaats | address.city |
string |
✓ | The city. |
| Importeur > Eenmalig adres > Straat en huisnummer | address.streetAndNumber |
string |
✓ | The street and number. |
| Importeur > Eenmalig adres > Land | address.country.code |
string |
✓ | The code (code list CL248). |
| Importeur > Eenmalig adres > Landnaam | address.country.name |
string |
✓ | The name. |
| Importeur > Eenmalig adres > Postcode | address.zipCode |
string |
The zip code. | |
| Importeur > Eenmalig adres > EORI nummer | eoriNumber |
string |
The eori number. | |
| Importeur > – | submitter.representationType |
integer |
Values: 1 = Direct, 2 = Indirect, 3 = WithoutPermit. |
|
| Importeur > – | submitter.eoriNumber |
string |
✓ | The eori number. |
Shipment takes the name, address and EORI number of the importer from the address book. How the link works is in the article Customs, section Link to the address book (internalCode).
Step 3: Exporteur (Exporter)

Path: exporter
| Field in Shipment | JSON field | Type | Req. | Description |
| Exporteur > Geselecteerde exporteur uit adresboek | internalCode |
string(450) |
Internal code of the exporter as configured in the Shipment address book. | |
| Exporteur > Eenmalig adres > (Bedrijfs)naam | address.name |
string |
✓ | Name of the exporter. |
| Exporteur > Eenmalig adres > Straat en huisnummer | address.streetAndNumber |
string |
✓ | Street name and house number of the exporter. |
| Exporteur > Eenmalig adres > Postcode | address.zipCode |
string |
Postal code of the exporter. | |
| Exporteur > Eenmalig adres > Plaats | address.city |
string |
✓ | City of the exporter. |
| Exporteur > Eenmalig adres > Land | address.country.code |
string |
✓ | Country code of the exporter. |
| Exporteur > Eenmalig adres > Landnaam | address.country.name |
string |
✓ | Country name of the exporter. |
| Exporteur > Eenmalig adres > EORI nummer | eoriNumber |
string |
EORI number of the exporter. |
Use either internalCode (address book) or a one-time address. If you send an address, name, street and number, city and country are required.
Step 4: Betaalwijze/vergunningen (Payment and authorisations)

Betaling van de afdrachten
Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Betaler invoerrechten | payer |
integer |
Party responsible for payment of import duties. Values: 1 = Declarant, 2 = Importer, 3 = Other. |
|
| – | payerEori |
string(17) |
EORI of the Payer, only set if Payer = Payer.Other. | |
| Zekerheidsteller | surety |
integer |
Party providing the customs guarantee. Values: 1 = Declarant, 2 = Importer. |
|
| Betaalwijze | paymentMethod |
integer |
Payment method used for customs duties. Values: 0 = Default (automatically selects DPO, or None if the procedure doesn't allow it), 1 = None, 2 = Dpo(maandkrediet), 3 = Cash. |
Omzetbelastingplichtige
Path: declarationData.domesticDutyTaxParties[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Omzetbelastingplichtige | role |
string(3) |
VAT liable party role code. Code list CL149. | |
| Btw-identificatienummer | identification |
string(17) |
VAT identification number of the fiscal representative or VAT liable party. |
Referentie zekerheidstellingen
Path: declarationData.obligationGuarantees[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Soort zekerheidstelling | securityDetails |
string(1) |
Type of guarantee security. | |
| Te dekken bedrag | guaranteeReference.amount.value |
number |
Amount covered by the guarantee. | |
| Valuta | guaranteeReference.amount.code |
string |
Currency of the guaranteed amount. | |
| Andere referentie zekerheidstelling | guaranteeReference.identification |
string(35) |
Additional reference of the guarantee. | |
| GRN | guaranteeReference.reference |
string(24) |
Guarantee Reference Number. | |
| Toegangscode | guaranteeReference.access |
string(4) |
Access code linked to the guarantee reference. | |
| Douanekantoor van zekerheidstelling | guaranteeReference.guaranteeOffice.identification |
string(8) |
Customs office responsible for the guarantee. |
Vergunningen
Path: declarationData.authorisations[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Type vergunning | type |
string(4) |
Authorisation type code. Code list CL605. | |
| Vergunningsnummer | identification |
string(35) |
Authorisation identification number. | |
| Vergunninghouder | authorisationHolder.identification |
string(17) |
Identification of the authorisation holder. | |
| Omschrijving | description |
string(50) |
Description of the authorisation for administrative purposes. |
Step 5: Transport

Aankomst
Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Land van bestemming/aankomst | destinationCountry |
string(2) |
Destination country of the shipment. | |
| Vervoerswijze bij aankomst | arrivalTransportMeans.transportationType |
string(1) |
Mode of transport upon arrival. Code list CL018. | |
| Soort identificatie vervoermiddel bij aankomst | arrivalTransportMeans.identificationType |
string(2) |
Identification type of the arrival transport means. Code list CL750. | |
| Identiteit vervoermiddel bij aankomst | arrivalTransportMeans.identification |
string(35) |
Identification of the transport means upon arrival. |
Grensoverschrijdend
Path: declarationData.borderTransportMeans
| Field in Shipment | JSON field | Type | Req. | Description |
| Vervoerswijze aan de grens | transportationType |
string(1) |
Mode of transport at the border. Code list CL018. | |
| Nationaliteit vervoermiddel aan de grens | registrationNationality |
string(2) |
Nationality of the border transport means. Code list CL165. |
Locatie van de goederen
Path: declarationData.goodsLocation
| Field in Shipment | JSON field | Type | Req. | Description |
| Type opslaglocatie | type |
string(1) |
Type of goods location. Code list CL347. | |
| Land | countryCode |
string(2) |
Country code of the goods location. | |
| Postcode | postalCode |
string(17) |
Postal code of the goods location. | |
| Huisnummer | houseNumber |
string(35) |
House number of the goods location. | |
| – | cityName |
string(35) |
The name of the city. | |
| – | addressLine |
string(70) |
The address line. |
Douanekantoren
Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Aangiftekantoor | declarationOfficeCode |
string(8) |
Customs office where the declaration is lodged. Code list CL141. | |
| Controlekantoor | supervisingOfficeCode |
string(8) |
Supervising customs office. Code list CL141. |
Leveringsvoorwaarden
Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Incoterms | incoTerms.incoTermsCode |
string(3) |
Incoterms code governing the commercial delivery terms. | |
| Incoterms plaats | incoTerms.locationName |
string(35) |
Named place associated with the Incoterms agreement. | |
| Incoterms land | incoTerms.countryCode |
string(2) |
Country associated with the Incoterms location. | |
| – | incoTerms.incoTermsDescription |
string(512) |
The inco terms description. | |
| – | incoTerms.locationCode |
string(17) |
The location code (code list CL244). | |
| Aard van transactie | transactionNatureCode |
string(2) |
Nature of transaction. Code list CL091. |
Entrepot
Path: declarationData.warehouse
| Field in Shipment | JSON field | Type | Req. | Description |
| Soort | type |
string(1) |
Type of customs warehouse. Code list CL099. | |
| Vergunningsnummer | licenseNumber |
string(35) |
Customs warehouse authorization number. |
Extra partijen in de toeleveringsketen
Path: declarationData.aeoMutualRecognitionParties[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Rol | role |
string(3) |
Supply chain party role. Code list CL704. | |
| Identificatienummer | identification |
string(35) |
Identification number of the additional supply chain party. |
Step 6: Artikelen (Goods items), totals

Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Artikelen overzicht > Brutogewicht | totalGrossWeight |
number |
Total gross weight of the declaration. | |
| Artikelen overzicht > Totale factuurwaarde | totalInvoiceAmount |
number |
Total invoice amount of the declaration. | |
| Artikelen overzicht > Valuta totale factuurwaarde | totalInvoiceCurrency |
string(3) |
The total invoice currency. |
Step 6: Artikelen (Goods items), goods item

Algemeen
Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Volgnummer artikel | goodsItems[].sequenceNumber |
integer |
Unique sequential number of the goods item. Sequence numbering starts at 1 and increments by 1 for each goods item. | |
| Land van verzending | goodsItems[].dispatchCountry |
string(2) |
Dispatch country of the goods item. | |
| – | dispatchCountry |
string(2) |
The dispatch country (code list CL199). | |
| HS Code | goodsItems[].goodsItemType.hsCode |
string(8) |
Commodity classification code of the goods item. | |
| Tariccode | goodsItems[].goodsItemType.taricSubHeading |
string(2) |
TARIC subheading code. | |
| Aanvullende tariccode | goodsItems[].goodsItemType.additionalTaricCode1 |
string(4) |
First additional TARIC code. | |
| Nac code | goodsItems[].goodsItemType.nac |
string(4) |
National additional code. | |
| CUS code | goodsItems[].goodsItemType.cusCode |
string(9) |
Customs Union and Statistics code. | |
| – | goodsItems[].goodsItemType.additionalTaricCode2 |
string(4) |
The second additional taric code. | |
| Handelsnaam van het artikel | goodsItems[].description |
string(512) |
Description of the goods item. | |
| Artikelcode (SKU) | goodsItems[].stockKeepingUnit |
string |
Stock keeping unit used for template identification. | |
| Cat./Postnr (vergunningplichtige goederen) | goodsItems[].categoryOrPostalNumber |
string(10) |
Category or postal number. | |
| Containernummer | goodsItems[].containers[].number |
string(17) |
Container number linked to the goods item. | |
| – | goodsItems[].registration.identifier |
string(70) |
The identifier. | |
| – | goodsItems[].registration.lineNumber |
integer |
The line number. |
Verpakkingswijze en gewicht
Path: declarationData.goodsItems[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Soort verpakking | packaging[].typeCode |
string(2) |
Packaging type code. Code list CL017. | |
| Aantal colli | packaging[].quantity |
integer |
Number of packages. | |
| Merk en nummers | packaging[].shippingMarks |
string(512) |
Shipping marks of the packaging. | |
| Brutogewicht | goodsMeasure.grossWeight |
number |
Gross weight of the goods item. | |
| Nettogewicht | goodsMeasure.netWeight |
number |
Net weight of the goods item. | |
| Aantal aanvullende eenheden | goodsMeasure.supplementaryQuantity |
number |
Supplementary quantity of the goods item. |
Regeling
Path: declarationData
| Field in Shipment | JSON field | Type | Req. | Description |
| Gevraagde regeling | governmentProcedure.currentCode |
string(2) |
✓ | Requested customs procedure code. Code list CL092. |
| Voorafgaande regeling | goodsItems[].governmentProcedure.previousCode |
string(2) |
Previous customs procedure code. Code list CL093. | |
| Verbijzonderde regeling | goodsItems[].governmentProcedure.specialCode |
string(3) |
Additional customs procedure code. Code list CL102. | |
| – | goodsItems[].governmentProcedure.special2Code |
string(3) |
The second additional procedure code (code list CL102). |
Informatie voor waardebepaling
Path: declarationData.goodsItems[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Methode waardebepaling | customsValuation.methodCode |
string(1) |
Customs valuation method code. | |
| Verbondenheid | valuationAdjustment.partyRelationship |
boolean |
Indicates whether buyer and seller are related parties. | |
| Beperkingen | valuationAdjustment.restrictions |
boolean |
Indicates restrictions affecting disposal or use of goods. | |
| Afhankelijkheid | valuationAdjustment.dependant |
boolean |
Indicates whether sale or price depends on conditions. | |
| Wederverkoop/overdracht/gebruik | valuationAdjustment.arrangement |
boolean |
Indicates whether resale proceeds accrue to the seller. | |
| Statistische waarde | statisticalValue |
number |
Statistical value of the goods item. | |
| Factuurbedrag | invoiceValue |
number |
Invoice value of the goods item. | |
| Tariefreferentie | taxCalculation.dutyRegimeCode |
string(3) |
Duty regime code. | |
| Tariefcontingent | taxCalculation.quotaOrder |
string(6) |
Tariff quota order number. | |
| Land van oorsprong | countryOfOrigin |
string(2) |
Country of origin of the goods. | |
| Land van oorsprong preferentieel | preferentialCountryOfOrigin |
string(2) |
Preferential country of origin. |
Invoerrechten, belastingen & heffingen
Path: declarationData.goodsItems[].taxCalculation.dutyTaxFees[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Code | typeCode |
string(3) |
Duty or tax type code. | |
| Belastingsgrondslag (waarde) | taxBase.adValoremTaxBase |
number |
Ad valorem tax base used for duty and tax calculation. | |
| Belastingsgrondslag (aantal) | taxBases[].specificTaxBase.value |
number |
Quantity used as the tax base for specific duties. | |
| Maatstaf | taxBases[].specificTaxBase.code |
string |
Unit of measure used for the specific tax base. | |
| Maatstaf | taxBase.specificTaxBase.code |
string |
The code. (like currency or other units) | |
| Belastingsgrondslag (aantal) | taxBase.specificTaxBase.value |
number |
The value. | |
| – | taxBases[].adValoremTaxBase |
number |
The ad valorem tax base. | |
| Berekende rechten | payment.paymentAmount |
number |
Calculated duty or tax amount. |
Bij-/aftrekposten
Path: declarationData.goodsItems[].customsValuation.chargeDeductions[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Code | typeCode |
string(2) |
Charge deduction type code. | |
| Bedrag | otherChargeDeduction.value |
number |
Amount of the charge deduction. | |
| Valuta | otherChargeDeduction.code |
string |
Currency of the charge deduction amount. |
Voorafgaande documenten
Path: declarationData.goodsItems[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Code | previousDocuments[].documentTypeCode |
string(4) |
Previous document type code. | |
| Identificatie | previousDocuments[].documentIdentifier |
string(70) |
Previous document identification. | |
| Regelnummer | previousDocuments[].declarationLineNumber |
integer |
Line number of the referenced previous document. | |
| – | previousDocument.documentTypeCode |
string(4) |
The document type code (code list CL214). | |
| – | previousDocument.documentIdentifier |
string(70) |
The document identifier. | |
| – | previousDocument.declarationLineNumber |
integer |
The declaration line number. |
Vervoersdocumenten
Path: declarationData.goodsItems[].transportDocuments[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Type document | typeCode |
string(4) |
Transport document type code. | |
| Identificatie | identification |
string(70) |
Transport document identification. |
Aanvullende informatie
Path: declarationData.goodsItems[].additionalInformation[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Code | code |
string(5) |
Additional information code. | |
| Identificatie / Omschrijving | description |
string(512) |
Additional information description. |
Ondersteunende bescheiden
Path: declarationData.goodsItems[].additionalDocuments[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Bescheidcode | additionalDocumentCode |
string(4) |
Supporting document code. | |
| Identificatie | documentNumber |
string(70) |
Supporting document identification number. | |
| Regel in bescheid | lineNumber |
integer |
Referenced line number in the supporting document. | |
| Vervaldatum | validityDate |
datetime |
Expiration date of the supporting document. | |
| Afschrijfwaarde | amount.value |
number |
Write-off amount linked to the supporting document. | |
| Afschrijfwaarde valuta | amount.code |
string |
Currency of the write-off amount. | |
| Afschrijfhoeveelheid | quantity.value |
number |
Write-off quantity linked to the supporting document. | |
| Afschrijfhoeveelheid maateenheid | quantity.code |
string |
Unit of measure of the write-off quantity. |
Aanvullende referenties
Path: declarationData.goodsItems[].additionalReferences[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Type document | typeCode |
string(4) |
Additional reference type code. | |
| Identificatie | identification |
string(70) |
Additional reference identification. |
Koper & verkoper
Path: declarationData.goodsItems[]
| Field in Shipment | JSON field | Type | Req. | Description |
| Koper > Naam | buyer.name |
string(70) |
Name of the buyer. | |
| Koper > Straat en huisnummer | buyer.streetAndNumber |
string(70) |
Street name and house number of the buyer. | |
| Koper > Postcode | buyer.zipCode |
string(17) |
Postal code of the buyer. | |
| Koper > Plaats | buyer.city |
string(35) |
City of the buyer. | |
| Koper > Land | buyer.countryCode |
string(2) |
Country code of the buyer. | |
| Koper > EORI nummer | buyer.eoriNumber |
string(17) |
EORI number of the buyer. | |
| Verkoper > Naam | seller.name |
string(70) |
Name of the seller. | |
| Verkoper > Straat en huisnummer | seller.streetAndNumber |
string(70) |
Street name and house number of the seller. | |
| Verkoper > Postcode | seller.zipCode |
string(17) |
Postal code of the seller. | |
| Verkoper > Plaats | seller.city |
string(35) |
City of the seller. | |
| Verkoper > Land | seller.countryCode |
string(2) |
Country code of the seller. | |
| Verkoper > EORI nummer | seller.eoriNumber |
string(17) |
EORI number of the seller. |
Note:
previousDocuments(an array) still works, but is replaced bypreviousDocument(one object per goods item). UsepreviousDocumentin new integrations.
Response
The response has one result per declaration in dmsImportDeclarationResults: applicationReferenceId, isSaved, isSubmitted, errors and frn. HTTP 200 does not mean every declaration is valid: always check isSaved and errors. All HTTP codes are in the article Payload rules.
Points to note
- Code list fields must contain the exact code from the Customs code list. See the article Code lists.
- Line breaks are not allowed in customs messages.
- Do you use
stockKeepingUnitwith the article master data? Leave outpreviousDocuments,additionalDocumentsandadditionalReferencescompletely, so Shipment can fill them from the article master data. See the article Customs. - Which fields Customs requires depends on the type of declaration. Check the columns of the MIG (see Downloads).