Overslaan naar inhoud
  • Er zijn geen suggesties want het zoekveld is leeg.

DMS EIDR

A DMS EIDR declaration is the notification (ABBU, aanbrengbericht uitslag) for goods that leave a customs warehouse with entry in the declarant's records (EIDR). Examples are release for free circulation after storage (procedure 40 71) and active processing (procedure 51 71). Shipment then submits the supplementary declaration. This article follows the screens of the 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.

Two scenarios from the example files (see Downloads):

  • With chain procedure (scenario C). Two goods items are released for free circulation after storage in the customs warehouse (40 71), with applyChainProcedure set to true. With daysDelayBeforeSubmit set to 10, Shipment submits the supplementary declaration 10 days after receipt. The authorisations are IIAA (EIR) and Maandkrediet (deferred payment). The buyer is also the importer and the seller is also the exporter.
  • Without chain procedure. One goods item is released for free circulation after storage, without chain procedure and with doSubmitWhenValid set to false. A user submits the declaration in Shipment.

The goods must have been entered into the warehouse with a DMS EIDR Warehouse notification. To use the chain procedure here, that notification must have canApplyChainProcedureInFuture set to true. 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 dmsEIDRDeclarations (array)
One request One dossier, maximum 10 declarations per request in total.
DeclarationType in status updates 4
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 dmsEIDRDeclarations. 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) –     No JSON field. Generated by Shipment. 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 > Ketenregeling nu toepassen? applyChainProcedure boolean Default false true: apply the chain procedure (scenario C) to goods that were entered with canApplyChainProcedureInFuture.
Algemene gegevens > Wilt u in de toekomst mogelijk de ketenregeling toepassen? canApplyChainProcedureInFuture boolean Default false true: the chain procedure can be applied to these goods later.
Algemene gegevens > Aanvullende aangifte indienen na aantal dagen daysDelayBeforeSubmit integer Default 0 Number of days after receipt before Shipment submits the supplementary declaration. Leave the field out for 0 (today). Do not send it empty.
Algemene gegevens > Soort aangifte - aangiftesymbool declarationSymbol string(2) ✓ Declaration symbol, for example IM. Code list CL231.
Algemene gegevens > Soort aangifte - aangiftetype –     No JSON field. Shipment fills in the declaration type (Z, supplementary declaration).
Algemene gegevens > Gevraagde regeling governmentProcedure.currentCode string(2) ✓ Requested procedure, for example 40 or 51. Code list CL092.
Algemene gegevens > Voorafgaande regeling governmentProcedure.previousCode string(2) ✓ Previous procedure, for example 71. Code list CL093.
Algemene gegevens > Verbijzonderde regeling governmentProcedure.specialCode string(3)   First additional procedure. Code list CL102.
Algemene gegevens > – governmentProcedure.special2Code string(3)   Second additional procedure. Code list CL102.
Algemene gegevens > Taal aangifte language string(2) Default NL Language of the declaration. Code list CL012.
Container > Containerzending isContainerShipment boolean Default false true for a container shipment.
Container > Containernummer containers[].number string(17)   Container number. One item per container.

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 in the address book (Interne code).
Importeur > Adresboek > Naam address.name string ✓ Name. Only when you do not use the address book.
Importeur > Adresboek > Straat en huisnummer address.streetAndNumber string ✓ Street and house number.
Importeur > Adresboek > Postcode address.zipCode string   Postal code.
Importeur > Adresboek > Plaats address.city string ✓ City.
Importeur > Adresboek > Land address.country.code string ✓ Country code. Code list CL248.
Importeur > Adresboek > Landnaam address.country.name string ✓ Country name.
Importeur > Adresboek > EORI-nummer eoriNumber string   EORI number of the importer.
Importeur > – submitter.representationType integer   Type of representation when someone else submits on behalf of the importer. Values: 1 = Direct, 2 = Indirect, 3 = WithoutPermit.
Importeur > – submitter.eoriNumber string ✓ EORI number of the representative.

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). The fields under address are only needed when you do not use the address book; if you send an address, name, street and number, city and country are required.

