cxpromotionsforcatalog Query
The cxpromotionsforcatalog query endpoint returns a list of promotions for a given catalog.
The personalizationpromotionsweb extension extends the query endpoint defined in the personalizationwebservices with the cxpromotionsforcatalog which returns a list of PromotionRuleWsDTO
- returns list of PromotionRuleWsDTO for a given catalog
- parameters: catalog, status (optional)
A sample request looks as follows:
POST https://localhost:9002/personalizationwebservices/v1/query/cxpromotionsforcatalog
POST Data :
{
"params": {
"entry" : [
{ "key" : "catalog", "value" : "electronicsContentCatalog" }
]
}
}
Request Headers:
Accept: application/json
Content-Type: application/json
Authorization: Bearer 3ac71f81-739e-41d2-9901-6f2a1a4d5fc6
The behavior of cxpromotionsforcatalog query depends on personalizationpromotions.promotions.modifyByAction.enabled property. If it is set to false, only personalized promotions are returned. If it is set to true, all promotions in a given catalog are returned.