An admission ticket for a museum, an attraction or a tour. It has the venue, the visitor type and quantity, the visit date and entry time, what is included, the price, the conditions of entry, and a QR code that is scanned once. Download the Word file to adapt it to your venue, then generate a ticket for every booking.
Upload the ticket template, then send the structured data to get the finished document. Make sure to replace YOUR_API_KEY with your unique key and YOUR_TEMPLATE_ID with the ID of your template.
Send an array of JSON objects and get one document for each object, returned in a ZIP archive. Use the output_name parameter to customize each filename with the merge tags from your template.
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 frequently asked about our ticket templates
Get started with 20 free documents per month and our ready-to-use ticket templates.