Skip to main content
Skip table of contents

Postman Async Single Document Flow Example

The following file can be imported into Postman and shows a series of requests for tracking a single document.


REST API - Async Single Document Flow.postman_collection.json


Authentication


After importing the file edit the collection and setup the Access Token to use the {{accessToken}} variable as shown below:


Pre-request Script


Next setup the username and password of the user you wish to test with. This user must have the API Access permission.

Variables

The Postman collection uses variables for the URL to the Rest API and to set unique interchange and document GUIDs each time the collection is run.

The only variable you need to set is the URL:

{{LinkPublicApiUrl}} should be set to the base URL for the Rest API site. Eg. http://restapi.dev2.ediportal.dk/

This is done in your Environment Settings in Postman.


Setup the Client


Finally insert the following row into the tApiClients table.


Run the collection

Now you are ready to run the flow - it's important to run the tests in the correct order 01, 02, 03, etc...

If the requests are returning a 202 - Accepted, then you have succeeded.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.