Add To Transaction

post

/rest/v16/config{prodFamVarName}.{prodLineVarName}.{modelVarName}/actions/_addToTxn

This action is used for adding the current state of latest configuration data to the Transaction. This is typically used in conjunction with the Add from Catalog API of Commerce Transaction or Transaction line.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : addToTxnRequest
Type: object
Show Source
  • Title: Cache Instance Id
    The unique identifier for the entry of configuration data stored in the cache. This is obtained from actions that launch configuration and passed along in subsequent actions.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : addToTxnResponse
Type: object
Show Source
Back to Top

Examples

The following example shows how to add the current state of latest configuration data to the Transaction by submitting a POST request to the REST resource using cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/configvision.servers.ultraPowerSolutionPackage/actions/_addToTxn

Request Body Sample

{
  "cacheInstanceId": "DJy4zFjQqMgkfCXYAD9OgKf3Teyqcnvi3QtQ1nJICFjs2MsvNWecrsHJYw7sLKul"
}
         

Response Body Sample

The following example shows the contents of the response body in JSON format:

{
  "destinationUrl": "https://sitename.oracle.com/commerce/buyside/document.jsp",
  "bsId": 36738986,
  "processId": 36244034
}
Back to Top