Step 3: Exporteur (Exporter)

Path: exporter

Field in Shipment JSON field Type Req. Description
Eenmalig adres > – internalCode string(450)   Internal code of the exporter in the address book. Use this or a one-time address.
Eenmalig adres > (Bedrijfs)naam address.name string ✓ Name.
Eenmalig adres > Straat en huisnummer address.streetAndNumber string ✓ Street and house number.
Eenmalig adres > Postcode address.zipCode string   Postal code.
Eenmalig adres > Plaats address.city string ✓ City.
Eenmalig adres > Land address.country.code string ✓ Country code. Code list CL248.
Eenmalig adres > Landnaam address.country.name string ✓ Country name.
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

Path: declarationData

Field in Shipment JSON field Type Req. Description
Betaler invoerrechten payer integer   Who pays the import duties. Values: 1 = Declarant, 2 = Importer, 3 = Other.
– payerEori string(17)   EORI number of the payer, when the payer is another party.
Zekerheidsteller surety integer   Who provides the guarantee. Values: 1 = Declarant, 2 = Importer.

Omzetbelastingplichtige

Path: declarationData.domesticDutyTaxParties[]

Field in Shipment JSON field Type Req. Description
Omzetbelastingplichtige role string(3)   Role of the VAT-liable party. Code list CL149.
Btw-identificatienummer identification string(17)   VAT identification number.

Referentie zekerheidstellingen

Path: declarationData.obligationGuarantees[]

Field in Shipment JSON field Type Req. Description
Soort zekerheidstelling securityDetails string(1)   Type of guarantee. Code list CL251.
Te dekken bedrag guaranteeReference.amount.value number   Amount to be covered.
Valuta guaranteeReference.amount.code string   Currency. Code list CL352.
Andere referentie zekerheidstelling guaranteeReference.identification string(35)   Other guarantee reference.
GRN guaranteeReference.reference string(24)   Guarantee reference number (GRN).
Toegangscode guaranteeReference.access string(4)   Access code.
Douanekantoor van zekerheidstelling guaranteeReference.guaranteeOffice.identification string(8)   Customs office of guarantee. Code list CL141.

Vergunningen

Path: declarationData.authorisations[]

Field in Shipment JSON field Type Req. Description
Type vergunning type string(4)   Type of authorisation, for example C514 (EIR) or C506 (deferred payment). Code list CL605.
Vergunningsnummer identification string(35)   Authorisation number.
Vergunningshouder authorisationHolder.identification string(17)   EORI number of the authorisation holder.
Omschrijving description string(50)   Description for your own records, for example IIAA or Maandkrediet. Not sent to Customs.

Step 5: Transport

Aankomst

Path: declarationData

Field in Shipment JSON field Type Req. Description
Land van bestemming/aankomst destinationCountry string(2)   Country of destination. Code list CL010.
Vervoerswijze bij aankomst arrivalTransportMeans.transportationType string(1)   Mode of transport at arrival. Code list CL018.
Soort identificatie vervoermiddel bij aankomst arrivalTransportMeans.identificationType string(2)   Type of identification of the means of transport. Code list CL750.
Identiteit vervoermiddel bij aankomst arrivalTransportMeans.identification string(35)   Identity of the means of transport at 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 means of transport at the border. Code list CL165.

Entrepot

Path: declarationData.warehouse

Field in Shipment JSON field Type Req. Description
Soort type string(1)   Type of warehouse, for example U (private customs warehouse). Code list CL099.
Vergunning licenseNumber string(35)   Authorisation number of the warehouse.

Locatie van de goederen

Path: declarationData.goodsLocation

Field in Shipment JSON field Type Req. Description
Type opslaglocatie type string(1)   Type of location. Code list CL347.
Land countryCode string(2)   Country. Code list CL199.
Postcode postalCode string(17)   Postal code.
Huisnummer houseNumber string(35)   House number.
– addressLine string(70)   Address line.
– cityName string(35)   City.

