Ein Geschenkgutschein mit einem eleganten Doppelrahmen. Er enthält die Marke, den Anlass, den Betrag, den Empfänger und den Absender, eine optionale persönliche Nachricht, einen Gutscheincode, ein optionales Ablaufdatum, die Bedingungen und einen QR-Code, der die Einlöseseite öffnet. Laden Sie die Word-Datei herunter, um ihn an Ihre Marke anzupassen, und generieren Sie einen Gutschein für jedes Geschenk.
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": {
"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."] }
]
}' Häufig gestellte Fragen zu unseren Gutscheinvorlagen
Starten Sie mit 20 kostenlosen Dokumenten pro Monat und unseren gebrauchsfertigen Gutscheinvorlagen.