API Interface to Cloudsuite Distribution Enterprise
Intermediate | 45 Minutes
API Gateway Enterprise Integration
Overview
Here, we will use the ION Messaging Service to send procured requisition data to Infor M3 for product integrations, initiate workflows, and trigger alerts.
This tutorial is designed for users with no prior experience with Infor M3 or those without access to the system. It guides them through the process of sending procured requisition data to M3 to perform tasks such as integrating ERP/Non-ERP applications, initiating workflows, and triggering alerts. The tutorial explains how to use ION Messaging Service APIs to transmit requisition data or any BOD (Business Object Document) to Infor OS.
📋 Requirements
|
Tutorial
Configuration
CALLING IMS API USING POSTMAN
Generating Access Token: An Access token must be generated as the IMS API uses OAuth 2.0 authorization.
In Postman, create a New request.
In the Authorization tab, select type as OAuth 2.0.
Scroll down in the Current Token section and fill in the details from the ‘.ionapi’ file.
- Token Name – <Readable Name>
- Grant Type – From the drop down select Password Credentials
- Access Token URL – Value of “pu”+ “ot” from the downloaded IONAPI file.
- Client ID – Value of “ci” from the downloaded IONAPI file.
- Client Secret – Value of “cs” from the downloaded IONAPI file.
- Username – Value of “saak” from the downloaded IONAPI file.
- Password – Value of “sask” from the downloaded IONAPI file.
Click on Get new Access Token button, which generates a token, and then Click on “Use token“
Call the IMS API
Change the request method to POST and enter the Request URL for IMS.
Example Request URL: https://mingle-ionapi.inforcloudsuite.com/<tenantName>/CustomerApi/IMSV3Wrapper/Messaging/v3/multipartMessage
Example:
In the Request Body, select the format “form-data“.
For the first parameter, fill the KEY as “ParameterRequest” and VALUE is a file. This file “InputHeaders‘ should be in JSON format, created by specifying the parameters along with their values as described below:
- “documentName” : Name of the file/document to be sent to ION
- “messageId” : A unique number for user identification
- “fromLogicalId” : LogicalId of the connection point created in step 3
- “toLogicalId” : default
- “charset” : “UTF-8”
Use content below for InputHeaders.json file.
{
“documentName” : “Sync.Requisition”,
“messageId” : “123456”,
“fromLogicalId” : “lid://infor.ims.build_ims”,
“toLogicalId” : “lid://default”,
“encoding” : “NONE”,
“characterSet” : “UTF-8”
}For the second parameter, fill the KEY as “MessagePayload” and for VALUE, select the file to be sent into ION which would be a BOD XML. Set the ‘CONTENT TYPE‘ header to ‘application/octet-stream‘.
Click on “Send“. The Response Body will be displayed with the Status Code.
Appendix
- This tutorial assumes the user intends to send a Standard pre-defined BOD in ION to M3. However, if the user intends to send a custom BOD/Document to ION, they are required to follow the below additional step as STEP 2 and continue with the remaining steps.
STEP 2: Create an Object Schema. The user must define the document which must be sent to ION.
Click on the ION tab, and from the navigation menu expand Data Catalog and select Object Schemas.
Click on the “+” symbol and then select “Generate From Sample Data”.
Select the file to upload.
Refer to the video below for further steps.
- This tutorial explains how to make API calls to IMS V3 Multipart Messaging service, however, the user may choose to use IMS V2 Messaging service(https://mingle-ionapi.inforcloudsuite.com/DEVMRKT_DEV/CustomerApi/IMSWrapper/send/v2/message) for these API calls based upon his/her requirement.
Troubleshooting
Common errors and troubleshooting tips for errors generated in Postman.
- Error: 401 Unauthorized: If the user faces this error, he/she has to select the “Authorization” tab, select OAuth2 to generate a proper access token, and use it before proceeding with the API call as mentioned in step 1: Generating Access Token.
2. Error: 404 Not Found: This error occurs when the Request URL is wrong and the User has to include the value of “Content-Type” as “application/octet-stream” for “MessagePayload” in the Request Body and also the user has to ensure that the “BODY” of the call is properly defined before proceeding with the API Call.
3. 400 Bad Request: Invalid client ID: This error occurs when the user doesn’t enter the client ID generated in the .ionapi file in the client ID field of the Connection point and the user must ensure the client ID in for authorization in the POSTMAN call matches the client ID value in the connection point. Confirm the “ci” value from the downloaded .ionapi file.
Resources
Online help documentation:
What made this section unhelpful for you?
On this page
- API Interface to Cloudsuite Distribution Enterprise