Existing customer? Sign In
Below is the JSON used to create the purchase order above. All the attributes within the data parameter are non-mandatory. Supply only what you want to populate on the document.
{
"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"
}
}
It's easy to change the look and feel of the purchase order. The template API allows you to easily insert your own logo and specify a custom font.
{
"template": "purchase_order",
"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": "purchase_order",
"file_type": "png",
"data" : {...}
}
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 purchase order above!
Back to templates