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
- application/json
Path Parameters
-
modelVarName(required): string
The variable name of a Model
-
prodFamVarName(required): string
The variable name of a Product Family
-
prodLineVarName(required): string
The variable name of a Product Line
Root Schema : addToTxnRequest
Type:
Show Source
object
-
cacheInstanceId(required):
string
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.
Response
Supported Media Types
- application/json
Default Response
Root Schema : addToTxnResponse
Type:
Show Source
object
-
bsId:
integer
Title:
Buyside Identifier
Buyside Identifier -
destinationUrl:
string
Title:
Destination URL
Destination url. -
processId:
integer
Title:
Process Id
Process identifier.
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 }