List all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period.
Arguments
pageSize
IntNumber of offers to be fetched to show.
promotionGroup
StringType of promotion groups.
slug
StringA short, human-readable, URL-friendly identifier of a product.
storeId
IntUnique identifier of a store.
Response
available_promotions
[LadderPriceOfferDetails]available promotion details which are available on product which includes promotion data like promotion id, promotion name, buy rules, discount rules validity dates etc.
Query
1query promotions(2 $pageSize: Int3 $promotionGroup: String4 $slug: String5 $storeId: Int6) {7 promotions(8 pageSize: $pageSize9 promotionGroup: $promotionGroup10 slug: $slug11 storeId: $storeId12 ) {13 available_promotions {14 buy_rules15 description16 discount_rules17 id18 offer_text19 promotion_group20 valid_till21 promotion_name22 promotion_type23 }24 }25}
Try it
Input Variables
1{2 "pageSize": 42,3 "promotionGroup": "promotionGroup",4 "slug": "slug",5 "storeId": 426}
Response
1{2 "promotions": {3 "available_promotions": [4 {5 "buy_rules": {},6 "description": "A description",7 "discount_rules": [8 {}9 ],10 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",11 "offer_text": "offer_text",12 "promotion_group": "promotion_group",13 "valid_till": "valid_till",14 "promotion_name": "promotion_name",15 "promotion_type": "promotion_type"16 }17 ]18 }19}
Was this section helpful?