List all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions.
Response
available_coupon_list
[Coupon]List of available coupon which can be applied on cart.
page
PageCouponPage information of the coupon list.
Query
1query coupons($buyNow: Boolean, $id: String) {2 coupons(buyNow: $buyNow, id: $id) {3 available_coupon_list {4 coupon_amount5 coupon_applicable_message6 coupon_code7 coupon_type8 coupon_value9 description10 end_date11 expires_on12 is_applicable13 is_applied14 is_bank_offer15 max_discount_value16 message17 minimum_cart_value18 offer_text19 start_date20 sub_title21 title22 }23 page {24 current25 has_next26 has_previous27 total28 total_item_count29 }30 }31}
Try it
Input Variables
1{2 "buyNow": true,3 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"4}
Response
1{2 "coupons": {3 "available_coupon_list": [4 {5 "coupon_amount": 30.7,6 "coupon_applicable_message": "coupon_applicable_message",7 "coupon_code": "coupon_code",8 "coupon_type": "coupon_type",9 "coupon_value": 30.7,10 "description": "A description",11 "end_date": "end_date",12 "expires_on": "expires_on",13 "is_applicable": true,14 "is_applied": true,15 "is_bank_offer": true,16 "max_discount_value": 30.7,17 "message": "message",18 "minimum_cart_value": 30.7,19 "offer_text": "offer_text",20 "start_date": "start_date",21 "sub_title": "sub_title",22 "title": "title"23 }24 ],25 "page": {26 "current": 42,27 "has_next": true,28 "has_previous": true,29 "total": 42,30 "total_item_count": 4231 }32 }33}
Was this section helpful?