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

Status updates

Shipment can send updates to your platform with a POST request to a URL you configure (a webhook). That way you receive the MRN, errors and inspections, and generated documents, without logging in to Shipment.

Shipment sends the first status update as soon as the declaration has been sent to Customs. After that, you receive a new update every time the status changes.

Optional: Status updates are optional and available for all modules except Chamber of Commerce. They require the right modules in your Shipment subscription. Not sure whether you have them? See the article Getting support.

Status updates work the same in Stratech Shipment and Beurtvaartadres ShipmentManager, whichever package you have.

Without status updates, you follow the status and the MRN of your declarations in Shipment itself.

Two kinds of updates

Update Sent when
Status update The status of a declaration or document changes.
Document update A document is generated or updated for a declaration.

Each kind has its own URL: the Status callback URL for status updates and the Document callback URL for document updates. You set both in the same screen, ERP Koppeling (ERP integration).

Statuses per flow

The statuses you receive match the flow or document:

  • Documents such as the CMR: you receive an update when the document is saved, for example status 10 (Draft) after you send a CMR through the API.
  • DMS declarations: you receive a status for every step the declaration goes through, from submission to Customs until release or exit.

Not every status is important or requires an action from your users. Decide which statuses you show in your ERP or source system, and ignore the rest. See Which statuses to process below.

Set up your callback URL

  1. Log in to Stratech Shipment or Beurtvaartadres ShipmentManager with an Administrator account.
  2. Click Beheer > Instellingen (Management > Settings), then ERP Koppelingen > Import (ERP integrations > Import), and open your ERP integration. The screen ERP Koppeling (ERP integration) opens. Don't have an ERP integration yet? See the article Authentication (OAuth 2.0).
  3. In the section Status webhook, enter the Callback URL of your endpoint and choose the Authenticatie type (Authentication type).
  4. Want to receive document updates? In the section Document webhook, enter the Callback URL and choose the Authenticatie type. You can use a different URL than for status updates.
  5. Click Toepassen (Apply) to save, or Afsluiten (Close) to close the screen.

The section Shipment authenticatie (Shipment authentication) in the same screen shows the Client ID and the (hidden) Client secret your platform uses to call the API, with the buttons Genereer opnieuw (Generate again) and Verwijderen (Delete). See the article Authentication (OAuth 2.0).

[TO DO: upload SHP-ERP-Koppeling.png (Drive, folder 3-10 Webhook) to HubSpot Files, folder Logistiek/knowledge base/api-specificaties/algemeen.]

Security option per webhook:

  • Authenticatie type (Authentication type): Geen (None), Basic (basic authentication with a username and password that Shipment uses to connect to your endpoint) or OAuth (Shipment requests a token from your identity provider and sends it with every update). [VERIFY: which fields appear for OAuth, for example token URL, client ID, client secret and scope]

Requirements for your endpoint

Item Requirement
Method POST
Format JSON. Read the fields you need and ignore fields you don\'t recognise. New fields can be added in a later version, so don\'t validate the update against a fixed schema.
Response Return HTTP 200 when you have received the update.
Authentication None, Basic authentication (username and password) or OAuth.
Firewall If you use IP whitelisting, allow incoming requests from 20.61.240.121. [VERIFY: same IP address for Test and Production?]

Verify the signature

Shipment signs its updates according to RFC 9421 (HTTP Message Signatures). You can verify that an update really comes from Shipment with the public certificate:

GET {base-url}/erpservices/Certificates

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

The response is an X.509 certificate. [TO DO: which signature headers are sent, and an example of the verification.]

Failed deliveries

If your endpoint returns a 4xx or 5xx code, or can't be reached, Shipment offers the update again later. Shipment retries a failed update up to 36 times, spread over about 7 days. For example: first attempt on 17 November at 08:20, last retry on 24 November at 11:41 (both CET). After the last retry Shipment stops sending that update, so make sure your endpoint is available again within that period.

Status update: fields

Example of a status update for a CMR sent through the API:

{
"ApplicationReferenceId": "Test_CMR_1795512086",
"DossierNumber": "Test_CMR_1795512086",
"Status": 10,
"SubmissionType": null,
"DeclarationType": 9,
"Frn": null,
"Mrn": null,
"Arc": null,
"ConsignmentId": null,
"StatusChangeTime": "2026-11-24T09:21:26.5634318+00:00"
}

