Execute
The Custom – Execute API call executes a custom transaction in Eyelit MES-M. Based on the parameters passed in the body/payload of the JSON packet, any custom transaction can be called.
Figure 1 - Logic within Custom/Execute API Call
Data Pre-Requisites
The transaction must exist in Eyelit MES-M in order for it to be called.
Request
Table 1 shows the method and endpoint required to make the API call to list Scheduled Jobs.
Table 1 - Outbound Message Detail for BoM Type - List
Method | URL Structure | Endpoint |
POST | https://[environment].mestec.net | /api/Custom/Execute |
The body of the payload should follow the format below.
JSON Structure for Custom Execute
Sample Request
See below for sample use cases with examples of the JSON payload format required.
To execute a custom transaction with no parameters:
JSON Sample for Custom Execute with no parameters
To execute a custom transaction with parameters:
JSON Sample for Custom Execute with parameters
Response
When using the Custom – Execute API call, a JSON payload will be returned containing data in the following structure:
JSON Structure for Custom Execute
Sample Response
See below for sample use cases with examples of the JSON payload format returned.
JSON Sample for Custom Execute