Ein Restaurantgutschein für Restaurants, Cafés und Catering-Unternehmen. Er wird in Originalgröße gedruckt wie eine Speisekarte mit dem Angebot in großer Schrift, den abgedeckten Leistungen, dem Gutscheincode, dem Empfänger und dem Ablaufdatum sowie den geltenden Bedingungen, etwa nur vor Ort, nicht an Feiertagen oder ohne Getränke. Laden Sie die Word-Datei herunter, um ihn an Ihre Speisekarte anzupassen, und generieren Sie einen Gutschein für jedes verkaufte Geschenk.
Laden Sie die Vorlage für Gutscheine hoch und senden Sie die Daten, um das 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.
Laden Sie eine Excel-Tabelle hoch, und jede Zeile wird zu einem Dokument. Die Spaltenüberschriften entsprechen Ihren Zusammenführungs-Tags. Mit sheet wählen Sie ein bestimmtes Blatt.
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": {
"Restaurant": "Trattoria Alba",
"Cuisine": "Italian",
"City": "Boston",
"Offer": "Dinner for two",
"Covers": "a three-course dinner for two people, Sunday to Thursday",
"Voucher Code": "DV-4100-MQ7X",
"Recipient": "Emily Carter",
"Expiry": "Mar 28, 2028",
"Dine In Only": true,
"Not Valid On Holidays": false,
"Drinks Excluded": true,
"Address": "100 Main Street, Boston",
"Phone": "(617) 555-0130",
"Website": "trattoriaalba.example.com"
}
}' 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": "Dining Voucher [Voucher Code]",
"data": [
{ "Restaurant": "Trattoria Alba", "Cuisine": "Italian", "City": "Boston", "Offer": "Dinner for two", "Covers": "a three-course dinner for two people, Sunday to Thursday", "Voucher Code": "DV-4100-MQ7X", "Recipient": "Emily Carter", "Expiry": "Mar 28, 2028", "Dine In Only": true, "Not Valid On Holidays": false, "Drinks Excluded": true, "Address": "100 Main Street, Boston", "Phone": "(617) 555-0130", "Website": "trattoriaalba.example.com" },
{ "Restaurant": "The Copper Kettle", "Cuisine": "American bistro", "City": "Chicago", "Offer": "$75", "Covers": "toward any food order, for lunch or dinner", "Voucher Code": "DV-4153-Q7XK", "Recipient": "Jonas Weber", "Expiry": "Apr 28, 2028", "Dine In Only": false, "Not Valid On Holidays": false, "Drinks Excluded": false, "Address": "117 Main Street, Chicago", "Phone": "(617) 555-0136", "Website": "thecopperkettle.example.com" },
{ "Restaurant": "Sakura Kitchen", "Cuisine": "Japanese", "City": "Seattle", "Offer": "$100", "Covers": "toward the omakase menu, Tuesday to Saturday", "Voucher Code": "DV-4206-7XK2", "Recipient": "Priya Raman", "Expiry": "May 28, 2028", "Dine In Only": true, "Not Valid On Holidays": true, "Drinks Excluded": true, "Address": "134 Main Street, Seattle", "Phone": "(617) 555-0142", "Website": "sakurakitchen.example.com" },
{ "Restaurant": "Casa Verde", "Cuisine": "Mexican", "City": "Austin", "Offer": "$50", "Covers": "toward food and non-alcoholic drinks", "Voucher Code": "DV-4259-XK2W", "Recipient": "Daniel Okafor", "Expiry": "Jun 28, 2028", "Dine In Only": false, "Not Valid On Holidays": false, "Drinks Excluded": true, "Address": "151 Main Street, Austin", "Phone": "(617) 555-0148", "Website": "casaverde.example.com" },
{ "Restaurant": "Harbor Grill", "Cuisine": "Seafood", "City": "Portland, ME", "Offer": "Dinner for two", "Covers": "a starter, two mains and a dessert to share", "Voucher Code": "DV-4312-MQ7X", "Recipient": "Sofia Martinez", "Expiry": "Jul 28, 2028", "Dine In Only": true, "Not Valid On Holidays": false, "Drinks Excluded": true, "Address": "168 Main Street, Portland, ME", "Phone": "(617) 555-0154", "Website": "harborgrill.example.com" },
{ "Restaurant": "Le Petit Jardin", "Cuisine": "French", "City": "New Orleans", "Offer": "$120", "Covers": "toward the five-course tasting menu", "Voucher Code": "DV-4365-Q7XK", "Recipient": "Liam Chen", "Expiry": "Aug 28, 2028", "Dine In Only": true, "Not Valid On Holidays": true, "Drinks Excluded": false, "Address": "185 Main Street, New Orleans", "Phone": "(617) 555-0160", "Website": "lepetitjardin.example.com" },
{ "Restaurant": "Spice Route", "Cuisine": "Indian", "City": "San Francisco", "Offer": "$60", "Covers": "toward any dinner order, dine-in or takeaway", "Voucher Code": "DV-4418-7XK2", "Recipient": "Mia Nakamura", "Expiry": "Sep 28, 2028", "Dine In Only": false, "Not Valid On Holidays": false, "Drinks Excluded": false, "Address": "202 Main Street, San Francisco", "Phone": "(617) 555-0166", "Website": "spiceroute.example.com" },
{ "Restaurant": "Smokehouse 49", "Cuisine": "Barbecue", "City": "Kansas City", "Offer": "$40", "Covers": "toward platters and sides", "Voucher Code": "DV-4471-XK2W", "Recipient": "Noah Kowalski", "Expiry": "Oct 28, 2028", "Dine In Only": false, "Not Valid On Holidays": true, "Drinks Excluded": true, "Address": "219 Main Street, Kansas City", "Phone": "(617) 555-0172", "Website": "smokehouse.example.com" },
{ "Restaurant": "Olive and Thyme", "Cuisine": "Mediterranean", "City": "Denver", "Offer": "Brunch for two", "Covers": "two brunch plates and two coffees, weekends", "Voucher Code": "DV-4524-MQ7X", "Recipient": "Ava Thompson", "Expiry": "Nov 28, 2028", "Dine In Only": true, "Not Valid On Holidays": false, "Drinks Excluded": true, "Address": "236 Main Street, Denver", "Phone": "(617) 555-0178", "Website": "oliveandthyme.example.com" },
{ "Restaurant": "Golden Dragon", "Cuisine": "Chinese", "City": "New York", "Offer": "$80", "Covers": "toward the banquet menu for four or more", "Voucher Code": "DV-4577-Q7XK", "Recipient": "Lucas Moreau", "Expiry": "Dec 28, 2028", "Dine In Only": true, "Not Valid On Holidays": true, "Drinks Excluded": true, "Address": "253 Main Street, New York", "Phone": "(617) 555-0184", "Website": "goldendragon.example.com" }
]
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'template_id=YOUR_TEMPLATE_ID' \
-F 'file=@Restaurant Voucher Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Dining Voucher [Voucher Code]' Häufig gestellte Fragen zu unseren Gutscheinvorlagen
Starten Sie mit 20 kostenlosen Dokumenten pro Monat und unseren gebrauchsfertigen Gutscheinvorlagen.