Maximo EAM

 How to Configure the Response message for REST Api integration?

Egemen Alan's profile image
Egemen Alan posted Tue November 18, 2025 09:00 AM

Hi,

After processing the inbound transaction in Maximo, I need to return the response to the 3rd party application in JSON format.  I saw some previously asked questions and applied the answers but it did not solve my problem. In my StatefulMicSetIn extend class, after completing the operations, I define the information I want to return in the response and return it in JSON format, but after the MIF operation, I can only receive XML and 200 ok message in the Postman response. 
On the Object Structure side, I tried bypassing the process by using both Persistent and Non-Persistent objects and creating the response body in my own custom class. But in every case, the response is XML and always returns 200.

I need to send a response like the format below.
response JSON = {"Errors":[{"errormessage":"BMXAA1870E - A material issue/return transaction cannot be added from here.","siteid":"ABC","externalrefid":"DOC1","errorcode":"inventory.matUseTransNoAdd","wonum":"123456"}],"ErpResponse":{"Message":"Some lines failed. See Errors for details.","ExternalOrderID":"","ReferenceNumber":"F101254-01","Success":false}}

But return like: <?xml version="1.0" encoding="UTF-8"?>

How can I implement this architecture? How can I modify the response?
Regards