A hotel voucher that confirms a reservation. It has the hotel details, the confirmation number as a barcode, the check-in and check-out dates and times, the guest, the room type and the number of nights, breakfast, the rate and the total or a prepaid mark, optional special requests, and the policies. Download the Word file to adapt it to your hotel, then generate a voucher for every reservation.
Upload the voucher template, then send the structured data to get the finished document. Make sure to replace YOUR_API_KEY with your unique key and YOUR_TEMPLATE_ID with the ID of your template.
Send an array of JSON objects and get one document for each object, returned in a ZIP archive. Use the output_name parameter to customize each filename with the merge tags from your template.
curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "YOUR_TEMPLATE_ID",
"output_format": ".pdf",
"data": {
"hotel_name": "The Alderbrook Hotel",
"hotel_category": "Five-star lakeside hotel",
"hotel_address": "12 Via Regina, 22021 Bellagio, Italy",
"hotel_phone": "+39 031 555 0142",
"confirmation_number": "ALB-7742913",
"check_in_time": "from 3:00 PM",
"check_out_time": "until 11:00 AM",
"guest_name": "Elena Rossi",
"guests": "2 adults",
"room_type": "Deluxe Lake View Room",
"breakfast_included": true,
"currency": "EUR",
"is_prepaid": false,
"has_special_requests": true,
"special_requests": "Late arrival around 9:00 PM. High floor, please.",
"policies": [
"Free cancellation until December 7, 2026.",
"A valid photo ID and this voucher are required at check-in.",
"A city tax of 4.00 EUR per guest per night is paid at the hotel."
],
"check_in_date": "Mon, Dec 14, 2026",
"check_out_date": "Sat, Dec 19, 2026",
"nights": "5",
"rate_per_night": "285.00",
"total": "1,425.00"
}
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "YOUR_TEMPLATE_ID",
"output_format": ".pdf",
"single_file": false,
"output_name": "Hotel Voucher [confirmation_number]",
"data": [
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7742913", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Elena Rossi", "guests": "2 adults", "room_type": "Deluxe Lake View Room", "breakfast_included": true, "currency": "EUR", "is_prepaid": false, "has_special_requests": true, "special_requests": "Late arrival around 9:00 PM. High floor, please.", "policies": ["Free cancellation until December 7, 2026.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Mon, Dec 14, 2026", "check_out_date": "Sat, Dec 19, 2026", "nights": "5", "rate_per_night": "285.00", "total": "1,425.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743021", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Hannah Weiss", "guests": "2 adults", "room_type": "Superior Garden Room", "breakfast_included": true, "currency": "EUR", "is_prepaid": true, "has_special_requests": false, "special_requests": "", "policies": ["Free cancellation until December 11, 2026.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Dec 18, 2026", "check_out_date": "Tue, Dec 22, 2026", "nights": "4", "rate_per_night": "240.00", "total": "960.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743188", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Daniel Okafor", "guests": "2 adults and 1 child", "room_type": "Junior Suite", "breakfast_included": true, "currency": "EUR", "is_prepaid": false, "has_special_requests": true, "special_requests": "Extra bed for the child. A quiet room away from the lift.", "policies": ["Free cancellation until December 13, 2026.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Sun, Dec 20, 2026", "check_out_date": "Sun, Dec 27, 2026", "nights": "7", "rate_per_night": "395.00", "total": "2,765.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743294", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Priya Shah", "guests": "1 adult", "room_type": "Deluxe Lake View Room", "breakfast_included": false, "currency": "EUR", "is_prepaid": true, "has_special_requests": false, "special_requests": "", "policies": ["Free cancellation until January 1, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Jan 8, 2027", "check_out_date": "Mon, Jan 11, 2027", "nights": "3", "rate_per_night": "285.00", "total": "855.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743371", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Marcus Lindqvist", "guests": "2 adults", "room_type": "Executive Suite", "breakfast_included": true, "currency": "EUR", "is_prepaid": false, "has_special_requests": true, "special_requests": "Anniversary stay. A bottle of sparkling wine on arrival, please.", "policies": ["Free cancellation until January 8, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Jan 15, 2027", "check_out_date": "Wed, Jan 20, 2027", "nights": "5", "rate_per_night": "520.00", "total": "2,600.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743456", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Mei Tanaka", "guests": "2 adults", "room_type": "Superior Garden Room", "breakfast_included": true, "currency": "EUR", "is_prepaid": false, "has_special_requests": false, "special_requests": "", "policies": ["Free cancellation until January 29, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Feb 5, 2027", "check_out_date": "Tue, Feb 9, 2027", "nights": "4", "rate_per_night": "240.00", "total": "960.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743512", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Carlos Mendoza", "guests": "2 adults", "room_type": "Deluxe Lake View Room", "breakfast_included": false, "currency": "EUR", "is_prepaid": false, "has_special_requests": true, "special_requests": "Early check-in if possible, arriving around 10:00 AM.", "policies": ["Free cancellation until February 12, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Feb 19, 2027", "check_out_date": "Tue, Feb 23, 2027", "nights": "4", "rate_per_night": "285.00", "total": "1,140.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743640", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Aisha Rahman", "guests": "2 adults", "room_type": "Junior Suite", "breakfast_included": true, "currency": "EUR", "is_prepaid": true, "has_special_requests": true, "special_requests": "Halal breakfast options, please.", "policies": ["Free cancellation until March 5, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Mar 12, 2027", "check_out_date": "Wed, Mar 17, 2027", "nights": "5", "rate_per_night": "395.00", "total": "1,975.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743727", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Grace Kimani", "guests": "1 adult", "room_type": "Superior Garden Room", "breakfast_included": true, "currency": "EUR", "is_prepaid": false, "has_special_requests": false, "special_requests": "", "policies": ["Free cancellation until March 19, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Mar 26, 2027", "check_out_date": "Mon, Mar 29, 2027", "nights": "3", "rate_per_night": "240.00", "total": "720.00" },
{ "hotel_name": "The Alderbrook Hotel", "hotel_category": "Five-star lakeside hotel", "hotel_address": "12 Via Regina, 22021 Bellagio, Italy", "hotel_phone": "+39 031 555 0142", "confirmation_number": "ALB-7743805", "check_in_time": "from 3:00 PM", "check_out_time": "until 11:00 AM", "guest_name": "Brooke Sullivan", "guests": "2 adults", "room_type": "Executive Suite", "breakfast_included": true, "currency": "EUR", "is_prepaid": true, "has_special_requests": true, "special_requests": "Ground floor or lift access, please.", "policies": ["Free cancellation until April 2, 2027.","A valid photo ID and this voucher are required at check-in.","A city tax of 4.00 EUR per guest per night is paid at the hotel."], "check_in_date": "Fri, Apr 9, 2027", "check_out_date": "Tue, Apr 13, 2027", "nights": "4", "rate_per_night": "520.00", "total": "2,080.00" }
]
}' Questions frequently asked about our voucher templates
Get started with 20 free documents per month and our ready-to-use voucher templates.