Ein Tombola-Los mit dem Veranstalter, der Liste der Preise, Datum und Ort der Ziehung, dem Preis des Loses, einer Losnummer, einem QR-Code und einem Hinweis zur Ziehung. Laden Sie die Word-Datei herunter, um es an Ihre Tombola anzupassen, und generieren Sie ein Los für jede Nummer.
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": {
"organizer": "Riverbend Community Food Bank",
"raffle_name": "Spring Charity Raffle",
"prizes": [
{
"place": "1st",
"prize": "Weekend for two in Napa Valley"
},
{
"place": "2nd",
"prize": "Espresso machine"
},
{
"place": "3rd",
"prize": "Gourmet gift basket"
}
],
"draw_date": "Sat, May 16, 2027, 7:00 PM",
"draw_place": "Riverbend Community Hall",
"price": "5.00",
"currency": "USD",
"ticket_number": "004217",
"ticket_code": "RB-RAFFLE-2027-004217",
"draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank."
}
}' 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": "Raffle Ticket [ticket_number]",
"data": [
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004217", "ticket_code": "RB-RAFFLE-2027-004217", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004218", "ticket_code": "RB-RAFFLE-2027-004218", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004219", "ticket_code": "RB-RAFFLE-2027-004219", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004220", "ticket_code": "RB-RAFFLE-2027-004220", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004221", "ticket_code": "RB-RAFFLE-2027-004221", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004222", "ticket_code": "RB-RAFFLE-2027-004222", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004223", "ticket_code": "RB-RAFFLE-2027-004223", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004224", "ticket_code": "RB-RAFFLE-2027-004224", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004225", "ticket_code": "RB-RAFFLE-2027-004225", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." },
{ "organizer": "Riverbend Community Food Bank", "raffle_name": "Spring Charity Raffle", "prizes": [{"place":"1st","prize":"Weekend for two in Napa Valley"},{"place":"2nd","prize":"Espresso machine"},{"place":"3rd","prize":"Gourmet gift basket"}], "draw_date": "Sat, May 16, 2027, 7:00 PM", "draw_place": "Riverbend Community Hall", "price": "5.00", "currency": "USD", "ticket_number": "004226", "ticket_code": "RB-RAFFLE-2027-004226", "draw_note": "Winners are called on the day of the draw. You do not need to be present to win. All proceeds go to the food bank." }
]
}' Häufig gestellte Fragen zu unseren Ticketvorlagen
Starten Sie mit 20 kostenlosen Dokumenten pro Monat und unseren gebrauchsfertigen Ticketvorlagen.