Douanekantoren

Path: declarationData

Field in Shipment JSON field Type Req. Description
Aangiftekantoor declarationOfficeCode string(8)   Customs office of declaration. 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, for example FCA. Code list CL090.
– incoTerms.incoTermsDescription string(512)   Description of the delivery terms.
Incoterms plaats incoTerms.locationName string(35)   Place.
– incoTerms.locationCode string(17)   Location code. Code list CL244.
Incoterms land incoTerms.countryCode string(2)   Country. Code list CL199.
Aard van transactie transactionNatureCode string(2)   Nature of transaction. Code list CL091.

Extra partijen in de toeleveringsketen

Path: declarationData.aeoMutualRecognitionParties[]

Field in Shipment JSON field Type Req. Description
Rol role string(3)   Role of the party. Code list CL704.
Identificatienummer identification string(35)   Identification number of the party.

Step 6: Artikelen (Goods items), totals

Path: declarationData

Field in Shipment JSON field Type Req. Description
Artikelen > Aantal artikelen –     No JSON field. Calculated from the goods items.
Artikelen > Totaal aantal colli –     No JSON field. Calculated from the packaging of the goods items.
Artikelen > Brutogewicht totalGrossWeight number   Total gross weight in kg.
Artikelen > Nettogewicht –     No JSON field. Calculated from the goods items.
Artikelen > Statistische waarde –     No JSON field. Calculated from the goods items.
Artikelen > Totale factuurwaarde (valuta) totalInvoiceCurrency string(3)   Currency of the total invoice amount. Code list CL352.
Artikelen > Totale factuurwaarde totalInvoiceAmount number   Total invoice amount.
Artikelen > – additionalInformation[].code string(5)   Additional information for the whole declaration. Code list CL239.
Artikelen > – additionalInformation[].description string(512)   Description of the additional information.

Step 6: Artikelen (Goods items), goods item part 1

Algemeen

Path: declarationData.goodsItems[]

Field in Shipment JSON field Type Req. Description
HS Code goodsItemType.hsCode string(8)   HS code (positions 1–8).
Taric code goodsItemType.taricSubHeading string(2)   TARIC subheading (positions 9–10).
Aanvullende taric code (1) goodsItemType.additionalTaricCode1 string(4)   First additional TARIC code.
Aanvullende taric code (2) goodsItemType.additionalTaricCode2 string(4)   Second additional TARIC code.
Nac code goodsItemType.nac string(4)   National additional code (NAC).
CUS code goodsItemType.cusCode string(9)   CUS code (ECICS).
Handelsnaam van het artikel description string(512)   Description of the goods.
Cat./Postnr (vergunningplichtige goederen) categoryOrPostalNumber string(10)   Category or postal number for goods that need a licence.
Land van herkomst dispatchCountry string(2)   Country of dispatch. Code list CL199.
Land van bestemming/aankomst destinationCountry string(2)   Leave out to take the value from the declaration (Waarde overnemen van aangifte). Code list CL010.
Aard van transactie transactionNatureCode string(2)   Leave out to take the value from the declaration (Waarde overnemen van aangifte). Code list CL091.
– stockKeepingUnit string   Article code in the article master data. Not sent to Customs.
– sequenceNumber integer   Sequence number of the goods item, starting at 1.
– containers[].number string(17)   Container number for this goods item.

Vergunningen

Path: declarationData.goodsItems[].authorisations[]

Field in Shipment JSON field Type Req. Description
Type vergunning type string(4)   Type of authorisation for this goods item. Code list CL605.
Vergunningsnummer identification string(35)   Authorisation number.
Vergunningshouder authorisationHolder.identification string(17)   EORI number of the authorisation holder.
Omschrijving description string(50)   Description for your own records. Not sent to Customs.

Verpakkingswijze en gewicht

Path: declarationData.goodsItems[]

