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. Example: 'addr_001'
aggregatorName
StringPayment gateway identifier (e.g., Fynd, Razorpay, Juspay). Example: 'Razorpay'
buyNow
BooleanWhether to get a Buy Now cart. Example: false
cardId
StringSaved card token reference ID. Example: 'card_tok_123'
id
StringThe unique identifier of the cart. Example: '5bb521cfdc83215e1889b346'
iin
StringDebit/Credit card prefix (first 6 digits). Example: '411111'
merchantCode
StringIdentifier used by gateway for a payment mode (e.g., NB_ICIC, PAYTM). Example: 'NB_ICIC'
network
StringCard network (e.g., VISA, MASTERCARD, RUPAY). Example: 'VISA'
paymentIdentifier
StringPayment identifier such as ICIC, PAYTM. Example: 'ICIC'
paymentMode
StringPayment mode selected (e.g., COD, NB, CARD). Example: 'CARD'
type
StringCard type (e.g., Credit, Debit). Example: 'Credit'
Response
Query
Try it
Input Variables
Response
Was this section helpful?