You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Calling Cloud ERP Rest API with dynamic attributes

edited May 21, 2020 10:53AM in Integration 4 comments

Content

Hi Team,

We are trying to call PO Rest API for closing PO Lines and using below payload:

https://docs.oracle.com/en/cloud/saas/procurement/20b/fapra/op-purchaseorders-poheaderid-child-lines-polineid-x-operations-0.html

{
	"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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!