Field in Shipment JSON field Type Req. Description
Soort verpakking packaging[].typeCode string(2)   Type of packaging. Code list CL017.
Aantal colli packaging[].quantity integer   Number of packages.
Merk en nummers packaging[].shippingMarks string(512)   Shipping marks.
Bruto gewicht (kg) goodsMeasure.grossWeight number   Gross weight in kg.
Netto gewicht (kg) goodsMeasure.netWeight number   Net weight in kg.
Aantal aanvullende eenheden goodsMeasure.supplementaryQuantity number   Supplementary units.

Step 6: Artikelen (Goods items), goods item part 2

Regeling

Path: declarationData.goodsItems[].governmentProcedure

Field in Shipment JSON field Type Req. Description
Gevraagde regeling –     No JSON field. Taken from the declaration (step 1).
Voorafgaande regeling previousCode string(2)   Previous procedure for this goods item. Code list CL093.
Verbijzonderde regeling specialCode string(3)   First additional procedure. Code list CL102.
– special2Code string(3)   Second additional procedure. Code list CL102.

Waardebepaling

Path: declarationData.goodsItems[]

Field in Shipment JSON field Type Req. Description
Methode waardebepaling customsValuation.methodCode string(1)   Valuation method. Code list CL604.
Verbondenheid valuationAdjustment.partyRelationship boolean   Buyer and seller are related.
Beperkingen valuationAdjustment.restrictions boolean   Restrictions on the disposal or use of the goods.
Afhankelijkheid valuationAdjustment.dependant boolean   Sale or price depends on conditions.
Wederverkoop/overdracht/gebruik valuationAdjustment.arrangement boolean   Part of the proceeds of resale goes to the seller.
Statistische waarde (EUR) statisticalValue number   Statistical value. Always an amount in EUR.
Factuurbedrag (EUR) invoiceValue number   Invoice amount.
Tariefpreferentie taxCalculation.dutyRegimeCode string(3)   Tariff preference, for example 100 (erga omnes). Code list CL603.
Tariefcontingent taxCalculation.quotaOrder string(6)   Quota order number.
Land van oorsprong countryOfOrigin string(2)   Country of origin. Code list CL199.
Land van oorsprong preferentieel preferentialCountryOfOrigin string(2)   Preferential country of origin. Code list CL199.

Invoerrechten, belastingen en heffingen

Path: declarationData.goodsItems[].taxCalculation.dutyTaxFees[]

Field in Shipment JSON field Type Req. Description
Code typeCode string(3)   Type of duty or tax, for example A00 (import duty). Code list CL098.
Waarde taxBase.adValoremTaxBase number   Tax base as a value.
Aantal taxBase.specificTaxBase.value number   Tax base as a quantity.
Maatstaf taxBase.specificTaxBase.code string   Unit of the quantity. Code list CL349.
– taxBases[].adValoremTaxBase number   Use taxBases (an array) instead of taxBase when there is more than one tax base.
– taxBases[].specificTaxBase.value number   Quantity, in taxBases.
– taxBases[].specificTaxBase.code string   Unit of the quantity, in taxBases. Code list CL349.
Berekende rechten payment.paymentAmount number   Calculated amount.

Bij-/aftrekposten

Path: declarationData.goodsItems[].customsValuation.chargeDeductions[]

Field in Shipment JSON field Type Req. Description
Code typeCode string(2)   Type of addition or deduction. Code list CL791.
Bedrag otherChargeDeduction.value number   Amount.
Valuta otherChargeDeduction.code string   Currency. Code list CL352.

Step 6: Artikelen (Goods items), goods item part 3

Voorafgaand document

Path: declarationData.goodsItems[]

Field in Shipment JSON field Type Req. Description
Type document previousDocument.documentTypeCode string(4)   Type of previous document, for example NCLE (entry in the records).
Documentnummer previousDocument.documentIdentifier string(70)   Number of the previous document, for example the entry reference.
Regel in voorafgaand document previousDocument.declarationLineNumber integer   Line number in the previous document.
Type document previousDocuments[].documentTypeCode string(4)   Replaced by previousDocument. Still works. Code list CL214.
Documentnummer previousDocuments[].documentIdentifier string(70)   Replaced by previousDocument. Still works.
Regel in voorafgaand document previousDocuments[].declarationLineNumber integer   Replaced by previousDocument. Still works.

