The getAvailablePromotions actor-chain returns a list of promotions that can be used.
Parameter | Description |
|---|---|
| Identifies the number of promotions that will be displayed on the page. |
Get Available Promotions Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d
"{ \"resultSetSize\" : 20 }" "http://localhost:8080/rest/model/atg/
commerce/custsvc/promotion/PromotionWalletActor/getAvailablePromotions"The response may be similar to the following:
{"availablePromotions":[
{
"ignored":false,
"agentGranted":false,
"closenessQualifiers":[],
"close":false,
"considered":false,
"discount":0,
"promotionId":"promo10003",
"usable":true,
"promotionName":"CRS Home - Free Shipping",
"applied":true,
"active":false,
"promotionStateId":"80"
},
{
"ignored":false,
"agentGranted":false,
"closenessQualifiers":[
{
"id":"se-200005",
"name":"Save $10 on all orders over $100"
}
],
"close":true,
"considered":false,
"discount":0,
"promotionId":"promo50012",
"usable":true,
"promotionName":"$10 off Orders over $100",
"applied":false,
"active":false,
"promotionStateId":"82"
}
]}
