Introduction
The HGT EAM WebServices API is a RESTful gateway that provides simplified and optimized access to INFOR EAM (Enterprise Asset Management) grid data. The API implements an intelligent SQLite-based caching system to ensure fast and reliable responses.Base URL
All API requests should be made to:Replace
your-domain.com with your actual API server domain.Endpoint Categories
The API organizes endpoints into four main categories:Provision (Abastecimiento)
Procurement and supply chain data from EAM.GET /api/provisions/contracts- General contract dataGET /api/provisions/purchase/order/audit- Purchase order auditGET /api/provisions/view/purchase/order- Finance view of purchase orders (OC)GET /api/provisions/view/purchase/request- Finance view of purchase requests (SC)
Accounting (Contabilidad)
Accounting and financial transaction data.GET /api/accounting/transactions- Transaction grid dataGET /api/accounting/kardex- Kardex inventory report
Accounts Payable (Cuentas por Pagar)
Accounts payable and invoice data.GET /api/accounts-payable/invoice/vouchers/ecuador- Invoice vouchers for EcuadorGET /api/accounts-payable/billing/finance/view- Finance view of billingGET /api/accounts-payable/billing/finance/order-purchase- Finance view of purchase orders
Management Control (Control de Gestión)
Management control and cost analysis data.GET /api/management-control/provisions- Provisions grid dataGET /api/management-control/maintenance/costs- Maintenance cost information
Request Parameters
All grid endpoints accept the following query parameters:TypeFilter
Defines the time period filter for data retrieval.Filter type for date range:
1- PreviousDay: Previous day’s data2- PreviousMonth: Previous month’s data3- CurrentMonth: Current month’s data4- LastYear: Last year’s data5- FullMonthByYear: Specific month and year6- Custom: Custom date range7- AllRecords: All available records
Month
Specific month to query (1-12). Required when
TypeFilter=5.Year
Specific year to query. Required when
TypeFilter=5. Valid values from previous year onwards.Page
Page number for pagination. Starts at 1.
PagSize
Number of records to return per page. If not specified, uses the default configured page size.
Response Format
All successful grid responses return a standardized JSON structure:Response Fields
- currentPage - Current page number in the result set
- gridName - Human-readable name of the grid
- gridId - Unique identifier for the grid configuration
- totalRecordsReturned - Number of records in current page
- totalPages - Total number of pages available
- totalRecords - Total number of records matching the query
- dataRecord.fields - Array of field metadata describing the columns
- dataRecord.rows - Array of data rows with actual values
Pagination
The API uses offset-based pagination:- Use the
Pageparameter to specify which page to retrieve (starting at 1) - Use the
PagSizeparameter to control the number of records per page - The response includes
totalPagesandtotalRecordsto help with pagination UI
Example: Paginated Request
Caching System
The API implements an intelligent SQLite-based caching system:- First Request: Data is fetched from INFOR EAM SOAP services and cached
- Subsequent Requests: Data is served from the cache for faster response times
- Cache Duration: 15 minutes (900 seconds) response cache on endpoints
- Persistence: Cache persists between application restarts
Benefits
- Ultra-fast responses for previously queried data
- Reduced load on INFOR EAM servers
- Efficient pagination without re-querying the service
Rate Limiting
The API implements rate limiting to protect service availability:- Limit: 60 requests per minute
- Scope: Per authenticated user or IP address (for anonymous requests)
- Response: HTTP 429 (Too Many Requests) when limit exceeded
Rate Limit Headers
When rate limited, the response includes:Retry-After header indicates when you can retry the request.
Error Responses
The API uses standard HTTP status codes and returns structured error responses:Error Response Format
Common Status Codes
Request successful, data returned
Invalid request parameters or malformed request
Authentication failed or missing credentials
Requested resource not found
Request to EAM service timed out
Rate limit exceeded
Unexpected server error occurred
Requested operation not supported
Correlation IDs
All error responses include acorrelationId that can be used for troubleshooting and log correlation. Provide this ID when contacting support.
Interactive Documentation
The API provides interactive documentation powered by Scalar:- Browse all available endpoints
- View detailed parameter descriptions
- Test endpoints directly from the browser
- See request and response examples
- Authenticate and make live API calls
OpenAPI Specification
The OpenAPI specification is available at:Example: Complete Request Flow
Here’s a complete example of fetching purchase order data:Next Steps
Authentication
Learn how to authenticate API requests
Provision Endpoints
Explore procurement and supply endpoints
Accounting Endpoints
Access accounting and transaction data
Request Models
Understand request parameters and models