Une facture pour les ateliers de réparation et les techniciens sur le terrain. Elle indique le client et l’appareil réparé, avec son modèle, son numéro de série, l’état de la batterie et des remarques, un tableau d’interventions avec la date, les heures, la taxe et le montant de chaque ligne, des lignes de taxes et de total, ainsi que les coordonnées bancaires et les conditions. Téléchargez le fichier Word pour adapter la mise en page et les conditions, puis générez une facture pour chaque réparation à partir de vos propres données.
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.
Importez un tableur Excel et chaque ligne devient un document, les en-têtes de colonnes correspondant à vos balises de fusion. Utilisez le paramètre sheet pour lire une feuille précise du fichier Excel.
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": {
"Invoice No": "17-354-3576",
"Customer Name": "Metz-Grady",
"Street Address": "38141 Riverside Road",
"City": "Topeka",
"State": "Kansas",
"Zip Code": "66667",
"Phone": "(785) 1457073",
"Invoice Date": "4/12/2024",
"Due Date": "5/12/2024",
"Job Description 1": "Replace cracked display with new panel",
"Job Description 2": "Diagnostic test and internal cleaning",
"Hrs 1": 3,
"Hrs 2": 1,
"Amount 1": "$180.00",
"Amount 2": "$55.00",
"Date 1": "4/9/2024",
"Tax 1": "$14.40",
"Tax 2": "$4.40",
"Sub Total": "$235.00",
"Tax Total": "$18.80",
"Total": "$253.80",
"Bank Name": "First Harbor Bank",
"Account Number": 3779993,
"IFSC Code": "FHBX0001000",
"Product Name": "Laptop",
"Product Model": "ThinkPad T14",
"Product Series": "SN-48213",
"Product Battery": "Good, 82% health",
"Product Details": "Cracked screen corner"
}
}' 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": "Invoice [Invoice No] [Customer Name]",
"data": [
{ "Invoice No": "17-354-3576", "Customer Name": "Metz-Grady", "Street Address": "38141 Riverside Road", "City": "Topeka", "State": "Kansas", "Zip Code": "66667", "Phone": "(785) 1457073", "Invoice Date": "4/12/2024", "Due Date": "5/12/2024", "Job Description 1": "Replace cracked display with new panel", "Job Description 2": "Diagnostic test and internal cleaning", "Hrs 1": 3, "Hrs 2": 1, "Amount 1": "$180.00", "Amount 2": "$55.00", "Date 1": "4/9/2024", "Tax 1": "$14.40", "Tax 2": "$4.40", "Sub Total": "$235.00", "Tax Total": "$18.80", "Total": "$253.80", "Bank Name": "First Harbor Bank", "Account Number": 3779993, "IFSC Code": "FHBX0001000", "Product Name": "Laptop", "Product Model": "ThinkPad T14", "Product Series": "SN-48213", "Product Battery": "Good, 82% health", "Product Details": "Cracked screen corner" },
{ "Invoice No": "80-953-6033", "Customer Name": "Quigley and Sons", "Street Address": "146 North Way", "City": "Los Angeles", "State": "California", "Zip Code": "90189", "Phone": "(213) 5691016", "Invoice Date": "1/10/2024", "Due Date": "2/9/2024", "Job Description 1": "Treat water damage and test components", "Job Description 2": "Replace keyboard and trackpad", "Hrs 1": 4, "Hrs 2": 2, "Amount 1": "$360.00", "Amount 2": "$100.00", "Date 1": "1/6/2024", "Tax 1": "$25.20", "Tax 2": "$7.00", "Sub Total": "$460.00", "Tax Total": "$32.20", "Total": "$492.20", "Bank Name": "Lakeside Credit Union", "Account Number": 2684473, "IFSC Code": "LCUX0001137", "Product Name": "Laptop", "Product Model": "MacBook Air 13", "Product Series": "SN-77120", "Product Battery": "Replaced", "Product Details": "Liquid spill on the keyboard" },
{ "Invoice No": "86-541-7997", "Customer Name": "Jacobi and Sons", "Street Address": "5267 Prairie Rose Court", "City": "Lansing", "State": "Michigan", "Zip Code": "48912", "Phone": "(517) 8151541", "Invoice Date": "1/4/2024", "Due Date": "2/3/2024", "Job Description 1": "Repair charging port", "Job Description 2": "Replace battery and clean charging contacts", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$140.00", "Amount 2": "$45.00", "Date 1": "12/30/2023", "Tax 1": "$9.10", "Tax 2": "$2.93", "Sub Total": "$185.00", "Tax Total": "$12.03", "Total": "$197.03", "Bank Name": "Summit National Bank", "Account Number": 5756500, "IFSC Code": "SNBX0001274", "Product Name": "Smartphone", "Product Model": "Galaxy S22", "Product Series": "SN-30591", "Product Battery": "Good, 91% health", "Product Details": "Charging port is loose" },
{ "Invoice No": "21-459-4270", "Customer Name": "Wiza, Treutel and Hudson", "Street Address": "4247 Thackeray Street", "City": "Santa Barbara", "State": "California", "Zip Code": "93111", "Phone": "(702) 7042213", "Invoice Date": "11/9/2024", "Due Date": "12/9/2024", "Job Description 1": "Replace display cable and test panel", "Job Description 2": "Reinstall system and apply updates", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$130.00", "Amount 2": "$40.00", "Date 1": "11/3/2024", "Tax 1": "$10.73", "Tax 2": "$3.30", "Sub Total": "$170.00", "Tax Total": "$14.03", "Total": "$184.03", "Bank Name": "Riverbend Savings", "Account Number": 192525, "IFSC Code": "RSXX0001411", "Product Name": "Tablet", "Product Model": "iPad 9th Gen", "Product Series": "SN-61844", "Product Battery": "Weak, 64% health", "Product Details": "Screen flickers" },
{ "Invoice No": "55-280-7321", "Customer Name": "Ferry-Hettinger", "Street Address": "2 Bobwhite Place", "City": "Migrate", "State": "Kentucky", "Zip Code": "41905", "Phone": "(502) 8428036", "Invoice Date": "1/8/2024", "Due Date": "2/7/2024", "Job Description 1": "Service fan and replace thermal paste", "Job Description 2": "Diagnostic test and internal cleaning", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$100.00", "Amount 2": "$55.00", "Date 1": "1/1/2024", "Tax 1": "$5.00", "Tax 2": "$2.75", "Sub Total": "$155.00", "Tax Total": "$7.75", "Total": "$162.75", "Bank Name": "Pioneer Trust Bank", "Account Number": 7763357, "IFSC Code": "PTBX0001548", "Product Name": "Desktop PC", "Product Model": "OptiPlex 7090", "Product Series": "SN-90215", "Product Battery": "Not applicable", "Product Details": "Overheats under load" },
{ "Invoice No": "53-678-6688", "Customer Name": "Hudson-Feil", "Street Address": "147 Daystar Drive", "City": "Sioux Falls", "State": "South Dakota", "Zip Code": "57193", "Phone": "(605) 9448415", "Invoice Date": "1/2/2024", "Due Date": "2/1/2024", "Job Description 1": "Replace cooling fan", "Job Description 2": "Diagnostic test and internal cleaning", "Hrs 1": 1, "Hrs 2": 1, "Amount 1": "$55.00", "Amount 2": "$55.00", "Date 1": "12/30/2023", "Tax 1": "$4.13", "Tax 2": "$4.13", "Sub Total": "$110.00", "Tax Total": "$8.26", "Total": "$118.26", "Bank Name": "Oakwood Community Bank", "Account Number": 6196486, "IFSC Code": "OCBX0001685", "Product Name": "Laptop", "Product Model": "Dell XPS 15", "Product Series": "SN-12877", "Product Battery": "Good, 88% health", "Product Details": "Loud fan noise" },
{ "Invoice No": "19-937-5606", "Customer Name": "Prosacco-Dibbert", "Street Address": "32 Nobel Avenue", "City": "Cleveland", "State": "Ohio", "Zip Code": "44185", "Phone": "(216) 3876074", "Invoice Date": "12/30/2023", "Due Date": "1/29/2024", "Job Description 1": "Replace rear glass panel", "Job Description 2": "Replace battery and clean charging contacts", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$150.00", "Amount 2": "$45.00", "Date 1": "12/26/2023", "Tax 1": "$9.00", "Tax 2": "$2.70", "Sub Total": "$195.00", "Tax Total": "$11.70", "Total": "$206.70", "Bank Name": "Cedar Valley Bank", "Account Number": 8269503, "IFSC Code": "CVBX0001822", "Product Name": "Smartphone", "Product Model": "iPhone 13", "Product Series": "SN-55302", "Product Battery": "Weak, 71% health", "Product Details": "Cracked back glass" },
{ "Invoice No": "82-289-4177", "Customer Name": "Hettinger-Brekke", "Street Address": "07646 Miller Plaza", "City": "Roanoke", "State": "Virginia", "Zip Code": "24004", "Phone": "(540) 4352917", "Invoice Date": "12/30/2023", "Due Date": "1/29/2024", "Job Description 1": "Replace keyboard and trackpad", "Job Description 2": "Reinstall system and apply updates", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$100.00", "Amount 2": "$40.00", "Date 1": "12/25/2023", "Tax 1": "$8.00", "Tax 2": "$3.20", "Sub Total": "$140.00", "Tax Total": "$11.20", "Total": "$151.20", "Bank Name": "Northgate Federal", "Account Number": 4898689, "IFSC Code": "NFXX0001959", "Product Name": "Laptop", "Product Model": "HP EliteBook 840", "Product Series": "SN-24096", "Product Battery": "Good, 79% health", "Product Details": "Several keys not working" },
{ "Invoice No": "48-253-3625", "Customer Name": "Schaefer-Witting", "Street Address": "4009 Shoshone Place", "City": "Charlotte", "State": "North Carolina", "Zip Code": "28263", "Phone": "(704) 9777116", "Invoice Date": "3/24/2024", "Due Date": "4/23/2024", "Job Description 1": "Clear jam and replace pickup rollers", "Job Description 2": "Diagnostic test and internal cleaning", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$120.00", "Amount 2": "$55.00", "Date 1": "3/18/2024", "Tax 1": "$8.40", "Tax 2": "$3.85", "Sub Total": "$175.00", "Tax Total": "$12.25", "Total": "$187.25", "Bank Name": "Bayview Savings Bank", "Account Number": 5188915, "IFSC Code": "BSBX0002096", "Product Name": "Printer", "Product Model": "LaserJet Pro M404", "Product Series": "SN-83317", "Product Battery": "Not applicable", "Product Details": "Paper jam and an error code" },
{ "Invoice No": "00-580-9795", "Customer Name": "Pfeffer, Collins and Wisozk", "Street Address": "03421 Susan Court", "City": "Austin", "State": "Texas", "Zip Code": "78710", "Phone": "(512) 1258805", "Invoice Date": "5/22/2024", "Due Date": "6/21/2024", "Job Description 1": "Replace battery and clean charging contacts", "Job Description 2": "Reinstall system and apply updates", "Hrs 1": 2, "Hrs 2": 1, "Amount 1": "$90.00", "Amount 2": "$40.00", "Date 1": "5/15/2024", "Tax 1": "$5.85", "Tax 2": "$2.60", "Sub Total": "$130.00", "Tax Total": "$8.45", "Total": "$138.45", "Bank Name": "Maple Street Credit Union", "Account Number": 5203493, "IFSC Code": "MSCU0002233", "Product Name": "Laptop", "Product Model": "Surface Laptop 4", "Product Series": "SN-40688", "Product Battery": "Weak, 58% health", "Product Details": "Battery drains quickly" }
]
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'template_id=YOUR_TEMPLATE_ID' \
-F 'file=@Repair Invoice Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Invoice [Invoice No] [Customer Name]' Questions fréquentes sur nos modèles de factures
Démarrez avec 20 documents gratuits par mois et nos modèles de factures prêts à l'emploi.