Simple Response not work in API Action?
Status: Closed · Asked by khairulz on · 0 views
Hi , Can Check why toggle simple response not working in API action task.
It is showing it like that bcoz your response does not have any JSON array elements.
For example if we fetch all the woo-commerce products then it will have multiple products with same type of properties like Name,Price,Type etc.
That will be the array for simple response turned off. But in your case there is not array, so simple response turned off and on both gives same results.
It is showing it like that bcoz your response does not have any JSON array elements.For example if we fetch all the woo-commerce products then it will have multiple products with same type of properties like Name,Price,Type etc.
That will be the array for simple response turned off. But in your case there is not array, so simple response turned off and on both gives same results.
RESPONSE Example
{
"status": true,
"message": "success",
"data": {
"403cf1d341a89cd7b002cbef1c337c85": {
"shipment_key": "403cf1d341a89cd7b002cbef1c337c85",
"integration_order_id": null,
"provider_code": "poslajud",
"tracking_no": "ERB750426807MY",
"declared_weight": "1.000",
"normal_price": "8.00",
"exclusive_price": "6.50",
"effective_price": "8.00",
"type": "parcel",
"send_method": "dropoff",
"shipment_status": "pending_dropoff",
"checkout_status": "paid",
"sender_name": "Sender Name",
"sender_company_name": "Big Company Somewhere",
"sender_address_line_1": "Menara KEN",
"sender_address_line_2": "Taman Tun Dr Ismail",
"sender_address_line_3": "",
"sender_address_line_4": "",
"sender_city": "Kuala Lumpur",
"sender_state": "WP Kuala Lumpur",
"sender_country": "Malaysia",
"sender_email": "[email hidden]",
"receiver_phone": "0199999999",
"receiver_name": "Tun Mahathir",
"receiver_company_name": null,
"receiver_address_line_1": "Jabatan Perdana Menteri",
"receiver_address_line_2": "Bulatan Utama Putrajaya",
"receiver_address_line_3": "",
"receiver_address_line_4": "",
"receiver_city": "Ampang",
"receiver_state": "Selangor",
"receiver_country": null,
"receiver_email": "[email hidden]",
"provider_label": "POSLaju",
"provider_logo": "http:\/\/app.stratos.local\/assets\/img\/poslaju.png"
}
},
"meta": ...
"hash": ...
}
thanks for your reply,
this respone example.
this is not array elements?
problem now, shipment key changes each time run the task
i try in integromat and integrately have no problem and i get raw respone
thanks for your reply,this respone example.
this is not array elements
problem now, shipment key changes each time run the taski try in integromat and integrately have no problem and i get raw respone
Can we connect on zoom call Feel free to DM me - https://www.facebook.com/fagun.shah.7
Also tagging @Supreme , so he can check your workflow tomorrow.
Hey @khairulz
We tested the same at our end on Postman and their API is currently providing data in key-value pairs. Also, the returned data is not in the JSON array elements, unless the API sends the data in an array or the data is in the same label multiple times then only "API by Pabbly" responds in advance response.

ok @Supreme , thanks for you respond.
i understand , can you suggest me how i can get raw body data,
because now i use integromat or integrately for get raw body data.
if get the solution, easy to me or maybe another same problem make just 1 workflows in pabbly.
Hey @khairulz !
We are sorry, but we don't show with Raw Data as it is not user friendly.
Hope, you understand.