A sales invoice for businesses that sell products. A deep teal sidebar holds your company details, the client with their address, the invoice date and the invoice number, beside a clean table of items with quantities, prices and amounts, the total due in large type and the payment details. Download the Word file to add your company details, then generate an invoice for every sale.
Upload the invoice template, then send the structured data to get the finished document. 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": {
"Invoice No": "58-519-8945",
"Invoice Date": "03-01-2023",
"CUSTOMER NAME": "Wisozk Inc",
"STREET": "1569 Fair Oaks Way",
"CITY": "Philadelphia",
"ST": "Pennsylvania",
"ZIP CODE": "19184",
"Total": "$180",
"Items": [
{
"Name": "Table",
"Quantity": 1,
"Price": "$80",
"Amount": "$80"
},
{
"Name": "Chairs",
"Quantity": 4,
"Price": "$25",
"Amount": "$100"
}
]
}
}' 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": "58-519-8945", "Invoice Date": "03-01-2023", "CUSTOMER NAME": "Wisozk Inc", "STREET": "1569 Fair Oaks Way", "CITY": "Philadelphia", "ST": "Pennsylvania", "ZIP CODE": "19184", "Total": "$180", "Items": [{"Name":"Table","Quantity":1,"Price":"$80","Amount":"$80"},{"Name":"Chairs","Quantity":4,"Price":"$25","Amount":"$100"}] },
{ "Invoice No": "58-519-8946", "Invoice Date": "03-02-2023", "CUSTOMER NAME": "Hartley Interiors", "STREET": "42 Willow Lane", "CITY": "Columbus", "ST": "Ohio", "ZIP CODE": "43215", "Total": "$480", "Items": [{"Name":"Desk","Quantity":1,"Price":"$220","Amount":"$220"},{"Name":"Filing Cabinet","Quantity":2,"Price":"$130","Amount":"$260"}] },
{ "Invoice No": "58-519-8947", "Invoice Date": "03-03-2023", "CUSTOMER NAME": "Blue Harbor Cafe", "STREET": "8 Dockside Street", "CITY": "Portland", "ST": "Maine", "ZIP CODE": "04101", "Total": "$650", "Items": [{"Name":"Floor Lamp","Quantity":2,"Price":"$55","Amount":"$110"},{"Name":"Coffee Table","Quantity":3,"Price":"$180","Amount":"$540"}] },
{ "Invoice No": "58-519-8948", "Invoice Date": "03-04-2023", "CUSTOMER NAME": "Summit Dental Group", "STREET": "910 Ridge Road", "CITY": "Denver", "ST": "Colorado", "ZIP CODE": "80202", "Total": "$2,800", "Items": [{"Name":"Sofa","Quantity":3,"Price":"$640","Amount":"$1,920"},{"Name":"Desk","Quantity":4,"Price":"$220","Amount":"$880"}] },
{ "Invoice No": "58-519-8949", "Invoice Date": "03-05-2023", "CUSTOMER NAME": "Maple and Finch", "STREET": "77 Cedar Avenue", "CITY": "Madison", "ST": "Wisconsin", "ZIP CODE": "53703", "Total": "$310", "Items": [{"Name":"Stool","Quantity":1,"Price":"$35","Amount":"$35"},{"Name":"Floor Lamp","Quantity":5,"Price":"$55","Amount":"$275"}] },
{ "Invoice No": "58-519-8950", "Invoice Date": "03-06-2023", "CUSTOMER NAME": "Orion Coworking", "STREET": "255 Congress Avenue", "CITY": "Austin", "ST": "Texas", "ZIP CODE": "78701", "Total": "$4,020", "Items": [{"Name":"Bookshelf","Quantity":2,"Price":"$90","Amount":"$180"},{"Name":"Sofa","Quantity":6,"Price":"$640","Amount":"$3,840"}] },
{ "Invoice No": "58-519-8951", "Invoice Date": "03-07-2023", "CUSTOMER NAME": "Lakeside Academy", "STREET": "19 Shoreline Drive", "CITY": "Evanston", "ST": "Illinois", "ZIP CODE": "60201", "Total": "$295", "Items": [{"Name":"Whiteboard","Quantity":3,"Price":"$75","Amount":"$225"},{"Name":"Stool","Quantity":2,"Price":"$35","Amount":"$70"}] },
{ "Invoice No": "58-519-8952", "Invoice Date": "03-08-2023", "CUSTOMER NAME": "Verde Studio", "STREET": "630 Mission Street", "CITY": "San Francisco", "ST": "California", "ZIP CODE": "94105", "Total": "$310", "Items": [{"Name":"Monitor Stand","Quantity":1,"Price":"$40","Amount":"$40"},{"Name":"Bookshelf","Quantity":3,"Price":"$90","Amount":"$270"}] },
{ "Invoice No": "58-519-8953", "Invoice Date": "03-09-2023", "CUSTOMER NAME": "Northgate Clinic", "STREET": "14 Summit Way", "CITY": "Seattle", "ST": "Washington", "ZIP CODE": "98101", "Total": "$590", "Items": [{"Name":"Office Chair","Quantity":2,"Price":"$145","Amount":"$290"},{"Name":"Whiteboard","Quantity":4,"Price":"$75","Amount":"$300"}] },
{ "Invoice No": "58-519-8954", "Invoice Date": "03-10-2023", "CUSTOMER NAME": "Pinecrest Hotel", "STREET": "3 Orchard Court", "CITY": "Savannah", "ST": "Georgia", "ZIP CODE": "31401", "Total": "$590", "Items": [{"Name":"Filing Cabinet","Quantity":3,"Price":"$130","Amount":"$390"},{"Name":"Monitor Stand","Quantity":5,"Price":"$40","Amount":"$200"}] }
]
}' Questions frequently asked about our invoice templates
Get started with 20 free documents per month and our ready-to-use invoice templates.