Een cadeaubon met een elegant dubbel kader. Hij bevat het merk, de gelegenheid, het bedrag, de ontvanger en de afzender, een optioneel persoonlijk bericht, een boncode, een optionele vervaldatum, de voorwaarden en een QR-code die de inwisselpagina opent. Download het Word-bestand om het aan te passen aan uw merk en genereer een bon voor elk cadeau.
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": {
"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."] }
]
}' Veelgestelde vragen over onze waardebonsjablonen
Ga aan de slag met 20 gratis documenten per maand en onze kant-en-klare waardebonsjablonen.