Een tombolalot met de organisator, de lijst met prijzen, de datum en plaats van de trekking, de prijs van het lot, een lotnummer, een QR-code en een opmerking over de trekking. Download het Word-bestand om het aan te passen aan uw tombola en genereer een lot voor elk nummer.
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": {
"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." }
]
}' Veelgestelde vragen over onze ticketsjablonen
Ga aan de slag met 20 gratis documenten per maand en onze kant-en-klare ticketsjablonen.