OTM Data Export REST API returning HTML response
We have an use-case where we want to pull data from OTM tables. For this we are trying to utilize the below API
/logisticsRestApi/data/v1/exportRequests
When triggered it is giving HTTP Status as 200 however the response is in HTML, which does not signify if the request was completed successfully or not.
Anyone faced this issue? If yes, please tell what the Solution is.
Request Payload - { "schema": "PRIMARY", "rangeAfter" : { "value": "2024-08-01T00:00:00Z" }, "tables" : { "items" : [ { "tableName": "SHIPMENT", "selectList": "SHIPMENT_GID,SHIPMENT_NAME,PERSPECTIVE,INSERT_DATE,UPDATE_DATE" } ] }
}
HTML Response -
<HTML><!--loginForm--><!--PostFormRedirect-->
<HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="charset" content="text/html; charset=utf-8"></HEAD>