You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OTM Data Export REST API returning HTML response

edited Aug 21, 2024 7:36AM in Transportation Management 22 comments

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>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!