Sales Receipt Template

Generate this PDF document with a simple API request or via Zapier

Sales Receipt

Example JSON

Below is the JSON used to create the sales receipt above. All of 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"
    }
}
    

Styling

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" : {...}
}
    

Generate as PDF or PNG

By default all templates are generated as a PDF document. If you would like to generate as a PNG image, supply the file_type parameter in your API request:

    
        {
    "template": "sales_receipt",
    "file_type": "png",
    "data" : {...}
}
    

Auto Generate Sales Receipts with Zapier

Not a developer? No problem! Docamatic's Zapier integration allows you to easily generate sales receipts without coding.

Zapier and Docamatic

Need a custom template?

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!

If you need a custom template please contact us to see if we can assist.

Back to templates