How to display the message return from API?

#1

Hi there

I have made a web api call and trying to display out the message return from API
Is my Send a message configuration is wrong, no result display .

API Setting:
POST
Content Type
JSON

Data

cntrN: BMOU5698378

Body

{ “cntrN”: “BMOU5698378” }

API output:
Status Code
200
Body
{“error”:null,“data”:{“Return Type”:“CR”,“Container No”:“BMOU5698378”,“In Date”:“2021-10-08 12:15:24”,“Haulier Code”:“PENANSHIP”,“User Eor Detail”:[]}}
Data
{
“error”: null,
“data”: {
“Return Type”: “CR”,
“Container No”: “BMOU5698378”,
“In Date”: “2021-10-08 12:15:24”,
“Haulier Code”: “PENANSHIP”,
“User Eor Detail”: []
}
}

Send a Message:
image

(Nathan Stults) #2

You are trying to use a field named cntrN, but this doesn’t appear in your payload. That is why it isn’t showing. You will need to use JSON field names without spaces also, Flow XO can’t handle the spaces.

#3

@nathan

The fields spacing have been removed.
But still cannot get the return API message to the user.

Make HTTP request setup:

payload example:
{

"cntrN": "BMOU5698378"

}

Status Code
200
Body
{“error”:null,“data”:{“ReturnType”:“CR”,“ContainerNo”:“BMOU5698378”,“InDate”:“2021-10-08 12:15:24”,“HaulierCode”:“PENANSHIP”,“UserEorDetails”:[]}}
Data
{
“error”: null,
“data”: {
“ReturnType”: “CR”,
“ContainerNo”: “BMOU5698378”,
“InDate”: “2021-10-08 12:15:24”,
“HaulierCode”: “PENANSHIP”,
“UserEorDetails”: []
}
}

Send a message setup:
Container no: {{api_ibox.data__ContainerNo}}
Haulier:{{api_ibox.data__InDate}}

Settings:
Message
Container no:
Haulier:

#4

@nathan

appreciate if you help solve this puzzle as i cant figure out what is wrong .