Genesys Cloud Analytics Detail API: wrapUpCode null in conversation data

Quick question about the Genesys Cloud Analytics API (/api/v2/analytics/conversations/details/query) and the handling of wrapUpCode in the returned detail objects. I am running a standard detail query for completed voice interactions within a specific date range, and the response consistently returns null for the wrapUpCode field, even when I have verified via the web UI that valid wrap-up codes were applied by agents. The query payload specifies groupings for wrapUpCode and includes it in the metrics array, yet the detail records lack this value. I am using the official TypeScript SDK (@genesyscloud/analytics-api-client) and have confirmed the OAuth token has the necessary analytics:conversation:read scope. The API call succeeds with HTTP 200, but the data integrity is missing this critical field. Is this a known limitation with detail queries versus summary queries, or is there a specific configuration required in the request body to populate this field? I have tried adjusting the from and to timestamps and ensuring the interval is set correctly, but the wrapUpCode remains null in the data array.

  • I have compared the request payload against the OpenAPI specification and confirmed that wrapUpCode is a valid metric for the voice interaction type.
  • I have tested the same query using Postman with a raw JSON payload and received identical results, ruling out SDK serialization issues.

Here is the relevant portion of the request body I am using:

{
 "queryType": "interaction",
 "groupBy": [
 "wrapUpCode"
 ],
 "metrics": [
 "wrapUpCode",
 "handleTime",
 "talkTime"
 ],
 "interval": "P1D",
 "from": "2023-10-01T00:00:00.000Z",
 "to": "2023-10-02T00:00:00.000Z",
 "where": [
 {
 "path": "type",
 "operator": "eq",
 "value": "voice"
 },
 {
 "path": "state",
 "operator": "eq",
 "value": "completed"
 }
 ]
}

Any insights into whether this is a backend data retention issue or a query syntax error would be appreciated.