Un billet d’entrée pour un musée, une attraction ou une visite guidée. Il comporte le lieu, le type et le nombre de visiteurs, la date de visite et l’heure d’entrée, ce qui est inclus, le prix, les conditions d’accès, et un QR code scanné une seule fois. Téléchargez le fichier Word pour l’adapter à votre site, puis générez un billet pour chaque réservation.
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": {
"venue_name": "Harbor Maritime Museum",
"venue_tagline": "Open daily 9:00 to 18:00",
"visitor_type": "Adult",
"quantity": "2",
"visit_date": "Saturday, November 21, 2026",
"time_slot": "10:30 to 11:00",
"includes": "All permanent galleries and the “Tall Ships” exhibition",
"currency": "USD",
"ticket_code": "HMM-20261121-004871-QZ7",
"ticket_number": "HMM-20261121-004871",
"conditions": [
"Valid only on the date and entry time shown.",
"Each QR code can be scanned once.",
"Children under 12 must be accompanied by an adult."
],
"price": "36.00"
}
}' 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": "Admission Ticket [ticket_number]",
"data": [
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Adult", "quantity": "2", "visit_date": "Saturday, November 21, 2026", "time_slot": "10:30 to 11:00", "includes": "All permanent galleries and the “Tall Ships” exhibition", "currency": "USD", "ticket_code": "HMM-20261121-004871-QZ7", "ticket_number": "HMM-20261121-004871", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "36.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Child", "quantity": "2", "visit_date": "Saturday, November 21, 2026", "time_slot": "10:30 to 11:00", "includes": "All permanent galleries and the “Tall Ships” exhibition", "currency": "USD", "ticket_code": "HMM-20261121-004872-K4M", "ticket_number": "HMM-20261121-004872", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "18.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Senior", "quantity": "1", "visit_date": "Saturday, November 21, 2026", "time_slot": "11:00 to 11:30", "includes": "All permanent galleries", "currency": "USD", "ticket_code": "HMM-20261121-004873-D8X", "ticket_number": "HMM-20261121-004873", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "14.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Student", "quantity": "3", "visit_date": "Sunday, November 22, 2026", "time_slot": "12:00 to 12:30", "includes": "All permanent galleries and the “Tall Ships” exhibition", "currency": "USD", "ticket_code": "HMM-20261122-004880-P2V", "ticket_number": "HMM-20261122-004880", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "36.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Adult", "quantity": "4", "visit_date": "Sunday, November 22, 2026", "time_slot": "13:30 to 14:00", "includes": "All permanent galleries and the “Tall Ships” exhibition", "currency": "USD", "ticket_code": "HMM-20261122-004891-R7C", "ticket_number": "HMM-20261122-004891", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "72.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Family (2 adults and 2 children)", "quantity": "1", "visit_date": "Wednesday, November 25, 2026", "time_slot": "10:00 to 10:30", "includes": "All permanent galleries, the family trail and a craft workshop", "currency": "USD", "ticket_code": "HMM-20261125-004902-H5T", "ticket_number": "HMM-20261125-004902", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "48.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Adult", "quantity": "1", "visit_date": "Thursday, November 26, 2026", "time_slot": "14:00 to 14:30", "includes": "All permanent galleries", "currency": "USD", "ticket_code": "HMM-20261126-004915-W3N", "ticket_number": "HMM-20261126-004915", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "18.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Senior", "quantity": "2", "visit_date": "Friday, November 27, 2026", "time_slot": "11:30 to 12:00", "includes": "All permanent galleries and the “Tall Ships” exhibition", "currency": "USD", "ticket_code": "HMM-20261127-004929-J9B", "ticket_number": "HMM-20261127-004929", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "28.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Adult", "quantity": "2", "visit_date": "Saturday, November 28, 2026", "time_slot": "09:30 to 10:00", "includes": "All permanent galleries and the “Tall Ships” exhibition", "currency": "USD", "ticket_code": "HMM-20261128-004944-Z6F", "ticket_number": "HMM-20261128-004944", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "36.00" },
{ "venue_name": "Harbor Maritime Museum", "venue_tagline": "Open daily 9:00 to 18:00", "visitor_type": "Child", "quantity": "3", "visit_date": "Saturday, November 28, 2026", "time_slot": "10:30 to 11:00", "includes": "All permanent galleries", "currency": "USD", "ticket_code": "HMM-20261128-004951-Q1L", "ticket_number": "HMM-20261128-004951", "conditions": ["Valid only on the date and entry time shown.","Each QR code can be scanned once.","Children under 12 must be accompanied by an adult."], "price": "27.00" }
]
}' 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.