To enable discount codes for reservations, you must first create a discount in Recranet that allows the use of discount codes.
Adding a Discount Code:
Guests can add a discount code to their reservation during the booking process.
Redeeming a Discount Code:
Use the /redeem
endpoint to redeem a discount code applied by a guest.
Viewing Current Discount Codes:
To retrieve discount codes currently added by guests, use the /current
endpoint.
Validating a Discount Code:
Not all discount codes are valid. To verify a discount code’s validity, check the /{id}/validate
endpoint on the ReservationDiscountCode
resource.