Hxgn Eam API Swagger
Hxgn Eam API Swagger
Hexagon Documentation
Generated 02/10/2025
Table of Contents
HxGN EAM™ ION API Swagger
Related documents
Version information
EAM configuration for setting up ION API
Setting up ION API for EAM
Swagger documentation for EAM
Using ION API in ION document flow
Using ION API in ION workflow
Security
Accessing ION API service from a client
Accessing ION API Service from Mobile client
Creating a service account
Custom bods
Creating policy definitions
Customer Support and Technical User Forum
Hexagon Policy Against Software Piracy
HxGN EAM™ ION API Swagger
This document provides information about using the ION API gateway with EAM as a target endpoint.
Using ION API enables you to access EAM application's services from ION Workflow, ION Document
Flow, and more giving your application much more exposure across the Infor® portfolio of applications
The high-level architecture of the ION API gateway for EAM is illustrated in this diagram.
Related documents
See these documents for more detailed instructions:
Swagger documentation for the EAM EWSConnector is attached to this PDF. The attached files include:
AnyDocument.xml
EAMApi.json
JsonTransformation.xml
SyncEnvelope.xml
To access these files, select View > Show/Hide > Navigation Panes > Attachments. For more
information on these files, see Swagger documentation for EAM.
Version information
Versions of the application that are used for this POC:
5. The user should log in to EAM using the email ID and NT password.
6. Once successfully logged in, you will find your user in the User Setup.
7. Select the Connector check box for the current logged in user.
https://<mingleserver>:port/<tenantId>/CustomerApi/<contextname>/<proxy_end_pointurl>
https://inhyxxxxxxxxx.acme.com:7443/infor/CustomerApi/eam_api/EWS
Tenant is infor for on-premise deployments. For cloud deployments refer "For Cloud EAM"
section
eam_api is the context defined in the API interface screen shown in point 4.
EWS is the proxy endpoint URL name shown in the above screen shot.
If you want to enable Oauth security for Target Endpoint and Proxy endpoint, see
Option 2 in the "Security" section of this document.
For more information on ION API see the Infor ION® API Administration Guide.
This endpoint will have EAM webservice as target endpoint, This will not be seen in ION API Connector
in ION Desk and also you cannot use the ION API "Try It Out" to make test requests to the target
endpoint as there is no documentation defined for it.
This endpoint will also have EAM webservice as target endpoint with swagger documentation (Refer
Swagger Documentation for EAM section for more information) defined for it, The user can use this
endpoint in ION Desk->ION API Connector and ION API flows
The "Try It Out" feature of ION API can also be used to make request in the ION API screen itself
Since the documentation pre-built the user cannot define the Suite and Endpoint policies like we define
in Non-Infor suite
https://<server>:<port>/<TenantId>/EAM/axis/services/EWSConnector
The below screen shows how the EAM proxy endpoint can seen in ION API Connection point
Since EAM endpoint is a soap web service it will not have the swagger documentation by default for
on-premise version. Therefore, you should build custom swagger documentation for our
EWSConnector externally and upload it to the ION API defined above so that the ION API will recognize
the service and will be available as part of ION API Metadata.
The Swagger documentation for the EAM EWSConnector that we built is attached to this PDF in the
Attachments pane. Open the file and change the host, which is the EAM service host name, and the
basePath defined in the above ION API.
For Cloud versions we have the documentation already defined as part of "Infor Provisioned" Infor
EAM® suite and the below steps are not required,
2. After successfully uploading you will find the swagger documentation as shown here.
3. When you click on the EWSConnector link you can try the sample testing using this
documentation and check if you are getting the expected response for your EAM webservice
request
4. Request
After sending the request to the endpoint, you will get a status code of "200" if the server
response is successful. You can find the response in the Response body as shown here.
After sending the request to the endpoint, you will get a status code of "500" if the request
fails. You can see the details of the failed response in the Response body as shown here.
Using ION API in ION document flow
Defining the ION API connection point
In order to use ION API in a document flow you must first define an ION API connection point.
1. Provide all the required connection point information like Name and Description.
2. On the Connection tab, import the service account. Go to the Creating service account section to
learn more about service account.
Get from API - Request a response from API. Use the data from the response to send an output
document.
Send to API - Use the data from the input document to send a request to API.
Trigger API - Combination of Get and Send API, Use the data from the input document to send a
request to API. Use the data from the response to send an output document.
4. Now we will use Trigger API scenario. On the Documents tab, click Add Document and select the
Trigger API.
5. The use case used for this scenario includes taking a SyncEnvelope custom bod or AnyDocument
as an input document and making a request to ION API for getting the default parts.
The SyncEnvelope BOD and Any Document is attached to this PDF in the Attachments pane.
6. For this use case, you need to select SyncEnvelope or AnyDocument on the Document To Receive
tab.
7. On the ION API tab, select the API you defined in the Infor ION® API screen.
8. On the Request Body tab, select the format as "text/xml" and Name should be inputXml.
9. On the Output Document tab, to get an xml to output from the API, use the Document type as
AnyDocument and format as text/xml.
10. You can make a make a test call to the Target endpoint to check if the details provided are good,
you can use the Test Connection option, while making the test request make sure the HTTP
headers in the Input Request Parameters should always be "text/xml" for Accept and Content-
Type headers as shown below as EAM webservice will only cater soap request XML’s.
11. If you want to map file fields from the Input document to the Input API request you need to select
the Map input document to API Request check box and give the request xml with place holders.
For more information on <IonApiRef> see the Infor ION® Technology Connectors Administrative
Guide.
SyncEnvelope bod which has a GetParts soap request will be used as input document and
Consume the SyncEnvelope from the shared folder via a File Connector without using a mapper
You can you <IonApiRef> tag if you want to give dynamic input from the ItemMaster to the
SyncEnvelope custom bod.
For more information on <IonApiRef> see the Infor ION® Technology Connectors Administrative
Guide.
The ION API will make a service call to EAM and receive the response as AnyDocument
(Response XML).
Once all the configurations are done, activate the flow and create a part in EAM or create a
SyncEnvelope Bod and place in a share folder for the file connector to pick.
On successful execution of the document flow you should be able to see a Response xml as Any
Document with GetPartResults information.
The possible ways in which you can make a request to ION API using the ION API Document handle the
response
Use the Input document as AnyDocument and process the Output Response of the ION API call to
AnyDocument where you will place the soap EAM request with <MP0241_Getpart_001> as part of
the AnyDocument as shown here.
Use the Input document as Custom bod like SyncEnvelope and process the Output Response of
the ION Api call to AnyDocument.
For more information on custom bods please see the Infor ION® Desk User Guide.
Use the Input document as a standard bod like SyncItemMaster and Map the bod to a
SyncEnvelope Custom bod or a AnyDocument type and process the Output Response of the ION
Api call to AnyDocument or some supported format.
Create a task in workflow which consumes the SyncRequisition and checks the status. If the
Status is approved, then make a request in the ION API in workflow which will get/update the
requisition description from/in EAM.
Once the ION API request via workflow is successful, then take the output body (Response result
xml) and process the description to a Notification.
2. On selecting the ION API in the workflow modelling area you will see the ION API Properties.
3. On the ION API tab, select the API (eam_api) that is defined on the Infor ION API screen.
4. Import the service account. Go to the Creating service account section to learn more about
service account.
Envelope//Body//MP1213_GetReq_001_Result//ResultData//Req//REQUISITIONID//DESCRIPTION
8. Define an Activation Policy and use the workflow defined above to be part of the policy.
9. Activate both Workflow and Activation Policy. Workflow should be able to make an API request
whenever EAM publishes a Requisition.
Security
The grant type used for communication between ION and ION API is Password Credentials but for
some reason the X-Infor-Identity2 and Tenant information is null in the EAM Oauth Authorization map.
Therefore, there are two options to proceed. And this is applicable for On-Premise version only as we
are going with Non-Infor suite of ION API.
Option 1
Specify OAuth2.0 for Proxy Endpoint Security and OAuth1.0a for Target Endpoint Security.
Now that the X-Infor-Identity2 and Tenant information is missing the Oauth Authorization map in EAM,
you can provide it in the Endpoint policies as header information.
The input xml soap request xml will be different if you use oauth security. Now that the security is
enabled, the request to EAM will be handled by a Bearer token and you will not user information as part
of the soap request xml.
See this sample request that you will provide in the input xml section of ION Connection point and ION
workflow.
If the user want to use Https url as target endpoint,
Enabling the Ignore Certificate Errors flag will solve the certificate issue if any (Step-1)
If the customer does not want to ignore the certificate errors by enabling it, then he needs to import the
target endpoint SSL certificate (Step-2).
By doing so the input request will be the plain EAM soap request as shown here. This request you will
provide in the input xml section of ION Connection point and ION workflow.
You can use JsonTransformations as the endpoint policies in the header of the soap request xml. This
is applicable only for on-premise version of EAM where we are using "Non-Infor" suite of ION API
Data for the fields here are obtained from the .ionapi file you downloaded from Authorized Apps to be
filled in GET NEW ACCESS TOKEN screen as mentioned here:
eg. pu = https://<hostname>:<port>/<TenantID>/as/
ot = token.oauth2
= https://<hostname>:<port>/<TenantID>/as/token.oauth2
Username = saak
Password = sask
Client ID = ci
Client Secret = cs
Once you fill all the fields you need to request a token on successful generation the user will be
provided with a Bearer token.
You need to use the token for you request to ION API
Header tab
You need to provide the header as shown here:
X-Infor-TenantID – which is "infor" as we are using a premise version of ION API in case of cloud
you need to mentioned the corresponding cloud tenant
X-INFOR-IDENTITY2 should be the mingle userusig which you generated the .ionapi for the
Authorization tab.
Body tab
The body should have the actual soap request that you are intended to fire to the target endpoint as
shown here:
After successful authentication from the authentication server, this Redirect URL call back should help
the application to redirect home page of EAM mobile app or display an error message if the
authentication is unsuccessful
Once all the details are provided the user will receive a client key, secret key, and QR code.
The QR code will have the information of the Authenticating Server and the Tenant. Once the mobile
user scans the QR code, the authentication server and the tenant details will be available with the
mobile client and stores as mobile app settings. This is like the QR Code scan functionality in EAM.
Creating a service account
To use ION API in an ION document flow or a workflow you need to define a service account and import
it.
Once the service account is created, download the account as a CSV file.
While creating the ION document flow or workflow, import the service account to use the ION API in the
flows.
This service account will be used by ION to get the ION API metadata.
Custom bods
We have used Envelope custom bod in the Document flow and workflow. We have created the custom
bod for GetPartDefaults service of EAM as you can see in this screenshot.
You can create custom bod by following the steps from the Infor ION® Desk User Guide.
<action>set</action>
<headerName>Content-Type</headerName>
<headerValue>text/xml</headerValue>
</header>
Customer Support and Technical User Forum
For the latest support information for this product, use a web browser to connect to the Smart
Community <https://smartcommunity.hexagonppm.com/> . You can submit any documentation
comments or suggestions you might have by logging on to our documentation web site at
https://docs.hexagonali.com <https://docs.hexagonali.com> .
You must have a valid license for each working copy of the product. You may also make one archival
copy of the software to protect from inadvertent destruction of the original software, but you are not
permitted to use the archival copy for any other purpose. An upgrade replaces the original license. Any
use of working copies of the product for which there is no valid Intergraph Corporation, doing business
as Hexagon’s Asset Lifecycle Intelligence division, Software License Agreement constitutes Software
Piracy for which there are very severe penalties. All Hexagon software products are protected by
copyright laws and international treaty.
If you have questions regarding software piracy or the legal use of Hexagon software products, please
call the Legal Department at 256-730-2362 in the U.S.
Copyright
Copyright© Hexagon AB and/or its subsidiaries and affiliates. All rights reserved.