Un billet de tombola avec l’organisateur, la liste des lots, la date et le lieu du tirage, le prix du billet, un numéro de billet, un QR code et une note sur le tirage. Téléchargez le fichier Word pour l’adapter à votre tombola, puis générez un billet pour chaque numéro.
Importez le modèle, puis envoyez les données structurées pour obtenir le document final. Pensez à remplacer YOUR_API_KEY par votre clé unique et YOUR_TEMPLATE_ID par l'ID de votre modèle.
Envoyez un tableau d'objets JSON et recevez un document par objet, dans une archive ZIP. Utilisez le paramètre output_name pour nommer chaque fichier avec les balises de fusion de votre modèle.
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." }
]
}' Questions fréquentes sur nos modèles de billets
Démarrez avec 20 documents gratuits par mois et nos modèles de billets prêts à l'emploi.