Een hotelbon die een reservering bevestigt. Hij bevat de hotelgegevens, het bevestigingsnummer als barcode, de datum en tijd van in- en uitchecken, de gast, het kamertype en het aantal nachten, ontbijt, het tarief en het totaal of een voorafbetaald-markering, optionele speciale verzoeken en het beleid. Download het Word-bestand om het aan te passen aan uw hotel en genereer een bon voor elke reservering.
Upload het sjabloon en stuur daarna de gestructureerde data om het voltooide document te ontvangen. Vervang YOUR_API_KEY door uw unieke sleutel en YOUR_TEMPLATE_ID door de ID van uw sjabloon.
Stuur een array van JSON-objecten en ontvang één document per object in een ZIP-archief. Gebruik de parameter output_name om elke bestandsnaam te bepalen met de merge-tags van uw sjabloon.
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" }
]
}' Veelgestelde vragen over onze waardebonsjablonen
Ga aan de slag met 20 gratis documenten per maand en onze kant-en-klare waardebonsjablonen.