https://docleaf.vercel.app/api/
Generate an invoice PDF
Content-Type: application/json
primaryColor
string
secondaryColor
string
logo
string
date
string
invoiceNumber
string
detailsLeft
string
detailsRight
string
items
array[array[string]]
totals
array[object]
notes
string
footer
array[string]
curl --request POST \
--url 'https://docleaf.vercel.app/api' \
--header 'Content-Type: application/json' \
--data '{
"primaryColor": "#5c6ac4",
"secondaryColor": "#f1f5f9",
"logo": "https://docleaf.vercel.app/images/logo.png",
"date": "2024-10-21",
"invoiceNumber": "ABC-12345",
"detailsLeft": "<p><strong>Supplier Company INC</strong></p><p>Number: 23456789</p><p>VAT: 23456789</p><p>6622 Abshire Mills</p><p>Port Orlofurt, 05820</p><p>United States</p>",
"detailsRight": "<p><strong>Customer Company</strong></p><p>Number: 123456789</p><p>VAT: 23456789</p><p>9552 Vandervort Spurs</p><p>Paradise, 43325</p><p>United States</p>",
"items": [["Product details","Price","Qty.","Subtotal","VAT","Subtotal + VAT"],["Montly accounting services","$150.00",1,"$150.00","$30.00","$180.00"],["Taxation consulting (hour)","$60.00",2,"$120.00","$24.00","$144.00"],["Bookkeeping services","$50.00",1,"$50.00","$10.00","$60.00"]],
"totals": [{"column":"Subtotal","name":"Net total:"},{"column":"VAT","name":"VAT total:"},{"column":"Subtotal + VAT","name":"Total:"}],
"notes": "<p><strong>PAYMENT DETAILS</strong></p><p>Banks of Banks</p><p>Bank/Sort Code: 1234567</p><p>Account Number: 123456678</p><p>Payment Reference: BRA-00335</p><p><br></p><p><strong>Notes</strong></p><p>Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.</p>",
"footer": ["Supplier Company","info@company.com","+1-202-555-0106"]
}' > invoice.pdf
Content-Type: application/pdf