Dossiers and references
In Shipment, all declarations and documents for one shipment are grouped in a dossier. When you deliver data through the API, you use references to tell Shipment which dossier and which declaration it is.
Terms
| Term | Meaning |
| Dossier | The container in Shipment for everything that belongs to one shipment. |
| Declaration | A customs declaration or notification in a dossier, for example DMS Export or Portbase MID. |
| Document | A trade or transport document in a dossier, for example a CMR or a Certificate of Origin. |
| Request | One call to the API. One ImportDossier request contains one dossier with up to 10 declarations. |
References you send
| Reference | Used for | Rules |
dossierNumber |
Your number for the dossier. Set once per request; every declaration in the request is added to this dossier. Also used for CMR and A.TR documents. | Required. 1 to 30 characters. Use underscores, not hyphens: hyphens cause problems in the Shipment search. |
applicationReferenceId |
Your reference for one declaration. Status updates use it to tell you which declaration changed. Use it in conversations with support. | Required per declaration. Unique within your system, for example dossier number plus a sequence number. Never reuse it, not even when you send a dataset again that you sent before. Use underscores, not hyphens. |
ShipmentIdentifier |
The dossier reference in the Chamber of Commerce module (in Header). |
Required. Max. 30 characters, no spaces at the start or end. |
References Shipment returns
| Reference | Where you get it | Used in |
frn |
Response after saving, and status updates | Functional reference number of the declaration |
mrn |
Status updates | DMS, DVA and Transit |
arc |
Status updates | EMCS |
consignmentId |
Status updates | NVWA (assigned by e-CertNL) |
documentId |
Response of CMR and A.TR, and document updates | Download the PDF of a generated document (optional, requires the right modules) |
Store these references with the declaration in your platform.
Several declarations and documents in one dossier
- Chamber of Commerce document first. In the Chamber of Commerce module,
ShipmentIdentifieris the dossier number: the same value asdossierNumberin the other modules. You can start a dossier with a Chamber of Commerce document and later add declarations or transport documents through the API with the samedossierNumber. The other way around does not work: you can't add a Chamber of Commerce document to a dossier that already contains a declaration or transport document. - One DMS export declaration per dossier. For a second export declaration, use a new dossier.
- Maximum 10 declarations per request. Need more in one dossier? Send several requests with the same
dossierNumber. [VERIFY]
Deliver per document or per shipment
| Way | How it works | Status |
| Per document | You send each declaration and document separately and link them through the dossier references above. | Available |