Eine Verkaufsrechnung für Unternehmen, die Produkte verkaufen. Eine tiefgrüne Seitenleiste enthält Ihre Firmendaten, den Kunden mit Adresse, das Rechnungsdatum und die Rechnungsnummer, neben einer klaren Tabelle der Artikel mit Mengen, Preisen und Beträgen, dem fälligen Gesamtbetrag in großer Schrift und den Zahlungsdaten. Laden Sie die Word-Datei herunter, um Ihre Firmendaten zu ergänzen, und generieren Sie eine Rechnung für jeden Verkauf.
Laden Sie die Vorlage für Rechnungen hoch und senden Sie die Daten, um das Dokument zu erhalten. Ersetzen Sie YOUR_API_KEY durch Ihren Schlüssel und YOUR_TEMPLATE_ID durch die Vorlagen-ID.
Senden Sie ein Array von JSON-Objekten und erhalten Sie pro Objekt ein Dokument im ZIP-Archiv. Benennen Sie mit output_name jede Datei mit den Zusammenführungs-Tags Ihrer Vorlage.
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"}] }
]
}' Häufig gestellte Fragen zu unseren Rechnungsvorlagen
Starten Sie mit 20 kostenlosen Dokumenten pro Monat und unseren gebrauchsfertigen Rechnungsvorlagen.