Ein Hotelgutschein, der eine Reservierung bestätigt. Er enthält die Hoteldaten, die Bestätigungsnummer als Barcode, An- und Abreisedatum samt Uhrzeiten, den Gast, die Zimmerkategorie und die Anzahl der Nächte, das Frühstück, den Preis und die Summe oder einen Vorausbezahlt-Vermerk, optionale Sonderwünsche und die Bedingungen. Laden Sie die Word-Datei herunter, um ihn an Ihr Hotel anzupassen, und generieren Sie einen Gutschein für jede Reservierung.
Laden Sie die Vorlage hoch und senden Sie die strukturierten Daten, um das fertige Dokument zu erhalten. Ersetzen Sie YOUR_API_KEY durch Ihren Schlüssel und YOUR_TEMPLATE_ID durch die Vorlagen-ID.
Senden Sie ein Array von JSON-Objekten und erhalten Sie pro Objekt ein Dokument im ZIP-Archiv. Benennen Sie mit output_name jede Datei mit den Zusammenführungs-Tags Ihrer Vorlage.
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" }
]
}' Häufig gestellte Fragen zu unseren Gutscheinvorlagen
Starten Sie mit 20 kostenlosen Dokumenten pro Monat und unseren gebrauchsfertigen Gutscheinvorlagen.