Calling Cloud ERP Rest API with dynamic attributes
Content
Hi Team,
We are trying to call PO Rest API for closing PO Lines and using below payload:
{ "name": "close", "parameters": [ { "closeAction": "closeForReceiving" }, { "closeReason": "Close for receiving reason" } ] }
As Parameter tags are different like closeaction and closereason, OIC is putting this in one {} curly braces and passing as below:
{
"name": "close",
"parameters": [
{
"closeAction": "closeForReceiving",
"closeReason": "Close for receiving reason"
}
]
}
Due to this getting 400 Bad Request issue, can anyone help on this.
Regards,
Kaustubh
0