Purchase order Template

Generate this document with a simple API request. Post JSON and get a PDF back.

Purchase Order
Document generated using default styling
Purchase Order
Generated using a custom font and color

Example JSON

Below is the JSON used to create the purchase order above. All of the attributes within the data parameter are non mandatory. Supply only what you want to populate on the document.

To give this a quick test, copy the JSON below and paste it into postman. Here is a quick start on using postman. You will need to grab your API key from the dashboard first.

{
    "template": "purchase_order",
    "data": {
        "po_number": "1742",
        "po_date": "09/01/2020",
        "company": {
            "logo": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/360_logo.png",
            "name": "360 Footwear",
            "address": "787 Brunswick, Los Angeles, CA 50028",
            "contact": "support@360footwear.co / 4444 555 555",
            "website": "360footwear.co"
        },
        "vendor": {
            "name": "Casey Williams",
            "address1": "Wholesale NY",
            "address2": "57 Parkway, 5th Floor",
            "address3": "New York, NY 10013",
            "telephone": "+1 212-608-5983"
        },
        "ship_to": {
            "name": "Claire Simms",
            "address1": "360 Footwear",
            "address2": "787 Brunswick",
            "address3": "Los Angeles, CA 50028",
            "telephone": "+1 4444-555-555"
        },
        "requested_by": "Claire Simms",
        "ship_via": "FedEx",
        "delivery_date": "09/01/2020",
        "payment_terms": "Net 30 Days",
        "lines": [
            {
                "item": "Pursuit Running Shoes",
                "description": "Men's Pursuit Running Shoes - 10/M",
                "quantity": "10",
                "unit_price": "59.50",
                "total": "595.00"
            },
            {
                "item": "Shelby Boots",
                "description": "Men's Shelby Leather Boots - 10/M",
                "quantity": "10",
                "unit_price": "39.50",
                "total": "395.00"
            }
        ],
        "subtotal": "$990.00",
        "sales_tax": "$59.40",
        "sales_tax_percentage": "6%",
        "shipping": "$37.88",
        "other": "$0.00",
        "total": "$1087.28",
        "comments": "Payment terms 30 days.",
        "color": "#000000"
    }
}

Styling

It's super easy to change the look and feel of the purchase order to better align with your own branding. You can insert your own logo by simply supplying a URL to your logo. If you don't want to display a logo, just leave it from your request.

By default, all documents are generated using Roboto font and a base size of 0.8rem. You can specify a custom font like so:

    
{
    "template": "purchase_order",
    "font": "Nunito",
    "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": "purchase_order",
    "file_type": "png",
    "data" : {...}
}
    

Need a custom template?

If you need a custom template please contact us to see if we can assist. If you prefer to build your own templates and require more flexibility, be sure to try our HTML to PDF API. We are using the same HTML to PDF API to generate the purchase order above!

Return to templates

Start generating PDF documents in minutes

No credit card required - free plan allows 50 PDF documents per month.

Get API Key