Somehow the “result”, “errorcode”, “errormessage” and “resend” have been enclosed inside another group “response”. Is there any way I can make these 4 items a direct child of “body” and not “result”?
Actually you don’t need any plugin to do this @kaventan1.
Just check the ‘Return a plan text’ checkbox at top in your screenshot and put in whatever json you want as the repsonse in the box that shows up
@gaurav, many thanks for your guidance. The body now looks correct.
The response is now as shown below:
{
"body": {
"result": "Y",
"errorcode": "DUPLICATE SIG DETECTED",
"errormessage": "Potential Duplicate Transaction",
"resend": "N"
},
"headers": {
"x-powered-by": "Express",
As a non-programmer, I have a few questions:
a) Is it normal to have body in front of header? Does order of appearance matter to the receiving app?
b) The receiving app does not ask for header, does it matter to the receiving app that the header is also provided or is extra information just ignored?