Returns Form Template

Generate this PDF document with a simple API request.

Returns Form

Example JSON

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

    
        {
    "template": "returns_form",
    "data": {
        "order_number": "1893",
        "order_date": "02/26/2020",
        "return_from": {
            "name": "Casey Williams",
            "address1": "57 Parkway, 5th Floor",
            "address2": "New York, NY 10013",
            "telephone": "+1 212-608-5983"
        },
        "return_to": {
            "name": "360 Footwear Returns",
            "address1": "787 Brunswick",
            "address2": "Los Angeles, CA 50028",
            "telephone": "4444 555 555"
        },
        "items": [
            {
                "image": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/shoe.jpg",
                "description": "Men's Pursuit Running Shoes - 10/M - BLACK",
                "sku": "PRS3000011-AH",
                "barcode": 3000011303023329,
                "quantity": 2
            }
        ],
        "message_title": "Thanks for your business!",
        "message_body": "Please complete the above form and return it with the items carefully packed.",
        "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",
            "facebook": true,
            "instagram": true,
            "twitter": true
        },
        "color": "#000000"
    }
}
    

Styling

It's easy to change the look and feel of the returns form. The template API allows you to easily insert your own logo and specify a custom font.

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

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 returns form above!

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

Back to templates