Trying to fetch a customer file from NICE Cognigy via a Genesys Cloud Data Action in Architect. The endpoint works fine in Postman, but the platform keeps bombing out with a 500 Internal Server Error.
The response from Cognigy is valid JSON, but I suspect the Data Action parser is choking on the structure. Here’s the payload I’m getting back:
{
"data": {
"attributes": {
"firstName": "John",
"loyaltyTier": "Gold"
}
}
}
I have the mapping set to response.data.attributes.firstName, but the logs just say JSON parse error: Unexpected token. I’ve tried wrapping the value in quotes and changing the expected type to string, but no luck.
The request headers include Content-Type: application/json and the auth token is valid. I’ve even added a retry step to rule out transient network issues, but it fails every single time. Is there a specific schema requirement for the outer wrapper that I’m missing? The docs don’t mention anything about nested objects causing parse failures.
I’m stuck. Can someone point me to a working example of parsing nested JSON from an external API in a Data Action?