The field names in a status update start with a capital letter. Fields that do not apply to the flow are null.

Field Description
ApplicationReferenceId The reference you sent with the declaration. Use it to find the declaration in your platform.
DossierNumber The dossier the declaration belongs to.
Status The new status. See the article Status list.
SubmissionType The type of message sent to or received from Customs, for example IE515 (export declaration).
DeclarationType The type of declaration or document, for example DMS Export or 9 for a CMR.
Frn Functional reference number of the declaration.
Mrn Movement reference number (DMS, DVA, Transit).
Arc Administrative reference code (EMCS).
ConsignmentId ID assigned by e-CertNL (NVWA).
StatusChangeTime When the status changed.

The full schema of status and document updates is on the Swagger page of your environment: open ImportDossier and the tab Callbacks. Where to find the Swagger page is in the article OpenAPI specification.

Which statuses to process

You don't need to process every status. Many statuses are informative and need no action from your users. This is the recommended minimum for DMS declarations:

Status Name Recommended action
3 Cleared (final release, DMS 4.0) Store the MRN
4 ReleaseOfGoods (provisional release, DMS 4.0) Store the MRN
5 ReleaseForEIDR (DMS 4.1) Store the MRN
28 ExportNotification (exit of goods confirmed) Optional: close the shipment
23 FunctionalRejection Show a warning, check the rejection code
24 ControlNotificationDocuments Show a warning: document check
25 ControlNotificationPhysicalControl Show a warning: physical inspection
  • MRN: the most common use is storing the MRN in your ERP. Statuses 3, 4 and 5 contain the release by Customs and the MRN. For DMS EIDR Warehouse and DMS EIDR (DMS 4.1), your ERP must hold the complete MRN administration for the mandatory audit file.
  • Warnings: statuses 23, 24 and 25 are optional, because users also see them in Shipment. Use them to alert colleagues who don't work in Shipment that an action is needed.

All statuses are in the article Status list.

Document update: fields

Optional: Document updates and downloading documents are optional. They require the right modules in your Shipment subscription. Not sure whether you have them? See the article Getting support.

Shipment sends a document update when it generates or updates a document for a declaration you sent through the API, usually after approval by Customs. Examples are the export document, the release document for import and the payment request (Uitnodiging tot Betaling).

Field Description
documentId ID of the document. You need it to download the PDF.
apiReference Reference of the declaration in Shipment. The same value as Frn in the status updates.
applicationReferenceId The reference you sent with the declaration.
tenantId The URL of your Shipment environment.
documentSource The kind of declaration, for example Dms.
documentContentType The type of document, for example Original (release document for import or export document) or PaymentRequestFinal (final payment request).
occurredOn When the document was generated or updated.

You set the Document callback URL in the section Document webhook of the ERP Koppeling screen, see Set up your callback URL above.

Example of a document update:

{
"DocumentId": "5456fee3-b7fa-4adf-9938-9137c474b61b",
"ApiReference": "240510-0702523",
"documentSource": "Dms",
"documentContentType": "Original",
"occurredOn": "2024-05-10T07:11:40.6522127+00:00"
}

Match field names without regard to case: in the messages, the first letter can be a capital, for example DocumentId.

Download the PDF with:

GET {base-url}/erpservices/Documents?id={documentId}
Authorization: Bearer <access_token>

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

The response is the PDF file, which your platform can store or process. Authentication works the same as for sending declarations: a Bearer token. HTTP 204 means no document was found for that ID.

File names of the PDFs

The PDF files have a fixed file name that you can't change. When available, the name contains the type of document, the MRN, the FRN and the ARC. Examples:

File name Document
DMS 429-CLE 25NL3VBAZBZOD2DDR2 240408-1009319.pdf DMS export, final release, with MRN and FRN
DMS TAX-FINAL 25NL5NLTJSXXWUVDR5 250523-1020090.pdf DMS payment request, with MRN and FRN
DVA GOODS RELEASE NOTIFICATION 25NL000590KKZEATJ0.pdf DVA, with MRN
EMCS DEPARTURE-ACCEPTED 25NL132517592391582S2 252215-138800050.pdf EMCS, with ARC and FRN