Trying to set up a Data Action that calls our internal CRM endpoint to fetch customer tier. The HTTP action fires correctly and returns a 200 with valid JSON, but Architect throws a validation error when I try to map the response body to a string variable.
The endpoint returns:
{"tier": "gold", "status": "active"}
I mapped the JSON path to $.tier in the response mapping section. The variable type is set to String. When I test the flow, the action fails with Invalid response format: expected string but found object.
I tried mapping to $.tier directly. I also tried using a JSON path expression like $.tier inside a nested object mapper, but that just returns null. The raw response log shows the JSON is clean. No extra whitespace.
Is there a specific way to unwrap the JSON response in the Data Action response tab? Or do I need to use a to parse the raw body first? I’ve checked the docs and they only show simple key-value mappings, not nested JSON extraction.
Here is the mapping config I’m using:
Response Variable: custTier
JSON Path: $.tier
Any ideas why it’s treating the string value as an object?