post_vouchers
Create discount vouchers for hotel and flight bookings with percentage, fixed-amount, or points-redemption discounts, usage limits, and validity dates.
Instructions
Overview
Create discount vouchers that customers can apply to their hotel and flight bookings. Supports percentage discounts, fixed amounts, and points redemption vouchers.
When to Use
Promotional campaigns - Create discount codes for marketing
Customer rewards - Generate vouchers for loyal customers
Special offers - Create time-limited discount vouchers
Points redemption - Generate vouchers from loyalty points
What You Get
Voucher object - Complete voucher details including code and settings
Usage tracking - Remaining uses count
Validation - Confirmation that the voucher was created successfully
Key Features
Multiple discount types - Percentage, fixed amount, or points redemption
Flexible rules - Set minimum spend, maximum discount, and usage limits
Validity control - Define start and end dates
Guest assignment - Optionally assign to specific guests
Applies to hotels and flights - Pass the
voucherCodein thevoucherCodefield of/rates/prebook(hotels) or/flights/prebooks(flights) to redeem the discount at checkout
Quick Start
Provide voucher code, discount type, value, currency, validity dates, usage limits, and status. Returns the created voucher with all details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Total monetary pool the voucher can distribute across all redemptions, in the voucher's currency. If not set or 0, there is no monetary limit and usage is only controlled by usages_limit. When set, budget and usages_limit act as independent limits — whichever is exhausted first will reject the voucher. | |
| status | Yes | Current status of the voucher (e.g., active, inactive) | |
| currency | Yes | Currency in which the discount is offered | |
| guest_id | No | The unique identifier of the guest associated with the voucher | |
| description | No | A brief description of the voucher, detailing its purpose or offer | |
| usages_limit | Yes | Maximum number of times the voucher can be redeemed | |
| validity_end | Yes | Date until which the voucher remains valid | |
| voucher_code | Yes | A unique code for the new voucher. e.g. manhattan-holidays-100 | |
| discount_type | Yes | Type of discount, such as percentage, or points_redemption | |
| minimum_spend | Yes | Minimum rate to apply the discount voucher in the voucher currency. e.g. a minimum_spend of USD$100 will only apply for bookings with a price USD$100 or more | |
| discount_value | Yes | Value of the discount applied by the voucher. For percentage discounts, a value of 10 represents a 10% discount. For points_redemption, it indicates the fixed amount of points to be redeemed e.g. 10 equals 10 points | |
| validity_start | Yes | Date from which the voucher becomes valid | |
| terms_and_conditions | No | Terms and conditions associated with the voucher | |
| maximum_discount_amount | Yes | Maximum discount amount that can be applied using the voucher in voucher currency. e.g. a with a maximum_discount_amount of 50 in USD, will discount from 0 to USD$50 |