Performs an interact action on a configuration attribute for a particular product.
post
/ccstore/v1/cpq/configurations/interact
This endpoint updates an ajax enabled configuration attribute for a product and returns its configuration data and state.
Request
Supported Media Types
- application/json
Root Schema : InteractRequest
Type:
Show Source
object
-
arraySetLimit:
number
The current no items to return per page of the array set that raised the interact request.
-
arraySetOffset:
number
The current paging offset of the array set that raised the interact request.
-
arraySetVarName:
string
The variable name of the array set that raised the interact request.
-
cacheInstanceId(required):
string
cacheInstanceId of the current configuration
-
configData(required):
object configData
A configData object that contains the updated configuration affected by the interact attribute update.
-
criteria:
object criteria
This is being used as filter to be used on the CPQ payload
-
model(required):
string
The model to be configured.
-
productFamily(required):
string
The productFamily of the model to be configured.
-
productLine(required):
string
The productLine of the model to be configured.
Example:
{
"productFamily":"test1",
"productLine":"productLine1",
"configData":{
"condition1":true
},
"model":"model1"
}
Nested Schema : configData
Type:
object
A configData object that contains the updated configuration affected by the interact attribute update.
Nested Schema : criteria
Type:
object
This is being used as filter to be used on the CPQ payload
Show Source
-
childDefs:
array childDefs
This property contains the filter value to be used at CPQ.
-
state:
boolean
In case the state is passed as true, the state of the configurable attributes is returned in the response. Otherwise the state of the configurable attributes is not returned in the response.
Nested Schema : childDefs
Type:
array
This property contains the filter value to be used at CPQ.
Show Source
Nested Schema : items
Type:
Show Source
object
-
name:
string
Name can contain the state property value that is required.
Response
Supported Media Types
- application/json
200 Response
Updated configData and state for a particular product. This response is returned by an interact invocation.
Root Schema : InteractResponse
Type:
Show Source
object
Example:
{
"configData":{
"textField2":"Value 1",
"textField1":"Value 1",
"_state":{
"attributes":null
},
"_isMainModelSelected":true,
"_priceInfo":{
"name":"Price",
"items":[
{
"category":{
"code":"GENERAL",
"displayName":"Price"
},
"_others":[
{
"variableName":"_totalConfiguredPrice",
"price":{
"currency":"USD",
"value":0
},
"name":"Total Configured Price of Model"
}
]
}
]
}
},
"systemCurrentDate":"2019-08-22",
"cacheInstanceId":"3W96MAJjbbm7fYTTBNqWG5lXXGHVGIZWZUY2N21qyxI2xc9xABOnlVMpOJGLCvSi"
}
400 Response
Bad request input data
Root Schema : Error
Type:
Show Source
object
-
message:
string
The error message
-
status:
string
The Error code