Un bon de voyage qui confirme un séjour complet. Il comporte le numéro du bon, la destination et les dates, les voyageurs, un tableau de prestations avec date, détails, prestataire et code de confirmation, ce qui est inclus et exclu, le prix, le montant payé et le solde dû, un numéro d’urgence et un QR code. Téléchargez le fichier Word pour l’adapter à votre agence, puis générez un bon 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": {
"voucher_number": "TV-2026-08841",
"issue_date": "October 6, 2026",
"agency_name": "Wanderlust Travel Co.",
"agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142",
"destination": "Lisbon, Portugal",
"trip_dates": "November 12 to 17, 2026",
"travellers": [
{
"name": "Maya Fischer",
"type": "Adult",
"passport": "X4821907"
},
{
"name": "Daniel Fischer",
"type": "Adult",
"passport": "X4821955"
}
],
"services": [
{
"date": "Nov 12, 2026",
"service": "Flight SFO to LIS",
"details": "TAP Air Portugal TP 238, departs 4:35 PM, economy",
"provider": "TAP Air Portugal",
"confirmation": "KX7P2Q"
},
{
"date": "Nov 13, 2026",
"service": "Airport transfer",
"details": "Private transfer from Lisbon Airport to the hotel",
"provider": "Lisbon Transfers",
"confirmation": "TR-55120"
},
{
"date": "Nov 13 to 17",
"service": "Hotel Avenida Palace",
"details": "4 nights, double room, breakfast included",
"provider": "Hotel Avenida Palace",
"confirmation": "HAP-770312"
},
{
"date": "Nov 15, 2026",
"service": "Sintra day tour",
"details": "Pena Palace and Cabo da Roca, pickup at 9:00 AM",
"provider": "Sintra Tours",
"confirmation": "ST-20418"
}
],
"included": [
"Return economy flights",
"4 nights with breakfast",
"Airport transfers",
"Sintra day tour with guide"
],
"excluded": [
"Travel insurance",
"Lunches and dinners",
"City tourist tax"
],
"currency": "USD",
"balance_due_date": "October 30, 2026",
"emergency_phone": "+1 (415) 555-0199",
"voucher_url": "https://wanderlust.example/voucher/TV-2026-08841",
"total_price": "2,840.00",
"amount_paid": "1,000.00",
"balance": "1,840.00",
"is_paid": false
}
}' 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": "Travel Voucher [voucher_number]",
"data": [
{ "voucher_number": "TV-2026-08841", "issue_date": "October 6, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Lisbon, Portugal", "trip_dates": "November 12 to 17, 2026", "travellers": [{"name":"Maya Fischer","type":"Adult","passport":"X4821907"},{"name":"Daniel Fischer","type":"Adult","passport":"X4821955"}], "services": [{"date":"Nov 12, 2026","service":"Flight SFO to LIS","details":"TAP Air Portugal TP 238, departs 4:35 PM, economy","provider":"TAP Air Portugal","confirmation":"KX7P2Q"},{"date":"Nov 13, 2026","service":"Airport transfer","details":"Private transfer from Lisbon Airport to the hotel","provider":"Lisbon Transfers","confirmation":"TR-55120"},{"date":"Nov 13 to 17","service":"Hotel Avenida Palace","details":"4 nights, double room, breakfast included","provider":"Hotel Avenida Palace","confirmation":"HAP-770312"},{"date":"Nov 15, 2026","service":"Sintra day tour","details":"Pena Palace and Cabo da Roca, pickup at 9:00 AM","provider":"Sintra Tours","confirmation":"ST-20418"}], "included": ["Return economy flights","4 nights with breakfast","Airport transfers","Sintra day tour with guide"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "October 30, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08841", "total_price": "2,840.00", "amount_paid": "1,000.00", "balance": "1,840.00", "is_paid": false },
{ "voucher_number": "TV-2026-08857", "issue_date": "October 9, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Rome, Italy", "trip_dates": "November 20 to 25, 2026", "travellers": [{"name":"Hannah Weiss","type":"Adult","passport":"X5530142"},{"name":"Omar Rahman","type":"Adult","passport":"X5530177"}], "services": [{"date":"Nov 20, 2026","service":"Flight JFK to FCO","details":"ITA Airways AZ 609, departs 7:10 PM, economy","provider":"ITA Airways","confirmation":"RM4T9B"},{"date":"Nov 21, 2026","service":"Airport transfer","details":"Private transfer from Fiumicino Airport to the hotel","provider":"Roma Transfers","confirmation":"TR-61207"},{"date":"Nov 21 to 25","service":"Hotel Palazzo Borghese","details":"4 nights, double room, breakfast included","provider":"Hotel Palazzo Borghese","confirmation":"HPB-440817"},{"date":"Nov 23, 2026","service":"Vatican and Colosseum tour","details":"Skip-the-line entry with a guide, meet at 9:30 AM","provider":"Eternal City Tours","confirmation":"EC-33902"}], "included": ["Return economy flights","4 nights with breakfast","Airport transfers","Vatican and Colosseum guided tour"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "October 30, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08857", "total_price": "3,360.00", "amount_paid": "3,360.00", "balance": "0.00", "is_paid": true },
{ "voucher_number": "TV-2026-08872", "issue_date": "October 12, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Barcelona, Spain", "trip_dates": "December 3 to 8, 2026", "travellers": [{"name":"Marcus Lindqvist","type":"Adult","passport":"X6102934"},{"name":"Anna Lindqvist","type":"Adult","passport":"X6102987"}], "services": [{"date":"Dec 3, 2026","service":"Flight ARN to BCN","details":"Vueling VY 6211, departs 11:20 AM, economy","provider":"Vueling","confirmation":"BC7K2M"},{"date":"Dec 3, 2026","service":"Airport transfer","details":"Shared shuttle from Barcelona Airport to the hotel","provider":"Costa Transfers","confirmation":"TR-71845"},{"date":"Dec 3 to 8","service":"Hotel Gotic Plaza","details":"5 nights, double room, breakfast included","provider":"Hotel Gotic Plaza","confirmation":"HGP-220914"},{"date":"Dec 5, 2026","service":"Gaudi architecture walk","details":"Sagrada Familia and Park Guell with a guide, 10:00 AM","provider":"Barna Walks","confirmation":"BW-18075"}], "included": ["Return economy flights","5 nights with breakfast","Airport transfers","Gaudi architecture walk"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "November 3, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08872", "total_price": "2,300.00", "amount_paid": "600.00", "balance": "1,700.00", "is_paid": false },
{ "voucher_number": "TV-2026-08889", "issue_date": "October 15, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Prague, Czechia", "trip_dates": "November 27 to December 1, 2026", "travellers": [{"name":"Tomas Novak","type":"Adult","passport":"X7203851"},{"name":"Eva Novak","type":"Adult","passport":"X7203862"}], "services": [{"date":"Nov 27, 2026","service":"Train Vienna to Prague","details":"Railjet RJ 71, departs 9:40 AM, first class","provider":"Czech Railways","confirmation":"PR3N8D"},{"date":"Nov 27, 2026","service":"Station transfer","details":"Taxi from Prague main station to the hotel","provider":"Praha Taxi","confirmation":"TR-80231"},{"date":"Nov 27 to Dec 1","service":"Hotel Karlova","details":"4 nights, double room, breakfast included","provider":"Hotel Karlova","confirmation":"HK-510286"},{"date":"Nov 29, 2026","service":"Christmas markets tour","details":"Old Town and Castle District with a guide, 4:00 PM","provider":"Prague Walks","confirmation":"PW-27719"}], "included": ["Return first class train","4 nights with breakfast","Station transfers","Christmas markets tour"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "October 30, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08889", "total_price": "1,780.00", "amount_paid": "1,780.00", "balance": "0.00", "is_paid": true },
{ "voucher_number": "TV-2026-08903", "issue_date": "October 18, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Reykjavik, Iceland", "trip_dates": "January 14 to 19, 2027", "travellers": [{"name":"Grace Kimani","type":"Adult","passport":"X8154029"},{"name":"Peter Kimani","type":"Adult","passport":"X8154063"}], "services": [{"date":"Jan 14, 2027","service":"Flight BOS to KEF","details":"Icelandair FI 630, departs 9:55 PM, economy","provider":"Icelandair","confirmation":"KF2X6R"},{"date":"Jan 15, 2027","service":"Airport transfer","details":"Flybus from Keflavik Airport to the hotel","provider":"Flybus Iceland","confirmation":"TR-92561"},{"date":"Jan 15 to 19","service":"Hotel Harpa View","details":"4 nights, double room, breakfast included","provider":"Hotel Harpa View","confirmation":"HHV-660418"},{"date":"Jan 17, 2027","service":"Northern lights tour","details":"Evening coach tour with a guide, pickup at 9:00 PM","provider":"Aurora Tours","confirmation":"AT-40583"}], "included": ["Return economy flights","4 nights with breakfast","Airport transfers","Northern lights tour"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "December 1, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08903", "total_price": "4,300.00", "amount_paid": "1,000.00", "balance": "3,300.00", "is_paid": false },
{ "voucher_number": "TV-2026-08917", "issue_date": "October 21, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Marrakech, Morocco", "trip_dates": "February 5 to 10, 2027", "travellers": [{"name":"Yuki Tanaka","type":"Adult","passport":"X9021375"},{"name":"Kenji Tanaka","type":"Adult","passport":"X9021388"}], "services": [{"date":"Feb 5, 2027","service":"Flight LHR to RAK","details":"Royal Air Maroc AT 801, departs 8:30 AM, economy","provider":"Royal Air Maroc","confirmation":"RK5H1W"},{"date":"Feb 5, 2027","service":"Airport transfer","details":"Private transfer from Menara Airport to the riad","provider":"Atlas Transfers","confirmation":"TR-10492"},{"date":"Feb 5 to 10","service":"Riad Jardin Secret","details":"5 nights, double room, breakfast included","provider":"Riad Jardin Secret","confirmation":"RJS-880231"},{"date":"Feb 7, 2027","service":"Atlas Mountains day trip","details":"Berber villages and lunch, pickup at 8:30 AM","provider":"Atlas Adventures","confirmation":"AA-61827"}], "included": ["Return economy flights","5 nights with breakfast","Airport transfers","Atlas Mountains day trip with lunch"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "December 5, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08917", "total_price": "2,480.00", "amount_paid": "2,480.00", "balance": "0.00", "is_paid": true },
{ "voucher_number": "TV-2026-08934", "issue_date": "October 24, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Vienna, Austria", "trip_dates": "December 10 to 14, 2026", "travellers": [{"name":"Daniel Brooks","type":"Adult","passport":"X1176420"},{"name":"Rachel Brooks","type":"Adult","passport":"X1176451"}], "services": [{"date":"Dec 10, 2026","service":"Flight LHR to VIE","details":"Austrian OS 458, departs 12:05 PM, economy","provider":"Austrian Airlines","confirmation":"VN9D4L"},{"date":"Dec 10, 2026","service":"Airport transfer","details":"Private transfer from Vienna Airport to the hotel","provider":"Vienna Transfers","confirmation":"TR-22076"},{"date":"Dec 10 to 14","service":"Hotel Schonbrunn","details":"4 nights, double room, breakfast included","provider":"Hotel Schonbrunn","confirmation":"HS-330915"},{"date":"Dec 12, 2026","service":"Opera evening","details":"Tickets for the State Opera, 7:00 PM","provider":"Wiener Tickets","confirmation":"WT-70431"}], "included": ["Return economy flights","4 nights with breakfast","Airport transfers","State Opera tickets"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "November 10, 2026", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08934", "total_price": "3,120.00", "amount_paid": "800.00", "balance": "2,320.00", "is_paid": false },
{ "voucher_number": "TV-2026-08951", "issue_date": "October 27, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Athens, Greece", "trip_dates": "March 4 to 9, 2027", "travellers": [{"name":"Brooke Sullivan","type":"Adult","passport":"X1288637"},{"name":"Liam Sullivan","type":"Adult","passport":"X1288659"}], "services": [{"date":"Mar 4, 2027","service":"Flight MEL to ATH via DOH","details":"Qatar Airways QR 905 and QR 203, economy","provider":"Qatar Airways","confirmation":"AT6M3J"},{"date":"Mar 5, 2027","service":"Airport transfer","details":"Private transfer from Athens Airport to the hotel","provider":"Athens Welcome","confirmation":"TR-33618"},{"date":"Mar 5 to 9","service":"Hotel Plaka Terrace","details":"4 nights, double room, breakfast included","provider":"Hotel Plaka Terrace","confirmation":"HPT-770654"},{"date":"Mar 7, 2027","service":"Acropolis and Plaka walk","details":"Guided visit with skip-the-line entry, 9:00 AM","provider":"Hellas Guides","confirmation":"HG-52086"}], "included": ["Return economy flights","4 nights with breakfast","Airport transfers","Acropolis guided visit"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "January 29, 2027", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08951", "total_price": "4,760.00", "amount_paid": "1,200.00", "balance": "3,560.00", "is_paid": false },
{ "voucher_number": "TV-2026-08968", "issue_date": "October 30, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Dubrovnik, Croatia", "trip_dates": "April 15 to 20, 2027", "travellers": [{"name":"Hannah Fischer","type":"Adult","passport":"X1399204"},{"name":"Jonas Fischer","type":"Adult","passport":"X1399215"}], "services": [{"date":"Apr 15, 2027","service":"Flight FRA to DBV","details":"Croatia Airlines OU 391, departs 10:40 AM, economy","provider":"Croatia Airlines","confirmation":"DB8Q5V"},{"date":"Apr 15, 2027","service":"Airport transfer","details":"Private transfer from Dubrovnik Airport to the hotel","provider":"Adriatic Transfers","confirmation":"TR-44729"},{"date":"Apr 15 to 20","service":"Hotel Lapad Bay","details":"5 nights, double room, breakfast included","provider":"Hotel Lapad Bay","confirmation":"HLB-990347"},{"date":"Apr 17, 2027","service":"Elaphiti Islands boat trip","details":"Full-day cruise with lunch, departs 9:30 AM","provider":"Blue Cave Cruises","confirmation":"BC-28817"}], "included": ["Return economy flights","5 nights with breakfast","Airport transfers","Elaphiti Islands boat trip"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "March 1, 2027", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08968", "total_price": "2,640.00", "amount_paid": "2,640.00", "balance": "0.00", "is_paid": true },
{ "voucher_number": "TV-2026-08985", "issue_date": "November 2, 2026", "agency_name": "Wanderlust Travel Co.", "agency_contact": "bookings@wanderlust.example · +1 (415) 555-0142", "destination": "Edinburgh, Scotland", "trip_dates": "May 6 to 10, 2027", "travellers": [{"name":"Elena Petrova","type":"Adult","passport":"X1410568"},{"name":"Alex Petrov","type":"Adult","passport":"X1410590"}], "services": [{"date":"May 6, 2027","service":"Flight DUB to EDI","details":"Aer Lingus EI 3402, departs 1:15 PM, economy","provider":"Aer Lingus","confirmation":"ED1R7N"},{"date":"May 6, 2027","service":"Airport transfer","details":"Airport tram tickets and a meeting point in the city centre","provider":"Edinburgh Trams","confirmation":"TR-55314"},{"date":"May 6 to 10","service":"Hotel Royal Mile","details":"4 nights, double room, breakfast included","provider":"Hotel Royal Mile","confirmation":"HRM-120483"},{"date":"May 8, 2027","service":"Highlands day tour","details":"Loch Ness and Glencoe by coach, pickup at 8:00 AM","provider":"Highland Day Tours","confirmation":"HD-73920"}], "included": ["Return economy flights","4 nights with breakfast","Airport transfers","Highlands day tour"], "excluded": ["Travel insurance","Lunches and dinners","City tourist tax"], "currency": "USD", "balance_due_date": "April 1, 2027", "emergency_phone": "+1 (415) 555-0199", "voucher_url": "https://wanderlust.example/voucher/TV-2026-08985", "total_price": "1,960.00", "amount_paid": "500.00", "balance": "1,460.00", "is_paid": false }
]
}' Questions fréquentes sur nos modèles de bons
Démarrez avec 20 documents gratuits par mois et nos modèles de bons prêts à l'emploi.