Une note de frais pour les employés et les équipes financières. Elle liste chaque dépense avec sa devise et son taux de change, calcule le montant en dollars et signale les justificatifs, puis totalise la note par catégorie, déduit l’éventuelle avance et indique le remboursement dû, avec l’approbation du manager ajoutée une fois la note approuvée. Téléchargez le fichier Word pour l’adapter à votre politique, puis générez une note de frais pour chaque déplacement.
Importez le modèle, puis envoyez les données structurées pour générer votre rapport. Remplacez 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": {
"report_number": "ER-2027-0214",
"period_start": "2027-03-01",
"period_end": "2027-03-05",
"submitted": "2027-03-11",
"employee": {
"name": "Dana Whitaker",
"department": "Sales",
"manager": "Marcus Hale",
"cost_center": "CC-2210"
},
"purpose": "Client visits in Chicago",
"expenses": [
{
"date": "2027-03-01",
"category": "Airfare",
"description": "Round trip flight SFO to ORD",
"amount": 486.4,
"currency": "USD",
"rate": 1,
"receipt": true
},
{
"date": "2027-03-01",
"category": "Ground",
"description": "Taxi from the airport",
"amount": 52,
"currency": "USD",
"rate": 1,
"receipt": true
},
{
"date": "2027-03-01",
"category": "Lodging",
"description": "Hotel, 4 nights",
"amount": 1120,
"currency": "USD",
"rate": 1,
"receipt": true
},
{
"date": "2027-03-02",
"category": "Meals",
"description": "Dinner with the Brightpath team",
"amount": 148.75,
"currency": "USD",
"rate": 1,
"receipt": true
},
{
"date": "2027-03-03",
"category": "Meals",
"description": "Lunch",
"amount": 24.5,
"currency": "USD",
"rate": 1,
"receipt": false
},
{
"date": "2027-03-03",
"category": "Ground",
"description": "Rideshare to the client office",
"amount": 38.2,
"currency": "USD",
"rate": 1,
"receipt": true
},
{
"date": "2027-03-04",
"category": "Meals",
"description": "Team breakfast",
"amount": 61.3,
"currency": "USD",
"rate": 1,
"receipt": true
},
{
"date": "2027-03-05",
"category": "Ground",
"description": "Taxi to the airport",
"amount": 49.6,
"currency": "USD",
"rate": 1,
"receipt": true
}
],
"categories": [
{
"name": "Lodging",
"total": 1120
},
{
"name": "Airfare",
"total": 486.4
},
{
"name": "Meals",
"total": 234.55
},
{
"name": "Ground",
"total": 139.8
}
],
"total_expenses": 1980.75,
"advance": 500,
"reimbursement": 1480.75,
"approved": true,
"approved_on": "2027-03-16"
}
}' 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": "Expense Report [report_number]",
"data": [
{ "report_number": "ER-2027-0214", "period_start": "2027-03-01", "period_end": "2027-03-05", "submitted": "2027-03-11", "employee": {"name":"Dana Whitaker","department":"Sales","manager":"Marcus Hale","cost_center":"CC-2210"}, "purpose": "Client visits in Chicago", "expenses": [{"date":"2027-03-01","category":"Airfare","description":"Round trip flight SFO to ORD","amount":486.4,"currency":"USD","rate":1,"receipt":true},{"date":"2027-03-01","category":"Ground","description":"Taxi from the airport","amount":52,"currency":"USD","rate":1,"receipt":true},{"date":"2027-03-01","category":"Lodging","description":"Hotel, 4 nights","amount":1120,"currency":"USD","rate":1,"receipt":true},{"date":"2027-03-02","category":"Meals","description":"Dinner with the Brightpath team","amount":148.75,"currency":"USD","rate":1,"receipt":true},{"date":"2027-03-03","category":"Meals","description":"Lunch","amount":24.5,"currency":"USD","rate":1,"receipt":false},{"date":"2027-03-03","category":"Ground","description":"Rideshare to the client office","amount":38.2,"currency":"USD","rate":1,"receipt":true},{"date":"2027-03-04","category":"Meals","description":"Team breakfast","amount":61.3,"currency":"USD","rate":1,"receipt":true},{"date":"2027-03-05","category":"Ground","description":"Taxi to the airport","amount":49.6,"currency":"USD","rate":1,"receipt":true}], "categories": [{"name":"Lodging","total":1120},{"name":"Airfare","total":486.4},{"name":"Meals","total":234.55},{"name":"Ground","total":139.8}], "total_expenses": 1980.75, "advance": 500, "reimbursement": 1480.75, "approved": true, "approved_on": "2027-03-16" },
{ "report_number": "ER-2027-0217", "period_start": "2027-04-12", "period_end": "2027-04-16", "submitted": "2027-04-22", "employee": {"name":"Rohan Mehta","department":"Engineering","manager":"Elena Park","cost_center":"CC-3105"}, "purpose": "Developer conference in Berlin", "expenses": [{"date":"2027-04-12","category":"Airfare","description":"Flight SFO to BER","amount":842.1,"currency":"USD","rate":1,"receipt":true},{"date":"2027-04-12","category":"Ground","description":"Train from the airport","amount":4.9,"currency":"EUR","rate":1.09,"receipt":false},{"date":"2027-04-13","category":"Lodging","description":"Hotel Mitte, 4 nights","amount":612,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-04-13","category":"Conference","description":"Conference registration","amount":695,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-04-14","category":"Meals","description":"Dinner with speakers","amount":78.4,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-04-15","category":"Meals","description":"Lunches","amount":36.5,"currency":"EUR","rate":1.09,"receipt":false},{"date":"2027-04-15","category":"Ground","description":"Taxi","amount":22.8,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-04-16","category":"Ground","description":"Taxi to the airport","amount":41,"currency":"EUR","rate":1.09,"receipt":true}], "categories": [{"name":"Airfare","total":842.1},{"name":"Conference","total":757.55},{"name":"Lodging","total":667.08},{"name":"Meals","total":125.25},{"name":"Ground","total":74.88}], "total_expenses": 2466.86, "advance": 0, "reimbursement": 2466.86, "approved": true, "approved_on": "2027-04-27" },
{ "report_number": "ER-2027-0220", "period_start": "2027-05-03", "period_end": "2027-05-07", "submitted": "2027-05-13", "employee": {"name":"Priya Venkatesan","department":"Marketing","manager":"Chris Morgan","cost_center":"CC-1420"}, "purpose": "Trade show in Las Vegas", "expenses": [{"date":"2027-05-03","category":"Airfare","description":"Flight SEA to LAS","amount":318.6,"currency":"USD","rate":1,"receipt":true},{"date":"2027-05-03","category":"Lodging","description":"Hotel, 4 nights","amount":988,"currency":"USD","rate":1,"receipt":true},{"date":"2027-05-04","category":"Booth","description":"Booth materials and shipping","amount":1240.5,"currency":"USD","rate":1,"receipt":true},{"date":"2027-05-04","category":"Meals","description":"Team dinner","amount":212.4,"currency":"USD","rate":1,"receipt":true},{"date":"2027-05-05","category":"Ground","description":"Rideshare","amount":64.8,"currency":"USD","rate":1,"receipt":true},{"date":"2027-05-06","category":"Meals","description":"Client lunch","amount":96,"currency":"USD","rate":1,"receipt":true},{"date":"2027-05-07","category":"Ground","description":"Rideshare to the airport","amount":35.4,"currency":"USD","rate":1,"receipt":false},{"date":"2027-05-07","category":"Other","description":"Parking at SEA, 5 days","amount":120,"currency":"USD","rate":1,"receipt":true}], "categories": [{"name":"Booth","total":1240.5},{"name":"Lodging","total":988},{"name":"Airfare","total":318.6},{"name":"Meals","total":308.4},{"name":"Other","total":120},{"name":"Ground","total":100.2}], "total_expenses": 3075.7, "advance": 800, "reimbursement": 2275.7, "approved": false, "approved_on": "2027-05-18" },
{ "report_number": "ER-2027-0223", "period_start": "2027-06-07", "period_end": "2027-06-10", "submitted": "2027-06-16", "employee": {"name":"Tomas Herrera","department":"Operations","manager":"Laura Jenkins","cost_center":"CC-2650"}, "purpose": "Supplier audit in Toronto", "expenses": [{"date":"2027-06-07","category":"Airfare","description":"Flight DEN to YYZ","amount":512.3,"currency":"USD","rate":1,"receipt":true},{"date":"2027-06-07","category":"Ground","description":"Car rental, 4 days","amount":286,"currency":"CAD","rate":0.74,"receipt":true},{"date":"2027-06-08","category":"Lodging","description":"Hotel, 3 nights","amount":810,"currency":"CAD","rate":0.74,"receipt":true},{"date":"2027-06-08","category":"Meals","description":"Dinner","amount":92.3,"currency":"CAD","rate":0.74,"receipt":true},{"date":"2027-06-09","category":"Meals","description":"Lunch with the supplier","amount":68.5,"currency":"CAD","rate":0.74,"receipt":true},{"date":"2027-06-09","category":"Ground","description":"Fuel","amount":54.2,"currency":"CAD","rate":0.74,"receipt":false},{"date":"2027-06-10","category":"Meals","description":"Breakfast","amount":18.9,"currency":"CAD","rate":0.74,"receipt":false},{"date":"2027-06-10","category":"Other","description":"Parking at DEN","amount":80,"currency":"USD","rate":1,"receipt":true}], "categories": [{"name":"Lodging","total":599.4},{"name":"Airfare","total":512.3},{"name":"Ground","total":251.75},{"name":"Meals","total":132.98},{"name":"Other","total":80}], "total_expenses": 1576.43, "advance": 300, "reimbursement": 1276.43, "approved": true, "approved_on": "2027-06-21" },
{ "report_number": "ER-2027-0226", "period_start": "2027-07-12", "period_end": "2027-07-16", "submitted": "2027-07-22", "employee": {"name":"Amara Nwosu","department":"Customer Success","manager":"Paul Jensen","cost_center":"CC-1802"}, "purpose": "Onsite training for the London office", "expenses": [{"date":"2027-07-12","category":"Airfare","description":"Flight JFK to LHR","amount":764.9,"currency":"USD","rate":1,"receipt":true},{"date":"2027-07-12","category":"Ground","description":"Airport train","amount":25,"currency":"GBP","rate":1.27,"receipt":true},{"date":"2027-07-13","category":"Lodging","description":"Hotel, 4 nights","amount":880,"currency":"GBP","rate":1.27,"receipt":true},{"date":"2027-07-13","category":"Meals","description":"Team dinner","amount":134.5,"currency":"GBP","rate":1.27,"receipt":true},{"date":"2027-07-14","category":"Meals","description":"Lunch","amount":18.4,"currency":"GBP","rate":1.27,"receipt":false},{"date":"2027-07-15","category":"Training","description":"Training room hire","amount":240,"currency":"GBP","rate":1.27,"receipt":true},{"date":"2027-07-15","category":"Ground","description":"Taxi","amount":31.2,"currency":"GBP","rate":1.27,"receipt":true},{"date":"2027-07-16","category":"Ground","description":"Taxi to the airport","amount":58,"currency":"GBP","rate":1.27,"receipt":true}], "categories": [{"name":"Lodging","total":1117.6},{"name":"Airfare","total":764.9},{"name":"Training","total":304.8},{"name":"Meals","total":194.19},{"name":"Ground","total":145.03}], "total_expenses": 2526.52, "advance": 600, "reimbursement": 1926.52, "approved": true, "approved_on": "2027-07-27" },
{ "report_number": "ER-2027-0229", "period_start": "2027-08-02", "period_end": "2027-08-04", "submitted": "2027-08-10", "employee": {"name":"Ethan Brooks","department":"Finance","manager":"Helen Cho","cost_center":"CC-1105"}, "purpose": "Annual audit meetings in Boston", "expenses": [{"date":"2027-08-02","category":"Airfare","description":"Train, round trip NYC to Boston","amount":244,"currency":"USD","rate":1,"receipt":true},{"date":"2027-08-02","category":"Lodging","description":"Hotel, 2 nights","amount":618,"currency":"USD","rate":1,"receipt":true},{"date":"2027-08-02","category":"Meals","description":"Dinner with the auditors","amount":156.8,"currency":"USD","rate":1,"receipt":true},{"date":"2027-08-03","category":"Meals","description":"Lunch","amount":29.4,"currency":"USD","rate":1,"receipt":false},{"date":"2027-08-03","category":"Ground","description":"Subway passes","amount":22,"currency":"USD","rate":1,"receipt":false},{"date":"2027-08-03","category":"Meals","description":"Coffee for the meeting","amount":36.5,"currency":"USD","rate":1,"receipt":true},{"date":"2027-08-04","category":"Ground","description":"Taxi to the station","amount":18.3,"currency":"USD","rate":1,"receipt":true},{"date":"2027-08-04","category":"Other","description":"Printing","amount":42,"currency":"USD","rate":1,"receipt":true}], "categories": [{"name":"Lodging","total":618},{"name":"Airfare","total":244},{"name":"Meals","total":222.7},{"name":"Other","total":42},{"name":"Ground","total":40.3}], "total_expenses": 1167, "advance": 0, "reimbursement": 1167, "approved": false, "approved_on": "2027-08-15" },
{ "report_number": "ER-2027-0232", "period_start": "2027-09-13", "period_end": "2027-09-15", "submitted": "2027-09-21", "employee": {"name":"Sofia Petrov","department":"Legal","manager":"Omar Haddad","cost_center":"CC-1010"}, "purpose": "Deposition in Austin", "expenses": [{"date":"2027-09-13","category":"Airfare","description":"Flight BOS to AUS","amount":428.7,"currency":"USD","rate":1,"receipt":true},{"date":"2027-09-13","category":"Ground","description":"Rideshare","amount":41.5,"currency":"USD","rate":1,"receipt":true},{"date":"2027-09-13","category":"Lodging","description":"Hotel, 2 nights","amount":540,"currency":"USD","rate":1,"receipt":true},{"date":"2027-09-14","category":"Meals","description":"Dinner with counsel","amount":118.2,"currency":"USD","rate":1,"receipt":true},{"date":"2027-09-14","category":"Other","description":"Court reporter fee","amount":380,"currency":"USD","rate":1,"receipt":true},{"date":"2027-09-15","category":"Meals","description":"Lunch","amount":27.9,"currency":"USD","rate":1,"receipt":false},{"date":"2027-09-15","category":"Ground","description":"Rideshare to the airport","amount":38.6,"currency":"USD","rate":1,"receipt":true},{"date":"2027-09-15","category":"Other","description":"Document courier","amount":64,"currency":"USD","rate":1,"receipt":true}], "categories": [{"name":"Lodging","total":540},{"name":"Other","total":444},{"name":"Airfare","total":428.7},{"name":"Meals","total":146.1},{"name":"Ground","total":80.1}], "total_expenses": 1638.9, "advance": 400, "reimbursement": 1238.9, "approved": true, "approved_on": "2027-09-26" },
{ "report_number": "ER-2027-0235", "period_start": "2027-10-04", "period_end": "2027-10-08", "submitted": "2027-10-14", "employee": {"name":"Liam Chen","department":"Sales","manager":"Marcus Hale","cost_center":"CC-2210"}, "purpose": "Regional roadshow in Texas", "expenses": [{"date":"2027-10-04","category":"Airfare","description":"Flight SFO to DFW","amount":356.2,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-04","category":"Ground","description":"Car rental, 5 days","amount":342.8,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-05","category":"Lodging","description":"Hotel, 4 nights","amount":764,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-05","category":"Meals","description":"Dinner with the Houston team","amount":189.6,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-06","category":"Ground","description":"Fuel","amount":74.1,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-07","category":"Meals","description":"Client lunch","amount":112.4,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-07","category":"Other","description":"Event space deposit","amount":250,"currency":"USD","rate":1,"receipt":true},{"date":"2027-10-08","category":"Meals","description":"Breakfast","amount":17.5,"currency":"USD","rate":1,"receipt":false}], "categories": [{"name":"Lodging","total":764},{"name":"Ground","total":416.9},{"name":"Airfare","total":356.2},{"name":"Meals","total":319.5},{"name":"Other","total":250}], "total_expenses": 2106.6, "advance": 700, "reimbursement": 1406.6, "approved": true, "approved_on": "2027-10-19" },
{ "report_number": "ER-2027-0238", "period_start": "2027-11-08", "period_end": "2027-11-12", "submitted": "2027-11-18", "employee": {"name":"Hannah Doyle","department":"Design","manager":"Elena Park","cost_center":"CC-3107"}, "purpose": "Design festival in Barcelona", "expenses": [{"date":"2027-11-08","category":"Airfare","description":"Flight ORD to BCN","amount":914.5,"currency":"USD","rate":1,"receipt":true},{"date":"2027-11-08","category":"Ground","description":"Airport shuttle","amount":18,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-11-09","category":"Lodging","description":"Hotel, 4 nights","amount":724,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-11-09","category":"Conference","description":"Festival pass","amount":420,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-11-10","category":"Meals","description":"Dinner with the speakers","amount":86.3,"currency":"EUR","rate":1.09,"receipt":true},{"date":"2027-11-11","category":"Meals","description":"Lunches","amount":41.2,"currency":"EUR","rate":1.09,"receipt":false},{"date":"2027-11-11","category":"Ground","description":"Metro pass","amount":12.4,"currency":"EUR","rate":1.09,"receipt":false},{"date":"2027-11-12","category":"Ground","description":"Taxi to the airport","amount":38,"currency":"EUR","rate":1.09,"receipt":true}], "categories": [{"name":"Airfare","total":914.5},{"name":"Lodging","total":789.16},{"name":"Conference","total":457.8},{"name":"Meals","total":138.98},{"name":"Ground","total":74.56}], "total_expenses": 2375, "advance": 0, "reimbursement": 2375, "approved": true, "approved_on": "2027-11-23" },
{ "report_number": "ER-2027-0241", "period_start": "2027-12-06", "period_end": "2027-12-09", "submitted": "2027-12-15", "employee": {"name":"Kwame Boateng","department":"Operations","manager":"Laura Jenkins","cost_center":"CC-2650"}, "purpose": "Warehouse opening in Atlanta", "expenses": [{"date":"2027-12-06","category":"Airfare","description":"Flight DEN to ATL","amount":389.9,"currency":"USD","rate":1,"receipt":true},{"date":"2027-12-06","category":"Ground","description":"Rideshare","amount":46.2,"currency":"USD","rate":1,"receipt":true},{"date":"2027-12-06","category":"Lodging","description":"Hotel, 3 nights","amount":702,"currency":"USD","rate":1,"receipt":true},{"date":"2027-12-07","category":"Meals","description":"Team dinner","amount":164.5,"currency":"USD","rate":1,"receipt":true},{"date":"2027-12-08","category":"Other","description":"Opening event catering","amount":880,"currency":"USD","rate":1,"receipt":true},{"date":"2027-12-08","category":"Ground","description":"Rideshare","amount":29.8,"currency":"USD","rate":1,"receipt":true},{"date":"2027-12-09","category":"Meals","description":"Lunch","amount":23.4,"currency":"USD","rate":1,"receipt":false},{"date":"2027-12-09","category":"Ground","description":"Rideshare to the airport","amount":44.7,"currency":"USD","rate":1,"receipt":true}], "categories": [{"name":"Other","total":880},{"name":"Lodging","total":702},{"name":"Airfare","total":389.9},{"name":"Meals","total":187.9},{"name":"Ground","total":120.7}], "total_expenses": 2280.5, "advance": 350, "reimbursement": 1930.5, "approved": false, "approved_on": "2027-12-20" }
]
}' Questions fréquentes sur nos modèles de rapports
Démarrez avec 20 documents gratuits par mois et nos modèles de rapports prêts à l'emploi.