Booking
Create bookings and validate discount vouchers
📄️ Submit a booking
Submit a new booking with guest details, dates, and pricing. The booking is attributed to your API key's client name for tracking in the admin dashboard. In sandbox mode, returns a mock response without creating an actual booking. Always call calculatePrice first to get the correct property_charge before submitting.
📄️ Validate a discount voucher
Validate a voucher code against a specific property, stay dates, and total price. Returns whether the voucher is valid, the discount type and amount, and the updated total price after discount. Use this in the booking flow to let guests apply promo codes before payment.