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. Example: 'addr_001'
aggregatorName
String
Payment gateway identifier (e.g., Fynd, Razorpay, Juspay). Example: 'Razorpay'
buyNow
Boolean
Whether to get a Buy Now cart. Example: false
cardId
String
Saved card token reference ID. Example: 'card_tok_123'
The unique identifier of the cart. Example: '5bb521cfdc83215e1889b346'
Debit/Credit card prefix (first 6 digits). Example: '411111'
merchantCode
String
Identifier used by gateway for a payment mode (e.g., NB_ICIC, PAYTM). Example: 'NB_ICIC'
network
String
Card network (e.g., VISA, MASTERCARD, RUPAY). Example: 'VISA'
paymentIdentifier
String
Payment identifier such as ICIC, PAYTM. Example: 'ICIC'
paymentMode
String
Payment mode selected (e.g., COD, NB, CARD). Example: 'CARD'
type
String
Card type (e.g., Credit, Debit). Example: 'Credit'
Response
Query
Loading...
Try it
Input Variables
Loading...
Response
Loading...