We have recently been getting back 400 status code errors for calls to the 1.4 reporting endpoints that used to work as expected and we hoping we could get some assistance on what might be the cause.
Below you can find an example of our request with some sensitive information redacted. Curious if this could be a side effect of this version of the API nearing EOL. We have implemented the version 2.0 update, but some users prefer 1.4 for its ability to query with multiple dimensions which 2.0 does not provide.
Thanks in advance for any assistance here.
Post Data:
{
"reportDescription": {
"reportSuiteID": "[REDACTED]",
"dateFrom": "2024-09-13",
"dateTo": "2024-09-18",
"dateGranularity": "day",
"metrics": [{
"id": "revenue"
}, {
"id": "orders"
}, {
"id": "units"
}, {
"id": "visits"
}],
"elements": [{
"id": "lasttouchchannel",
"everythingElse": true
}, {
"id": "evar159",
"everythingElse": true
}, {
"id": "lasttouchchanneldetail",
"everythingElse": true
}, {
"id": "evar21",
"classification": "UTM Content (v21)",
"everythingElse": true
}],
"segments": null,
"locale": "en_US",
"currentData": false,
"source": "warehouse",
"elementDataEncoding": "utf8"
}
}
Endpoint URL:
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
Headers:
Accept: application/json, text/plain, */*
Content-Type: application/json
Authorization: Bearer [REDACTED API TOKEN]
x-api-key: [REDACTED BUT VERIFIED ACCURATE]
User-Agent: axios/1.6.7
Content-Length: 544
Accept-Encoding: gzip, compress, deflate, br