Testing the integration using Postman
Everything is prepared to send messages to ION CE using IMS via ION API.
To verify the correct working, you can use a REST client such as Postman API Client.
Complete these steps:
- Install Postman.
- Import on Postman the IMS v3 template.postman_collection.json file. This creates the 'IMS via ION API' project.
- At the root level of the newly imported project, edit the configuration.
-
In the Variables section, add the
values of the variables as you find them in the downloaded authorized app
credential file.
If you created a connection point with another
lid
thaninfor.ims.cp_myapp
, then adjust thelogicalId
here accordingly. DO NOT includelid://
in the value.-
You must specify both, the initial value and the current value for the
variables.
Note:
- The defaults set in this Postman project are prepared for an ION CE integration. If you use your own Infor OS deployment, then you must adjust "oa" and "ot" to the values found in the authorized app credential file.
- You can skip the properties that start with
directIMS
. These are used for the Oauth 1.0a integration.
- Save the changes.
-
You must specify both, the initial value and the current value for the
variables.
-
Right-click IMS via ION API
(Oauth2.0) and click Edit.
Scroll to the bottom of the Authorization tab and click Get a New Access Token.
-
Request a new token.
If the request is successful, then an access token is generated.Note: For "scope" you may have to define the value . Specify this setting if the response on the token request is "invalid_scope".
- In the response panel, select Use Token.
-
Request a new token.
-
You should now be able to successfully run these IMS
methods defined in the Postman project:
- Gateway Health Check
A basic check whether there is connectivity with ION API.
- ping
A successful ping returns HTTP status code 200 and body: {"status":"OK","code": 200}.
- versions
A successful versionsA successful response returns HTTP status code 200 returns HTTP status code 200 and body: {"supportedVersions": ["v1","v2","v3"]}.
- AcceptedDocuments
An inactive connection point returns HTTP status code 412.
A successful acceptedDocuments returns HTTP status code 200 and a body such as: {"logicalId": "lid://infor.ims.cp_myapp","acceptedDocuments": ["Confirm.BOD","Sync.SalesOrder"]}.
- multipartMessage
An inactive connection point returns HTTP status code 412.
A successful multipartMessage returns HTTP status code 202 and body: {"status": "OK","code": 202,"message": "The request was processed successfully"}.
- Gateway Health Check