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
Body ()
Root Schema : InteractRequest
Type: object
Show Source
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
    This property contains the filter value to be used at CPQ.
  • 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: object
Show Source
  • Name can contain the state property value that is required.
Back to Top

Response

Supported Media Types

200 Response

Updated configData and state for a particular product. This response is returned by an interact invocation.
Body ()
Root Schema : InteractResponse
Type: object
Show Source
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"
}
Nested Schema : configData
Type: object
Show Source
Nested Schema : _priceInfo
Type: object
Show Source
Nested Schema : _state
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : _others
Type: array
Show Source
Nested Schema : category
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : price
Type: object
Show Source

400 Response

Bad request input data
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top