query

validateCoupon

Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions.
Arguments
addressId
String
ID allotted to an address.
aggregatorName
String
Payment gateway identifier.
buyNow
Boolean
This is boolean to get buy_now cart.
cardId
String
saved card token reference id.
The unique identifier of the cart.
Debit/Credit card prefix (first 6 digit).
merchantCode
String
Identifier used by payment gateway for a given payment mode, e.g. NB_ICIC, PAYTM.
network
String
Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY.
paymentIdentifier
String
Identifier of payment like ICIC, PAYTM.
paymentMode
String
Payment mode selected by the customer.
type
String
card type, e.g. Credit, Debit.
Response
coupon_validity
CouponValidity
Coupon is valid flag if coupon is valid for the payment mode.
message
String
Payment mode valid message for coupon.
success
Boolean!
Required
success flag of coupon payment mode validity API response.
Query
Loading...
Try it
Input Variables
Loading...
Response
Loading...