REST API for Cancel Invoice is not working from ODI 12c
Summary
REST API for Cancel Invoice is not working as expectedContent
Hi Experts,
I am calling a rest api Invoice cancellation from odi, it is throwing the below error from ODI. From ODI it is not able to take the custom header. Please help me with a work around.
Method: POST
Header Content-Type=application/vnd.oracle.adf.action+json
URI:- /fscmRestApi/resources/11.13.18.05/invoices
Payload:- {
"name": "cancelInvoice",
"parameters": [
{
"InvoiceNumber": "Test"
},
{
"BusinessUnit": "DIT"
},
{
"Supplier": "XX"
}
]
}
Error showing as ODI-30227: Rest invocation failed with error : The request content does not represent an action or it has an invalid structure.
Any help is much Appreciated!
Tagged:
0