Existing customer? Sign In
Generate this PDF document with a simple API request or via Zapier
Below is the JSON used to create the sales receipt above. All the attributes within the data parameter are non-mandatory. Supply only what you want to populate on the document.
{
"template": "sales_receipt",
"width": 80,
"unit": "mm",
"data": {
"logo": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/360_logo.png",
"title": "SALES RECEIPT",
"items": [
{
"quantity": "1",
"description": "Pursuit Running Shoes",
"price": "$100.00"
},
{
"quantity": "1",
"description": "Shelby Leather Boots",
"price": "$75.00",
"discount": "-$15.00",
"discount_description": "Holiday Special Discount"
},
{
"quantity": "1",
"description": "Gel Venture Runners",
"price": "$100.00"
}
],
"subtotal": "$275.00",
"line_discount": "-$15.00",
"transaction_discount": "-$0.00",
"discount_total": "-$15.00",
"sales_tax_label": "Sales Tax 10%",
"sales_tax": "$26.00",
"total": "$286.00",
"method": "Cash",
"amount": "$300.00",
"tendered": "$300",
"change": "$14.00",
"message": "THANK YOU",
"barcode": "1000383382",
"number": "53632",
"date": "10/08/2021",
"time": "18:15",
"employee": "Casey Williams"
}
}
It's easy to change the look and feel of the sales receipt. The template API allows you to easily insert your own logo and specify a custom font.
{
"template": "sales_receipt",
"font": "Open Sans",
"font_size": 0.9,
"font_color": "#32325d",
"data" : {...}
}
By default all templates are generated as a PDF document. If you would like to generate as a PNG or WEBP image, supply the file_type parameter in your API request:
{
"template": "sales_receipt",
"file_type": "png",
"data" : {...}
}
Not a developer? No problem! Docamatic's Zapier integration allows you to easily generate sales receipts without coding.
If you prefer to build your own templates or require more flexibility, be sure to try our HTML to PDF API . We are using the same HTML to PDF API to generate the sales receipt above!
Back to templates