Calling ION APIs from Postman

The first step in integrating to Infor's Multi-tenant CloudSuite via ION APIs is by simulating the call of these using a tool like Postman. This article will quickly run through the process for this. In this we:

  1. Obtain the URL to call an ION API
  2. Create an authorised transaction that can call the ION API
  3. Call the ION API from Postman


Step 1: Calling the API from ION API in Ming.le

No alt text provided for this image

Select the suite to call the API from. I'll use M3:



No alt text provided for this image

Find the API to use, then click Documentation:





No alt text provided for this image

Select the API transaction to use, then click Try it out:


No alt text provided for this image

Enter the parameters to use for the API transaction and click Execute:




Save the request URL returned e.g.

https://mingle-ionapi.se2.inforcloudsuite.com/#######_TRN/M3/m3api-rest/execute/EXPORTMI/Select/?SEPC=%7C&HDRS=1&QERY=count(*)%20from%20MITTRA


Step 2: Creating an ION API Authorised application

No alt text provided for this image
No alt text provided for this image

From ION ION create a new Authorised App / Backend service:











No alt text provided for this image

Then Download Credentials:




No alt text provided for this image

Set the credentials to be a service account, then specify the user to use.



The json file returned will look like this:

{
	"ti":"######_TRN",
	"cn":"Example_TRN",
	"dt":"12",
	"ci":"######_TRN~********************",
	"cs":"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
	"iu":"https://mingle-ionapi.se2.inforcloudsuite.com",
	"pu":"https://mingle-sso.se2.inforcloudsuite.com:443/######_TRN/as/",
	"oa":"authorization.oauth2",
	"ot":"token.oauth2",
	"or":"revoke_token.oauth2",
	"ev":"^^^^^^^^^^^^",
	"v":"1.0",
	"saak":"######_TRN$$$$$$$$$$$$$$$$$$$",
	"sask":":::::::::::::::::::::::::::::"

}


Step 3: Calling the ION API from Postman

In Postman, paste the request URL from step 1 into the URL field:

No alt text provided for this image

On the Authorisation tab, change the type to OAuth 2.0, and click the Get New Access Token button:

No alt text provided for this image
No alt text provided for this image

Change the Grant Type to Password Credentials.

Enter pu + ot from the json file into the Access Token URL e.g.

https://mingle-sso.se2.inforcloudsuite.com:443/######_TRN/as/token.oauth2

Enter saak from the json file into the Username.

Enter sask from the json file into the Password.

Enter ci from the json file into the Client ID.

Enter cs from the json file into the Client Secret.

No alt text provided for this image

Click Request Token. This will return a token. Click Use Token.



This will put the token into the Access Token field. Then click Send to call the ION API:

No alt text provided for this image

This returns the data requested.

For more details see the Infor presentation here.

27 Jan 2020 Update

Minor update to this, when talking to single-tenant / on-premises ION APIs there are two changes to the logic above when generating the access token.

  1. ot is "connect/token" not "token.oauth2"; and
  2. It appears Scope must be entered. I have this set to "Default_Scope"
Andrew Cowburn

Group Information Technology Manager at ForestOne

8 个月

Thanks for posting this, Al; very helpful. I hope you're doing well.

回复
James McWhinney

Sr. Solution Architect at SMS Equipment Inc.

2 年

Thanks! This was very helpful!

回复
Tevett Goad

Software Engineer at Nile Commerce

2 年

This is awesome, thank you for filling in the huge gaps with Infor documentation

thank you, very useful! you saved me a lot of time!

回复

要查看或添加评论,请登录

Alistair Johnson的更多文章

  • Querying Infor's Datalake via Compass and ION APIs

    Querying Infor's Datalake via Compass and ION APIs

    When data has been published to Infor's Datalake from Infor or non-Infor applications we can access this data from the…

  • Calling ION APIs from Powershell

    Calling ION APIs from Powershell

    Building on the setup included in the article below, here are details of how to call an ION API from Powershell. In the…

    1 条评论

社区洞察

其他会员也浏览了