query

promotions

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
Int
Number of offers to be fetched to show.
promotionGroup
String
Type of promotion groups.
slug
String
A short, human-readable, URL-friendly identifier of a product.
storeId
Int
Unique 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: Int
3 $promotionGroup: String
4 $slug: String
5 $storeId: Int
6) {
7 promotions(
8 pageSize: $pageSize
9 promotionGroup: $promotionGroup
10 slug: $slug
11 storeId: $storeId
12 ) {
13 available_promotions {
14 buy_rules
15 description
16 discount_rules
17 id
18 offer_text
19 promotion_group
20 valid_till
21 promotion_name
22 promotion_type
23 }
24 }
25}
Try it
Input Variables
1{
2 "pageSize": 42,
3 "promotionGroup": "promotionGroup",
4 "slug": "slug",
5 "storeId": 42
6}
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}