query

productLadderPromotion

Get ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals.
Arguments
Required
A short, human-readable, URL-friendly identifier of a product.
storeId
String
Store uid of assigned store on PDP page. If not passed default first created ladder will be returned.
promotionId
String
Get ladder information of given promotion id explicitely.
pageSize
Int
Number of offers to be fetched to show.
Response
available_offers
[LadderPriceOffer]
Available ladder promotions offers list.
currency
CurrencyInfo
Ladder price offers details which includes list of available ladder promotion on product.
Query
1query productLadderPromotion(
2 $slug: String!
3 $storeId: String
4 $promotionId: String
5 $pageSize: Int
6) {
7 productLadderPromotion(
8 slug: $slug
9 storeId: $storeId
10 promotionId: $promotionId
11 pageSize: $pageSize
12 ) {
13 available_offers {
14 buy_rules
15 calculate_on
16 description
17 discount_rules
18 id
19 offer_text
20 promotion_group
21 valid_till
22 promotion_name
23 }
24 currency {
25 code
26 symbol
27 }
28 }
29}
Try it
Input Variables
1{
2 "slug": "slug",
3 "storeId": "storeId",
4 "promotionId": "promotionId",
5 "pageSize": 42
6}
Response
1{
2 "productLadderPromotion": {
3 "available_offers": [
4 {
5 "buy_rules": {},
6 "calculate_on": "calculate_on",
7 "description": "A description",
8 "discount_rules": [
9 {}
10 ],
11 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
12 "offer_text": "offer_text",
13 "promotion_group": "promotion_group",
14 "valid_till": "valid_till",
15 "promotion_name": "promotion_name"
16 }
17 ],
18 "currency": {
19 "code": "code",
20 "symbol": "symbol"
21 }
22 }
23}