Example of CRUD ops using Rest API :- How to Cancel Invoice Using Rest API in OIC

Oracle Fusion Helps with Rest API to access different objects and perform CRUD operations from Backend. https://docs.oracle.com/en/cloud/saas/financials/20b/farfa/op-invoices-x-operations-1.html
First try this in SOAP UI/POST Man and copy the response payload.
Please ensure the user has proper role to access this rest API.
Please note the response content-type is :
Content-Type: application/vnd.oracle.adf.resourceitem+json


Create a REST Type connection.
https://<ERP_SERVER&gt;.oraclecloud.com/fscmRestApi/resources/11.13.18.05

Connection Setup within Integration to Update the invoice Number:-


Sample Request JSON:-

{
"InvoiceNumber" : "XXXXX1111"
}

Now Lets cancel the invoice, here is the setup:-

request JSON:-
{
"name" : "cancelInvoice",
"parameters" : [ {
"InvoiceNumber" : "XXXXX-1111"
}, {
"BusinessUnit" : "The BU Name"
}, {
"Supplier" : "The Supplier Name"
} ]
}

NOTE THE MEDIA TYPE

Response JSON:-
{
"result" : "The current action Cancel Invoice has completed successfully."
}

NOTE THE MEDIA TYPE


Mapping:-

Thanks for reading.

One thought on “Example of CRUD ops using Rest API :- How to Cancel Invoice Using Rest API in OIC

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.