Authentication (Chamber of Commerce)
The Chamber of Commerce module supports two methods: OAuth 2.0 and Basic authentication.
The endpoint is the same for both.
We recommend OAuth 2.0.
Which method do you use?
| Method | Credentials | Use it when |
| OAuth 2.0 (recommended) | Client ID and Client Secret of an ERP integration in Shipment | You build a new integration, or you also use other modules. One set of credentials works for all modules. |
| Basic authentication | Username and password of a Shipment user with the profile Public API (recommended) or Administrator | Your integration already uses Basic authentication. |
OAuth 2.0
Use the same Client ID, Client Secret and access token as for the other modules.
How to create them and request a token is in the article Authentication (OAuth 2.0).
Send the token in the Authorization header of every request:
POST {base-url}/api/Import/ImportDossier
Authorization: Bearer <access_token>
Content-Type: application/json
Basic authentication
| Item | Value |
| User | A Shipment user with the profile Public API (recommended) or Administrator |
| Header | Authorization: Basic <base64(username:password)> |
| Transport | HTTPS, TLS 1.3 or higher |
Create a Public API user
Create a dedicated user for your integration.
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.
- 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.
Users belong to one environment.
Test and Production each need their own user.
Send the credentials
Join the username and password with a colon, encode the result in base64 and send it in the Authorization header of every request:
username:password → api-user:Secret123
base64 → YXBpLXVzZXI6U2VjcmV0MTIz
Authorization: Basic YXBpLXVzZXI6U2VjcmV0MTIz
Endpoint
POST {base-url}/api/Import/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 |
Points to note
- A missing or expired token, or a wrong username or password, gives HTTP 401.
- Changed the password of the Public API user? Update it in your platform as well.
- The Chamber of Commerce module sends no status updates.
- The structure of the request and the response is in the article Chamber of Commerce Overview.