API PDF Documentation Version 2
Send POST HTTP request like for calculation:
Request is expected to have JSON body (content) with contact_data object. Example of the JSON is here:
{
"place":"49.8209226, 18.2625243",
"kind":"sale",
"property_type":"flat",
"rating":"good",
"ownership":"private",
"local_type":"1+kk",
"floor_area":50,
"pdf_type":"advanced_pdf",
"contact_data": {
"name":"Example Example",
"email":"example@example.com",
"phone":"777444555",
"facebook":"fb.com/example",
"instagram":"instagram.com/example",
"site":"example.site",
"address":"Example 77, Example 444 55",
"profession":"valuer",
"logo":"https://assets.stickpng.com/images/584290baa6515b1e0ad75ac2.png",
"color_1":"#FF0000",
"color_2":"#000000"
},
"pdf_data": {
"description":"Description text",
"title_image":"https://picsum.photos/200/300",
"images": [
"https://picsum.photos/200/300",
"https://picsum.photos/200/300",
"https://picsum.photos/200/300"
]
}
}
Response should contain PDF links:
{
...
"pdf":"https://v2p.api.valuo.cz/pdf/token/view/hash",
"post_data_url":"https://v2p.api.valuo.cz/pdf/token/post-data/hash"
}
JSON Parameters
required parameters*
recommended parameters**
contact_data*
- object
- required
pdf_type
- determinate type of exported PDF
- accepted values:
- basic_pdf
- advanced_pdf
- optional, default value
basic_pdf
pdf_data
- object
- optional
JSON contact_data Parameters
required parameters*
recommended parameters**
name*
- string
- required
email*
- string
- required
phone
- string
facebook
- string
instagram
- string
site
- string
address
- string
profession
- string
- accepted values:
- valuer
- expert_witness
- estate_broker
- mortgage_specialist
- financial_advisor
- investor
- other
about_me
- string
- can contains HTML
logo
- string
- valid and public accessible URL
avatar
- string
- valid and public accessible URL
color_1
- string
- HTML color code
- Color for header and footer text
color_2
- string
- HTML color code
- Color for headings
custom_place
- string
- Custom place displayed in header (First line)
custom_description
- string
- Custom description displayed in header (Second line)
direct_download**
- boolean
- recommend if redirecting to Valuo PROFI is not wanted
JSON Parameters for post_data_url
(this can be also sent as parameter pdf_data in first request alongside contact_data)
required parameters*
recommended parameters**
description
- string
title_image
- string
- valid and public accessible URL
images
- array of strings
- strings must be valid and public accessible URLs