Een verkoopfactuur voor bedrijven die producten verkopen. Een diepgroene zijbalk bevat uw bedrijfsgegevens, de klant met adres, de factuurdatum en het factuurnummer, naast een overzichtelijke tabel met artikelen, aantallen, prijzen en bedragen, het te betalen totaal in grote letters en de betaalgegevens. Download het Word-bestand om uw bedrijfsgegevens toe te voegen en genereer een factuur voor elke verkoop.
Upload het sjabloon en stuur daarna de gestructureerde data om uw factuur te genereren. Vervang YOUR_API_KEY door uw unieke sleutel en YOUR_TEMPLATE_ID door de ID van uw sjabloon.
Stuur een array van JSON-objecten en ontvang één document per object in een ZIP-archief. Gebruik de parameter output_name om elke bestandsnaam te bepalen met de merge-tags van uw sjabloon.
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"}] }
]
}' Veelgestelde vragen over onze factuursjablonen
Ga aan de slag met 20 gratis documenten per maand en onze kant-en-klare factuursjablonen.