Verifies a ticket coupon.
If the coupon has been verified, the VerifyCouponResponse
contains
an invoice
property with an invoice that includes the coupon discounts.
If the coupon fails verification, the VerifyCouponResponse
contains
a discountErrors
property including information about why the verification
failed.
You may want to call verifyCoupon()
in an input element's onCustomValidation()
to validate a coupon code while the form is being filled out.
Note: The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality
ID of the event that the ticket coupon is for.
ID of the reservation that the ticket coupon is for.
Code of the coupon to verify.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.