Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
REST API for Cancel Invoice is not working from ODI 12c — Cloud Customer Connect
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

REST API for Cancel Invoice is not working from ODI 12c

Question
14
Views
0
Comments
edited Dec 18, 2019 5:41PM in Data Integration

Summary

REST API for Cancel Invoice is not working as expected

Content

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!

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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