Pipeline Viewer - Transaction
post
/rest/v19/commerce{Stage}{ProcessVarName}{MainDocVarName}/{id}/actions/_pipelineViewer
Use this endpoint to display the rules that are in effect for the current Commerce process. This operation returns both transaction and transaction line items.
Request
Supported Media Types
- application/json
Path Parameters
-
MainDocVarName(required): string
The variable name of the main document, note the first letter must be capitalized.
-
ProcessVarName(required): string
The variable name of the commerce process, note the first letter must be capitalized.
-
Stage(required): string
The stage variable identifies where a transaction is within the Commerce process flow. (Documents, Quotes, Agreements, or Orders)
-
id(required): integer
Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
Root Schema : Transaction-_pipelineViewerRequest
Type:
Show Source
object-
cacheInstanceId:
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Transaction-_pipelineViewerResponse
Type:
Show Source
object-
cacheInstanceId:
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db. -
pipelineViewerRules:
array Rules
Title:
RulesRules associated with the transaction.
Nested Schema : Rules
Type:
arrayTitle:
RulesRules associated with the transaction.
Show Source
-
Array of:
object Rule
Title:
RuleRule definition.
Nested Schema : Rule
Type:
objectTitle:
RuleRule definition.
Show Source
-
name:
string
Title:
NameRule name -
pipelineViewerRuleComponents:
object Components
Title:
ComponentsRule components -
type:
string
Title:
TypeRule type
Nested Schema : Components
Type:
objectTitle:
ComponentsRule components
Show Source
-
pipelineViewerRuleMainDoc:
object Main document
Title:
Main documentRules in main document -
pipelineViewerRuleSubDoc:
object Sub document
Title:
Sub documentRules in sub document
Nested Schema : Main document
Type:
objectTitle:
Main documentRules in main document
Show Source
-
actions:
array Actions
Title:
ActionsRules in actions -
attributes:
array Attributes
Title:
AttributesRules in attributes
Nested Schema : Sub document
Type:
objectTitle:
Sub documentRules in sub document
Show Source
-
actions:
array Actions
Title:
ActionsRules in actions -
attributes:
array Attributes
Title:
AttributesRules in attributes
Nested Schema : Actions
Type:
arrayTitle:
ActionsRules in actions
Show Source
-
Array of:
string
Title:
ActionsRules in actions
Nested Schema : Attributes
Type:
arrayTitle:
AttributesRules in attributes
Show Source
-
Array of:
string
Title:
AttributesRules in attributes
Nested Schema : Actions
Type:
arrayTitle:
ActionsRules in actions
Show Source
-
Array of:
string
Title:
ActionsRules in actions
Nested Schema : Attributes
Type:
arrayTitle:
AttributesRules in attributes
Show Source
-
Array of:
string
Title:
AttributesRules in attributes
Examples
The following example shows how to check rules that are in effect for the current Commerce process by submitting POST requests to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/commerceDocumentsOraclecpqoTransaction/18016533/actions/_pipelineViewer
Response Body Sample
{
"cacheInstanceId": "bDYxrCAnUwiVpYXUGDoT1GilCF0CFMPEGTcuKCPER3QFuxHJf33AYtAU1atZItpt"
}
Response Body Sample
{
"pipelineViewerRules": [{
"name": "Hide Level 2 Reason Approver",
"type": "Hiding Rule",
"components": {
"mainDoc": {
"attributes": [{
"name": "Hiding Attribute 1",
"variableName": "hidingAttribute1"
}, {
...
}],
"actions": [{
"name": "Hiding Action 1",
"variableName": "hidingAction1"
}, {
...
}
]
},
"subDoc": {
"attributes": [{
"name": "Hiding Attribute 10",
"variableName": "hidingAttribute10"
}, {
...
}],
"actions": [{
"name": "Hiding Action 10",
"variableName": "hidingAction10"
}, {
...
}
]
}
}
}, {
"name": "Hide Level 3 Reason Approver",
"type": "Hiding Rule",
"components": {
"mainDoc": {
...
},
"subDoc": {
...
}
}
}
]
}