A gift voucher with an elegant double frame. It has the brand, the occasion, the amount, the recipient and the sender, an optional personal message, a voucher code, an optional expiry date, the terms, and a QR code that opens the redemption page. Download the Word file to adapt it to your brand, then generate a voucher for every gift.
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": {
"brand_name": "Maison Lumière Spa",
"occasion": "Happy Birthday",
"amount": "$150",
"recipient_name": "Sofia Marchetti",
"sender_name": "Lucas",
"has_message": true,
"message": "Treat yourself to a day of calm. You deserve it!",
"voucher_code": "GV-8Q4K-27ZT",
"has_expiry": true,
"expiry_date": "December 31, 2027",
"redeem_site": "maisonlumiere.example/redeem",
"redeem_url": "https://maisonlumiere.example/redeem/GV-8Q4K-27ZT",
"terms": [
"Valid for any treatment or product.",
"Cannot be exchanged for cash.",
"Present the voucher or the QR code when booking."
]
}
}' 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": "Gift Voucher [voucher_code]",
"data": [
{ "brand_name": "Maison Lumière Spa", "occasion": "Happy Birthday", "amount": "$150", "recipient_name": "Sofia Marchetti", "sender_name": "Lucas", "has_message": true, "message": "Treat yourself to a day of calm. You deserve it!", "voucher_code": "GV-8Q4K-27ZT", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-8Q4K-27ZT", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Happy Anniversary", "amount": "$200", "recipient_name": "Hannah Weiss", "sender_name": "Tomas", "has_message": true, "message": "Happy anniversary. Here is a quiet day for the two of us.", "voucher_code": "GV-3M7P-91XA", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-3M7P-91XA", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Thank You", "amount": "$50", "recipient_name": "Daniel Okafor", "sender_name": "The Whitfield family", "has_message": false, "message": "", "voucher_code": "GV-6D2N-48LC", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-6D2N-48LC", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Congratulations", "amount": "$100", "recipient_name": "Priya Shah", "sender_name": "Your friends at Lumen Labs", "has_message": true, "message": "Congratulations on the new role. Time to celebrate.", "voucher_code": "GV-9T5R-13QW", "has_expiry": false, "expiry_date": "", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-9T5R-13QW", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Happy Birthday", "amount": "$75", "recipient_name": "Carlos Mendoza", "sender_name": "Mei", "has_message": true, "message": "Happy birthday! Enjoy a relaxing afternoon.", "voucher_code": "GV-2K8V-65BE", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-2K8V-65BE", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Merry Christmas", "amount": "$250", "recipient_name": "Grace Kimani", "sender_name": "Marcus", "has_message": true, "message": "Merry Christmas. You deserve a long pause.", "voucher_code": "GV-7W1J-30HY", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-7W1J-30HY", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Get Well Soon", "amount": "$60", "recipient_name": "Brooke Sullivan", "sender_name": "Your team at Southbank", "has_message": false, "message": "", "voucher_code": "GV-4Z9C-82PD", "has_expiry": false, "expiry_date": "", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-4Z9C-82PD", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Happy Birthday", "amount": "$120", "recipient_name": "Tomas Novak", "sender_name": "Elena", "has_message": true, "message": "Many happy returns! A treat from all of us.", "voucher_code": "GV-1B6X-57MF", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-1B6X-57MF", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "With Love", "amount": "$300", "recipient_name": "Aisha and Omar Rahman", "sender_name": "The Okonkwo family", "has_message": true, "message": "Wishing you a lifetime of happiness together.", "voucher_code": "GV-8H3S-24RN", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-8H3S-24RN", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] },
{ "brand_name": "Maison Lumière Spa", "occasion": "Thank You", "amount": "$90", "recipient_name": "Yuki Tanaka", "sender_name": "Daniel", "has_message": true, "message": "Thank you for everything this year.", "voucher_code": "GV-5L7Q-96TK", "has_expiry": true, "expiry_date": "December 31, 2027", "redeem_site": "maisonlumiere.example/redeem", "redeem_url": "https://maisonlumiere.example/redeem/GV-5L7Q-96TK", "terms": ["Valid for any treatment or product.","Cannot be exchanged for cash.","Present the voucher or the QR code when booking."] }
]
}' Questions frequently asked about our voucher templates
Get started with 20 free documents per month and our ready-to-use voucher templates.