query

coupons

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.
Arguments
buyNow
Boolean
Whether to get buy_now cart.
The unique identifier of the cart.
Response
available_coupon_list
[Coupon]
List of available coupon which can be applied on cart.
Page information of the coupon list.
Query
1query coupons($buyNow: Boolean, $id: String) {
2 coupons(buyNow: $buyNow, id: $id) {
3 available_coupon_list {
4 coupon_amount
5 coupon_applicable_message
6 coupon_code
7 coupon_type
8 coupon_value
9 description
10 end_date
11 expires_on
12 is_applicable
13 is_applied
14 is_bank_offer
15 max_discount_value
16 message
17 minimum_cart_value
18 offer_text
19 start_date
20 sub_title
21 title
22 }
23 page {
24 current
25 has_next
26 has_previous
27 total
28 total_item_count
29 }
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": 42
31 }
32 }
33}