Existing customer? Sign In
Generate this PDF document with a simple API request or via Zapier
Below is the JSON used to create the returns form above. All the attributes within the data parameter are non-mandatory. Supply only what you want to populate on the document.
{
"template": "returns_form",
"data": {
"title": "Returns Form",
"color": "#000000",
"order_number_label": "Order #",
"order_number": "1893",
"order_date_label": "Order Date",
"order_date": "11/10/2025",
"return_number_label": "Return #",
"return_date_label": "Return Date",
"shipping_label": "Shipping",
"total_items_label": "Total items",
"barcode": 1893,
"company_logo": "https://docamatic.s3.eu-west-1.amazonaws.com/assets/logo.png",
"return_from_label": "Return from",
"return_from_name": "Casey Williams",
"return_from_address1": "57 Parkway, 5th Floor",
"return_from_address2": "New York, NY 10013",
"return_from_telephone": "+1 212-608-5983",
"return_to_label": "Return to",
"return_to_name": "Acme Returns",
"return_to_address1": "787 Brunswick",
"return_to_address2": "Los Angeles, CA 50028",
"return_to_telephone": "4444 555 555",
"tel_label": "Tel.",
"item_description_label": "Item Description",
"qty_label": "Qty",
"reason_code_label": "Reason Code",
"comments_label": "Comments",
"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
}
],
"reason_codes_label": "Reason Codes",
"reason_code_a": "A",
"reason_code_a_desc": "Exchange required (please provide details)",
"reason_code_b": "B",
"reason_code_b_desc": "Product not required",
"reason_code_c": "C",
"reason_code_c_desc": "Item is damaged/faulty",
"reason_code_d": "D",
"reason_code_d_desc": "Product was not ordered",
"message_title": "Thanks for your business!",
"message_body": "Please complete the above form and return it with the items carefully packed.",
"company_name": "Acme",
"company_address": "787 Brunswick, Los Angeles, CA 50028",
"company_contact": "support@acme.com / 4444 555 555",
"company_website": "acme.com",
"company_facebook": true,
"company_instagram": true,
"company_twitter": true,
"company_vat_number": "103472324283"
}
}
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" : {...}
}
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": "returns_form",
"file_type": "png",
"data" : {...}
}
Not a developer? No problem! Docamatic's Zapier integration allows you to easily generate returns forms 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 returns form above!
Back to templates