A restaurant voucher for restaurants, cafes and catering businesses. It prints at actual size like a menu card with the offer in large type, what it covers, the voucher code, the recipient and the expiry date, and the conditions that apply, such as dine-in only, no holidays or drinks excluded. Download the Word file to match your menu, then generate a voucher for every gift sold.
Upload the voucher template, then send the structured data to get the finished document. 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.
Upload an Excel spreadsheet and every row becomes a document, with the column headers matching your merge tags. Use the sheet parameter to read a specific sheet from the Excel file.
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]' Questions frequently asked about our voucher templates
Get started with 20 free documents per month and our ready-to-use voucher templates.