Inschrijving in de administratie

Path: declarationData.goodsItems[].registration

Field in Shipment JSON field Type Req. Description
– identifier string(70)   Identifier of the entry in the records.
– lineNumber integer   Line number of the entry in the records.

Transportbescheiden

Path: declarationData.goodsItems[].transportDocuments[]

Field in Shipment JSON field Type Req. Description
Type document typeCode string(4)   Type of transport document. Code list CL754.
Identificatie identification string(70)   Number of the transport document.

Bijzondere vermeldingen

Path: declarationData.goodsItems[].additionalInformation[]

Field in Shipment JSON field Type Req. Description
Code code string(5)   Code of the additional information. Code list CL239.
Identificatie / Omschrijving description string(512)   Description.

Ondersteunende bescheiden

Path: declarationData.goodsItems[].additionalDocuments[]

Field in Shipment JSON field Type Req. Description
Bescheidcode additionalDocumentCode string(4)   Type of supporting document, for example N935 (invoice). Code list CL213.
Identificatie documentNumber string(70)   Number of the document.
Regel in bescheid lineNumber integer   Line number in the document.
Vervaldatum validityDate datetime   Expiry date.
Afschrijfwaarde amount.value number   Value written off.
Afschrijfwaarde (eenheid) amount.code string   Unit or currency of the value written off.
Afschrijfhoeveelheid quantity.value number   Quantity written off.
Afschrijfhoeveelheid (eenheid) quantity.code string   Unit of the quantity written off.

Note: previousDocuments (an array) still works, but is replaced by previousDocument (one object per goods item). Use previousDocument in new integrations.

Step 6: Artikelen (Goods items), goods item part 4

Path: declarationData.goodsItems[]

Field in Shipment JSON field Type Req. Description
Overige bescheiden > Type document additionalReferences[].typeCode string(4)   Type of reference, for example Y949. Code list CL380.
Overige bescheiden > Identificatie additionalReferences[].identification string(70)   Identification.
Koper > Naam buyer.name string(70)   Name of the buyer.
Koper > Straat en huisnummer buyer.streetAndNumber string(70)   Street and house number.
Koper > Postcode buyer.zipCode string(17)   Postal code.
Koper > Plaats buyer.city string(35)   City.
Koper > Land buyer.countryCode string(2)   Country. Code list CL199.
Koper > EORI nummer buyer.eoriNumber string(17)   EORI number.
Verkoper > Naam seller.name string(70)   Name of the seller.
Verkoper > Straat en huisnummer seller.streetAndNumber string(70)   Street and house number.
Verkoper > Postcode seller.zipCode string(17)   Postal code.
Verkoper > Plaats seller.city string(35)   City.
Verkoper > Land seller.countryCode string(2)   Country. Code list CL199.
Verkoper > EORI nummer seller.eoriNumber string(17)   EORI number.

Customs (DMS) currently requires buyer and seller, also when they are the same as the importer and the exporter.

Active processing (51 71)

For active processing after storage in the customs warehouse, keep these rules:

  • Procedure 51 always needs a duty line with code A00 (import duty) in dutyTaxFees.
  • Send the guarantee both in obligationGuarantees and in authorisations.
  • securityDetails: 0 = exemption from guarantee, 1 = comprehensive guarantee.
  • guaranteeReference.amount.value must be at least 1.

Response

The response has one result per declaration in dmsEIDRDeclarationResults: 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 stockKeepingUnit with the article master data? Leave out previousDocuments, additionalDocuments and additionalReferences completely, so Shipment can fill them from the article master data. See the article Customs.
  • daysDelayBeforeSubmit: leave the field out to submit the supplementary declaration today. Do not send it empty.