A general-purpose invoice for any business that sells products or services. It has a header for your company details, a bill-to block, a line item table with quantity, price and amount, tax and discount rows, and a payment details section. Download the Word file to adapt the layout and wording to your brand, then generate invoices from your own billing data.
Upload the invoice 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.
Upload an Excel spreadsheet and every row becomes a document, with the column headers matching your merge tags. Use the sheet parameter to read a specific sheet from the Excel file.
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": "40-343-9928",
"Company Name": "Botsford, Macejkovic and Batz",
"Street Address": "32 Manufacturers Crossing",
"City": "Newark",
"State": "New Jersey",
"Zip Code": "07195",
"Phone": "(862) 9731850",
"Email": "kpidgeley0@fotki.com",
"Invoice Date": "10/16/2024",
"Due Date": "11/15/2024",
"Sub Total": "$85.80",
"Item Title 1": "Squash - Pepper",
"Item Title 2": "Scallops - 10/20",
"Item Description 1": "Vivamus tortor.",
"Item Description 2": "Sed vel enim sit amet nunc viverra dapibus.",
"Price 1": "$5.14",
"Price 2": "$6.87",
"Qty 1": 6,
"Qty 2": 8,
"Amount 1": "$30.84",
"Amount 2": "$54.96",
"Tax Total": "$6.86",
"Discount Total": "$8.58",
"Tax %": "8%",
"Discount %": "10%",
"Total": "$84.08",
"Your Bank Name": "Feeney-Bosco",
"Routing Number": 899200706,
"Account Number": 1092726
}
}' 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] [Company Name]",
"data": [
{ "Invoice No": "40-343-9928", "Company Name": "Botsford, Macejkovic and Batz", "Street Address": "32 Manufacturers Crossing", "City": "Newark", "State": "New Jersey", "Zip Code": "07195", "Phone": "(862) 9731850", "Email": "kpidgeley0@fotki.com", "Invoice Date": "10/16/2024", "Due Date": "11/15/2024", "Sub Total": "$85.80", "Item Title 1": "Squash - Pepper", "Item Title 2": "Scallops - 10/20", "Item Description 1": "Vivamus tortor.", "Item Description 2": "Sed vel enim sit amet nunc viverra dapibus.", "Price 1": "$5.14", "Price 2": "$6.87", "Qty 1": 6, "Qty 2": 8, "Amount 1": "$30.84", "Amount 2": "$54.96", "Tax Total": "$6.86", "Discount Total": "$8.58", "Tax %": "8%", "Discount %": "10%", "Total": "$84.08", "Your Bank Name": "Feeney-Bosco", "Routing Number": 899200706, "Account Number": 1092726 },
{ "Invoice No": "37-885-0903", "Company Name": "Schaden-Klocko", "Street Address": "9 Hazelcrest Terrace", "City": "Decatur", "State": "Illinois", "Zip Code": "62525", "Phone": "(217) 3437833", "Email": "nfreyn1@un.org", "Invoice Date": "9/22/2024", "Due Date": "10/22/2024", "Sub Total": "$53.50", "Item Title 1": "Sauce - Cranberry", "Item Title 2": "Flour - Bran, Red", "Item Description 1": "Morbi a ipsum.", "Item Description 2": "Nullam sit amet turpis elementum ligula vehicula consequat.", "Price 1": "$9.73", "Price 2": "$1.62", "Qty 1": 4, "Qty 2": 9, "Amount 1": "$38.92", "Amount 2": "$14.58", "Tax Total": "$3.75", "Discount Total": "$2.68", "Tax %": "7%", "Discount %": "5%", "Total": "$54.57", "Your Bank Name": "Davis Inc", "Routing Number": 851790772, "Account Number": 2171573 },
{ "Invoice No": "93-137-8831", "Company Name": "Streich Inc", "Street Address": "202 Tennyson Way", "City": "Boise", "State": "Idaho", "Zip Code": "83711", "Phone": "(208) 9288452", "Email": "oshayler2@creativecommons.org", "Invoice Date": "11/10/2024", "Due Date": "12/10/2024", "Sub Total": "$65.18", "Item Title 1": "Wine - Casillero Deldiablo", "Item Title 2": "Salmon - Atlantic, Skin On", "Item Description 1": "Praesent lectus.", "Item Description 2": "Proin eu mi.", "Price 1": "$5.74", "Price 2": "$6.42", "Qty 1": 8, "Qty 2": 3, "Amount 1": "$45.92", "Amount 2": "$19.26", "Tax Total": "$4.24", "Discount Total": "$9.78", "Tax %": "6.5%", "Discount %": "15%", "Total": "$59.64", "Your Bank Name": "Windler, Feil and Streich", "Routing Number": 481594776, "Account Number": 4817133 },
{ "Invoice No": "03-668-6723", "Company Name": "Littel-Pacocha", "Street Address": "3855 Northfield Parkway", "City": "Delray Beach", "State": "Florida", "Zip Code": "33448", "Phone": "(561) 5227483", "Email": "cworviell3@biglobe.ne.jp", "Invoice Date": "2/17/2024", "Due Date": "3/18/2024", "Sub Total": "$72.52", "Item Title 1": "Carbonated Water - Raspberry", "Item Title 2": "Grapes - Red", "Item Description 1": "Aenean auctor gravida sem.", "Item Description 2": "Nulla mollis molestie lorem.", "Price 1": "$3.33", "Price 2": "$5.92", "Qty 1": 4, "Qty 2": 10, "Amount 1": "$13.32", "Amount 2": "$59.20", "Tax Total": "$5.98", "Discount Total": "$3.63", "Tax %": "8.25%", "Discount %": "5%", "Total": "$74.87", "Your Bank Name": "Nader-Walter", "Routing Number": 748029286, "Account Number": 7502145 },
{ "Invoice No": "54-722-0320", "Company Name": "Feest-Doyle", "Street Address": "9062 Quincy Parkway", "City": "Torrance", "State": "California", "Zip Code": "90505", "Phone": "(310) 4095322", "Email": "ttrenoweth4@discovery.com", "Invoice Date": "7/17/2024", "Due Date": "8/16/2024", "Sub Total": "$68.78", "Item Title 1": "Beans - Butter Lrg Lima", "Item Title 2": "Allspice - Jamaican", "Item Description 1": "Phasellus sit amet erat.", "Item Description 2": "Duis consequat dui nec nisi volutpat eleifend.", "Price 1": "$9.67", "Price 2": "$2.69", "Qty 1": 6, "Qty 2": 4, "Amount 1": "$58.02", "Amount 2": "$10.76", "Tax Total": "$3.44", "Discount Total": "$6.88", "Tax %": "5%", "Discount %": "10%", "Total": "$65.34", "Your Bank Name": "Hegmann-Nicolas", "Routing Number": 454136727, "Account Number": 1191413 },
{ "Invoice No": "33-681-7622", "Company Name": "Volkman and Sons", "Street Address": "82520 Leroy Trail", "City": "Madison", "State": "Wisconsin", "Zip Code": "53716", "Phone": "(608) 6274141", "Email": "okroger5@sphinn.com", "Invoice Date": "12/15/2023", "Due Date": "1/14/2024", "Sub Total": "$108.10", "Item Title 1": "Cookies - Englishbay Chochip", "Item Title 2": "Foam Dinner Plate", "Item Description 1": "Maecenas leo odio, condimentum id, luctus nec, molestie sed, justo.", "Item Description 2": "Morbi non lectus.", "Price 1": "$4.52", "Price 2": "$9.50", "Qty 1": 5, "Qty 2": 9, "Amount 1": "$22.60", "Amount 2": "$85.50", "Tax Total": "$8.11", "Discount Total": "$10.81", "Tax %": "7.5%", "Discount %": "10%", "Total": "$105.40", "Your Bank Name": "Carter, Lakin and Cartwright", "Routing Number": 378849464, "Account Number": 4644961 },
{ "Invoice No": "98-830-3369", "Company Name": "McClure-Hammes", "Street Address": "687 Scofield Parkway", "City": "Mc Keesport", "State": "Pennsylvania", "Zip Code": "15134", "Phone": "(412) 5980423", "Email": "rseale6@dyndns.org", "Invoice Date": "8/25/2024", "Due Date": "9/24/2024", "Sub Total": "$120.94", "Item Title 1": "Shrimp - 100 / 200 Cold Water", "Item Title 2": "Mayonnaise - Individual Pkg", "Item Description 1": "Mauris enim leo, rhoncus sed, vestibulum sit amet, cursus id, turpis.", "Item Description 2": "Fusce congue, diam id ornare imperdiet, sapien urna pretium nisl, ut volutpat sapien arcu sed augue.", "Price 1": "$9.35", "Price 2": "$6.86", "Qty 1": 10, "Qty 2": 4, "Amount 1": "$93.50", "Amount 2": "$27.44", "Tax Total": "$7.26", "Discount Total": "$6.05", "Tax %": "6%", "Discount %": "5%", "Total": "$122.15", "Your Bank Name": "Price, Hane and Blick", "Routing Number": 732451587, "Account Number": 2431788 },
{ "Invoice No": "77-971-6525", "Company Name": "Ferry-Klocko", "Street Address": "93095 Florence Plaza", "City": "Washington", "State": "District of Columbia", "Zip Code": "20430", "Phone": "(202) 5765251", "Email": "cmilksop7@ehow.com", "Invoice Date": "9/28/2024", "Due Date": "10/28/2024", "Sub Total": "$58.71", "Item Title 1": "Puree - Mango", "Item Title 2": "Calypso - Pineapple Passion", "Item Description 1": "Aenean lectus.", "Item Description 2": "In blandit ultrices enim.", "Price 1": "$6.37", "Price 2": "$1.55", "Qty 1": 8, "Qty 2": 5, "Amount 1": "$50.96", "Amount 2": "$7.75", "Tax Total": "$4.70", "Discount Total": "$8.81", "Tax %": "8%", "Discount %": "15%", "Total": "$54.60", "Your Bank Name": "Hoppe Group", "Routing Number": 177499305, "Account Number": 4132657 },
{ "Invoice No": "88-892-9014", "Company Name": "Willms-Stark", "Street Address": "131 Burning Wood Plaza", "City": "Portsmouth", "State": "New Hampshire", "Zip Code": "03804", "Phone": "(603) 4253595", "Email": "mpiggrem8@studiopress.com", "Invoice Date": "10/7/2024", "Due Date": "11/6/2024", "Sub Total": "$148.40", "Item Title 1": "Wine - Chardonnay South", "Item Title 2": "Veal - Kidney", "Item Description 1": "Fusce lacus purus, aliquet at, feugiat non, pretium quis, lectus.", "Item Description 2": "Nullam porttitor lacus at turpis.", "Price 1": "$9.40", "Price 2": "$8.26", "Qty 1": 7, "Qty 2": 10, "Amount 1": "$65.80", "Amount 2": "$82.60", "Tax Total": "$10.39", "Discount Total": "$7.42", "Tax %": "7%", "Discount %": "5%", "Total": "$151.37", "Your Bank Name": "Heller, Grimes and Jerde", "Routing Number": 325826269, "Account Number": 5042413 },
{ "Invoice No": "47-515-5300", "Company Name": "Haley and Sons", "Street Address": "856 Lawn Circle", "City": "Austin", "State": "Texas", "Zip Code": "78721", "Phone": "(512) 6202953", "Email": "bsnewin9@networksolutions.com", "Invoice Date": "8/15/2024", "Due Date": "9/14/2024", "Sub Total": "$18.39", "Item Title 1": "Bread Base - Toscano", "Item Title 2": "Chick Peas - Dried", "Item Description 1": "Pellentesque viverra pede ac diam.", "Item Description 2": "Vivamus tortor.", "Price 1": "$4.67", "Price 2": "$1.46", "Qty 1": 3, "Qty 2": 3, "Amount 1": "$14.01", "Amount 2": "$4.38", "Tax Total": "$1.20", "Discount Total": "$1.84", "Tax %": "6.5%", "Discount %": "10%", "Total": "$17.75", "Your Bank Name": "Wilkinson-Paucek", "Routing Number": 635977824, "Account Number": 2059073 }
]
}' 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=@Business Invoice Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Invoice [Invoice No] [Company Name]' Questions frequently asked about our invoice templates
Get started with 20 free documents per month and our ready-to-use invoice templates.