Simple Invoice
Fill out Simple Invoice online and generate the PDF, or fill it from your own app with the DocSpring API.
About this form
Use this simple HTML template to generate invoice PDFs to send to your customers.
This template demonstrates some features of the Liquid templating language. Liquid allows you to add powerful logic and conditions to your templates:
* Calculating the total amount for all invoice items. * Formatting the invoice number with leading zeros. * Using the current date as the invoice creation date. * Calculating a due-date for the invoice that is 30 days in the future.
Three ways to use it
Fill it out online
Answer the questions on a web form, or type straight into the fields on the PDF. Switch between the two at any time.
Fill out the formFill it from your app
Send JSON to our API or one of our SDKs in ten languages with your own API token, and get the filled PDF back. The PDFs are in your account, and we keep the form up to date.
Read the API guideMake it your own
Copy the template to your account to move fields, add your own, and share your own online form.
Use this templateTry the API
Paste this command into your terminal to fill Simple Invoice with a demo API token.
To fill it from your own account, use one of your API tokens with its template ID,
tpl_TrmdePAbxjKpbs2s93.
Keep
version=1.0.2
in the URL so that nothing changes for you when we publish a new version.
curl -fSL "https://sync.api.docspring.com/api/v2/templates/tpl_TrmdePAbxjKpbs2s93/submissions?version=1.0.2" \
-u "api_nXerNcJM5LRThDXgka:9pAJQZb5mYQZHjQHjZCQJJ9hxSPGL9ZAYc3QFxgQCE" \
-H "Content-Type: application/json" \
-d '{
"data": {
"date": "2008-08-16",
"payer": {
"title": "consequat laboris proident",
"name": "Vanessa McGlynn",
"email": "[email protected]"
},
"items": [
{
"description": "doincididunt enim est",
"amount": 19388.23282411417
},
{
"description": "ipsum fugiat",
"amount": 47235.25095640097
},
{
"description": "incididunt magna amet",
"amount": 45891.07935536011
}
],
"invoice_number": 1
},
"test": false,
"metadata": {}
}'
Automate your forms
Test PDFs are free and unlimited. No credit card needed.