How To Call Multiple REST APIs Within A Transaction
(Doc ID 2756033.1)
Last updated on OCTOBER 17, 2023
Applies to:
Oracle Communications Billing and Revenue Management - Version 12.0.0.3.0 and laterInformation in this document applies to any platform.
Goal
Qn1:How to call multiple REST APIs within a transaction ?
Given scenario to modify order, which involves cancellation of couple of deals on the service and purchase of couple of more deals. For the cancellation, one would call the "updateOfferStatus" API, and for the purchase, call the "purchaseOffer". Let us assume, cancellation is executed but when doing the purchase, if it failed for some reason or connection was lost, ask is to make sure that the cancellation will be rolled back, so both cancellation and purchase need to be called within a transaction that can be rolled back or won't be committed if the connection is lost in the middle of the transaction.
Qn2:How would the updateOfferStatus() or the purchaseOffer() methods look like and and how would the condition "updateOfferStatusFails" look like ?
Calling the REST APIs within Python Code, what will be the solution ?
Qn3:How to find the functions which are part of each module ?
Using python to call the REST APIs, how to achieve the same using python ?
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |