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

Postman

Postman lets you work with the Shipment API outside your own platform.
It is optional: you can build the whole integration in your own platform without it.
Postman is useful when you want to see a working request, compare it with yours, or find out where an issue is.

When to use it

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.

Downloads

File Contents Download
Collection Working sample requests for all supported message types and documents Postman collection.postman_collection.json
Environment: Stratech Shipment – Test Variables for the Test environment of Stratech Shipment Stratech Shipment Acceptance.postman_environment.json
Environment: Stratech Shipment – Production Variables for the Production environment of Stratech Shipment Stratech Shipment Production.postman_environment.json
Environment: Beurtvaartadres ShipmentManager – Test Variables for the Test environment of ShipmentManager Beurtvaartadres ShipmentManager Acceptance.postman_environment.json
Environment: Beurtvaartadres ShipmentManager – Production Variables for the Production environment of ShipmentManager Beurtvaartadres ShipmentManager Production.postman_environment.json

Set up

  1. Download and install Postman from postman.com.
  2. Optional: create a separate workspace, for example Shipment API Testing.
  3. Import the collection and the environments: drag the files into Postman, or press Ctrl+O. The collection appears under Collections, the environments under Environments.
  4. Open the environment you want to use and fill in the variables (see below).
    Use the Current value column, so your secret is not shared if you export the environment.
  5. Select the environment at the top right.
  6. Open a sample request, for example DMS > Export > DMS Export 10-00 (POST erpservices/importdossier).
  7. Replace the internal code in the sample (STRATECH_API) with the internal code of your own company in the Shipment address book.
  8. Change dossierNumber and applicationReferenceId to new values and click Send.

A successful request returns isSaved: true, isSubmitted: false and an empty errors list: the declaration is saved in Shipment, but not yet submitted.

Variables

Variable What to fill in
BaseURL The URL of your environment, with a slash at the end. For example https://test-{prefix}.shipment-stratech.nl/
client_id Your Client ID. See Authentication (OAuth 2.0).
client_secret Your Client Secret.
APIUsername Only for Chamber of Commerce documents with Basic authentication: the email address of the Public API user (or an Administrator). With OAuth 2.0 you use client_id and client_secret.
APIPassword Only for Chamber of Commerce documents with Basic authentication: the password of that user.

The URLs of both products are in the articles Authentication (OAuth 2.0) and Environments and URLs.

Common errors in Postman

HTTP code Possible cause
401 Wrong Client ID, Client Secret, username or password, or expired credentials.
403 The account doesn't have the rights or the module isn't active.
404 Wrong BaseURL, a missing slash at the end of BaseURL, or a wrong path.
405 Wrong method, for example GET instead of POST.
408, 503 Temporary network problem or maintenance. Try again in a few minutes.
500 Unexpected error. Contact Stratech Support with the request and the response.

Reproduce an issue

  1. Copy the request body your platform sent (from its log).
  2. Paste it into a request in the collection and send it to the same environment.
  3. Compare the result:
    • Same error in Postman: the issue is in the data.
      Check the fields mentioned in the error.
    • Works in Postman: the issue is in your platform, for example the token, the headers or the encoding.

See the article Troubleshooting the Shipment API.

Points to note

  • Use the Test environment for trying things out.
    Requests to Production with doSubmitWhenValid set to true are submitted for real.
  • Each applicationReferenceId can only be used once.
    Change it for every request, also when you send the same sample again, or you get HTTP 409.
  • Don't share an exported environment that contains your Client Secret.