Testing the integration using Postman
Everything is prepared to send messages to ION CE using IMS via API Gateway.
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: 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 API Gateway.
- 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 or
message/multipart
An inactive connection point returns HTTP status code 412.
A successful method call returns HTTP status code 202 and body: {"status": "OK","code": 202,"message": "The request was processed successfully"}.
- Gateway Health Check