Quick start
This guide explains how to connect your ERP or business platform, such as SAP, M3, Baan or Ridder iQ, to Stratech Shipment or Beurtvaartadres ShipmentManager and send your first message.
The API has two routes. Which one you need depends on what you send:
| Route | What you send | Endpoint |
| A | Customs declarations (DMS, DVA, EMCS), NVWA export certificates, Portbase and Single Window | /erpservices/ImportDossier |
| A | CMR | /erpservices/Documents/CreateCmrDocument |
| A | A.TR | /erpservices/Documents/CreateAtrDocument |
| B | Chamber of Commerce (KvK) documents: Certificate of Origin and EUR certificate | /api/Import/ImportDossier |
Route A uses OAuth 2.0 with a Client ID and Client Secret. Route B uses Basic authentication with the username and password of a Shipment user. Do you use both? Then follow both routes.
Want to try the API before you build anything? Use our Postman collection, see Optional: build, test and troubleshoot with Postman at the end of this article.
Before you start
- Access to Stratech Shipment or Beurtvaartadres ShipmentManager, and the URL of your environment. You'll find the URL in your activation email.
- A user account of the type Administrator. The account created during activation is an Administrator by default.
- Your platform must be able to send HTTPS requests with JSON (TLS 1.3) and, for status updates, receive them.
- The Swagger page of your environment. It shows all endpoints and fields per message type, and links to the full JSON specification. The URLs are below.
Start on the Swagger page for your route. From there you open the full JSON specification.
| Route | Page | Path |
| A | Swagger page | {base-url}/erpservices/swagger/index.html |
| A | JSON specification | {base-url}/erpservices/swagger/v1/import.json |
| B | Swagger page | {base-url}/help/index.html |
| B | JSON specification | {base-url}/help/import/import.json |
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 |
For example: https://test-{prefix}.shipment-stratech.nl/erpservices/swagger/index.html.
Route A: customs, documents, NVWA and Portbase
Follow these steps for every module except Chamber of Commerce.
Step A1: Create your Client ID and Client Secret
- Log in to Stratech Shipment or Beurtvaartadres ShipmentManager with an Administrator account.
- Click Beheer > Instellingen (Management > Settings), then ERP Koppelingen > Import (ERP integrations > Import).
- Click Nieuwe ERP koppeling (New ERP integration), enter a name and click Toepassen (Apply).
- Click Genereer (Generate) and confirm with OK. You now have a Client ID and a Client Secret.
Important: the Client Secret is shown only once. Store it securely right away. If you lose it, generate a new one and update it in your platform as well.
Screenshots of each step are in the article Authentication.
Step A2: Request a token
Authentication uses OAuth 2.0 client credentials. A token is valid for 1 hour. We recommend requesting a new token for every call.
Each product and environment has its own token endpoint:
https://{host}/realms/{realm}/protocol/openid-connect/token
Replace {host} and {realm} with the values of your product and environment:
| Product and environment | {host} | {realm} |
| Stratech Shipment – Test | training-kc.stratech.nl |
stratech |
| Stratech Shipment – Production | prod-kc.stratech.nl |
stratech |
| Beurtvaartadres ShipmentManager – Test | bva-acc-kc.stratechlive.nl |
bva |
| Beurtvaartadres ShipmentManager – Production | bva-prod-kc.beurtvaartadres.nl |
bva |
curl -X POST "{token-endpoint}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "scope=erpservice"
The response contains an access_token. Send it with every request in the header Authorization: Bearer <access_token>.
Replace {token-endpoint} with the token endpoint of your product and environment, as shown above. Stratech Shipment and Beurtvaartadres ShipmentManager each have their own token endpoints and credentials.
Step A3: Send a dossier
Send a POST request to the ImportDossier endpoint:
POST {base-url}/erpservices/ImportDossier
Authorization: Bearer <access_token>
Content-Type: application/json
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 |
One request is one dossier with one or more declarations. Each message type has its own array. This example contains one DMS Export declaration:
{
"dossierNumber": "ERP_2026_000123",
"dmsExportDeclarations": [
{
"applicationReferenceId": "ERP_2026_000123_EXP_1",
"doSubmitWhenValid": false,
"doNotSaveWhenInvalid": true,
"declarationData": { },
"consignor": { "internalCode": "YOUR_CONSIGNOR_CODE" }
}
]
}
| Field | Description |
dossierNumber |
Your number for the dossier. Required, 1 to 30 characters. |
applicationReferenceId |
Your unique reference for this declaration. Required. Never reuse it, not even when you send a dataset again that you sent before. |
doSubmitWhenValid |
true: Shipment submits the declaration automatically when all data is valid. Default false. |
doNotSaveWhenInvalid |
true: an invalid declaration is not saved and the errors are returned. Default false. Recommended: true. |
declarationData |
The content of the declaration. See the message specification. |
consignor |
The consignor, by its code in the Shipment address book. |
The response contains a result per declaration:
{
"dmsExportDeclarationResults": [
{
"applicationReferenceId": "ERP_2026_000123_EXP_1",
"isSaved": true,
"isSubmitted": false,
"errors": [],
"frn": "..."
}
]
}
Important: HTTP 200 does not mean every declaration is valid. Always check isSaved, isSubmitted and errors.
All message types, limits and HTTP codes are in the article Payload rules.
Step A4 (optional): Receive status updates
Shipment can send a status update to your platform when the status of a declaration or document changes. 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? Contact Stratech.
The statuses depend on the flow. For a CMR you receive, for example, status 10 (Draft) when the document is saved. For a DMS declaration you receive a status for every step it goes through. Not every status needs an action from your users, so choose which statuses you show in your platform.
Without status updates, you follow the status and the MRN of your declarations in Shipment itself. You can skip this step and go to step A5.
- Click Beheer > Instellingen (Management > Settings), then ERP Koppeling (ERP integration).
- Enter your Status callback URL and click Toepassen (Apply).
- Make sure your endpoint accepts POST requests and returns HTTP 200.
Each update contains your ApplicationReferenceId, the new Status and, depending on the message type, the Mrn. The minimum set of statuses to process:
| Status | Name | Action in your platform |
| 3 | Cleared | Store the MRN |
| 4 | ReleaseOfGoods | Store the MRN |
| 5 | ReleaseForEIDR | Store the MRN |
| 23 | FunctionalRejection | Show a warning |
Security, retries and all fields are in the article Status updates.
Step A5: Go live
- Test every message type you use in the Test environment.
- If you use status updates: check that they arrive and are processed correctly.
- Create a Client ID and Secret in Production and switch your token and API URLs. See the article Environments and URLs.
Route B: Chamber of Commerce
The Chamber of Commerce module uses its own, older endpoint with its own message structure. Field names are in PascalCase and the request has a Header and a Body.
Step B1: Create a Public API user
The Chamber of Commerce module only supports Basic authentication, with the username and password of a Shipment user. A Client ID and Client Secret don't work here. Use a user with the profile Public API (recommended) or Administrator.
- Log in to Stratech Shipment or Beurtvaartadres ShipmentManager with an Administrator account.
- Click Beheer > Instellingen (Management > Settings), then Gebruikers (Users).
- Click Toevoegen (Add).
- Enter a name and email address, and choose the profile Public API.
- Click Toepassen (Apply). The user receives an email to set a password.
A Public API user can only use the API and can't change anything else in Shipment. Don't use a personal account: the integration then keeps working when someone leaves or changes their password.
Send the username and password with every request, base64-encoded in the pattern username:password, in the header Authorization: Basic <base64(username:password)>.
Step B2: Send a dossier
POST {base-url}/api/Import/ImportDossier
Authorization: Basic <base64(username:password)>
Content-Type: application/json
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 request has this structure. The documents are in Body.ChamberOfCommerce: COO for a Certificate of Origin or EUR for an EUR certificate.
{
"Header": {
"ShipmentIdentifier": "ERP_2026_000123"
},
"Body": {
"CountryCodeOfDestination": "US",
"Parties": [ ... ],
"ChamberOfCommerce": {
"COO": { ... }
}
}
}
| Field | Description |
Header.ShipmentIdentifier |
Your number for the dossier. Required, max. 30 characters. This is the dossier number: the same value as dossierNumber in route A. |
Body.Parties |
The parties, for example the exporter by its code in the Shipment address book (InternalCode). |
Body.ChamberOfCommerce |
The Chamber of Commerce document: COO or EUR. |
All fields are in the article Chamber of Commerce.
Step B3: Check the response
The response contains the result for the dossier:
| Field | Description |
DossierId |
ID of the dossier in Shipment. |
StatusCode |
Result of the request. |
Message |
Message about the result. |
ValidationErrors |
Validation errors, if any. |
The Chamber of Commerce module doesn't send status updates. You follow the status of the document in Shipment itself.
Note: a Chamber of Commerce document can only start a dossier. You can add declarations or a CMR to that dossier afterwards, with the same value as
dossierNumber. You can't add a Chamber of Commerce document to a dossier that already contains a declaration or transport document.
Step B4: Go live
- Test your documents in the Test environment.
- Create a Public API user in Production and switch to the Production URL.
Optional: build, test and troubleshoot with Postman
Our Postman collection lets you work with the API outside your own platform. It contains all endpoints, the authentication setup and sample datasets for the most common message types. You can use it at any stage:
| When | What you use it for |
| Before you build | Send a sample dataset and see what a working request and response look like. |
| While you build | Compare the request from your platform with a working request from the collection. |
| After go-live | Reproduce an issue outside your platform to find out whether it's in your data, your platform or the API. |
Get started with the collection
- Download the collection and the environment for your product:
- In Postman, click Import and select the downloaded files.
- Select the environment and fill in the variables. For route A:
BaseURL,client_idandclient_secret. For route B:APIUsernameandAPIPassword. - Open a sample dataset and click Send.
All set-up steps and variables are in the article Postman.
Tip: working with an AI coding assistant? Give it the OpenAPI specification and the Postman collection. Together they contain all endpoints, fields and complete sample payloads.
Stuck? Contact support and include your applicationReferenceId (route A) or ShipmentIdentifier (route B) and the time of the request.