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
StringID allotted to an address.
aggregatorName
StringPayment gateway identifier.
buyNow
BooleanThis is boolean to get buy_now cart.
cardId
Stringsaved card token reference id.
id
StringThe unique identifier of the cart.
iin
StringDebit/Credit card prefix (first 6 digit).
merchantCode
StringIdentifier used by payment gateway for a given payment mode, e.g. NB_ICIC, PAYTM.
network
StringCredit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY.
paymentIdentifier
StringIdentifier of payment like ICIC, PAYTM.
paymentMode
StringPayment mode selected by the customer.
type
Stringcard type, e.g. Credit, Debit.
Response
coupon_validity
CouponValidityCoupon is valid flag if coupon is valid for the payment mode.
message
StringPayment 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...
Was this section helpful?