Dash PDF Report
Documentation about how to leverage Dash to render PDF report
GET
dash.pricehubble.com/pdf-report
Page#
Rendering the page requires browser context in order to execute the included Javascript
code. Ignoring this
requirement will result in response with an empty html.
For automation purposes, Puppeteer
in Node.js
could be used. Or comparable alternative in any other
programming language with a dependency on Headless Chrome.
Successful rendering is to be determined via the body.pdfIsReady
selector.
document.querySelector('body.pdfIsReady')
Example 1#
https://dash.pricehubble.com/pdf-report?access_token=74126eab0a9048d993bda4b1b55ae074&
data={
"language":"en_GB",
"dossierId":"517351b9-5a04-4ca8-aa1b-cc06dd5502cc",
"frontCoverId":"d0035944-a5c0-4f30-b906-c335a36a14ca",
"backCoverId":"107499bf-e63e-4e8d-aaeb-61c054c57fac",
"templateId":"3347c70b-d641-4377-895b-b44cdd759f80",
"dealType":"rent"
}
Renders the rent report using the organization template. Includes both front and back covers. Renders it in British English.
Query parameters#
Field | Description | Type | Remarks |
---|---|---|---|
access_token | Access token | string | See Authentication |
data | Report configuration | object | |
data.dossierId | Dossier uuid | string | See Dossier creation |
data.templateId | Template uuid | string | See Template Creation |
data.dealType | Deal type of the valuation | string | Valid values are sale or rent |
data.language | Locale | string | Valid values are en_GB , cs_CZ , de_CH , fr_FR , it_IT , ja_JP , nl_NL , sk_SK |
data.frontCoverId | Front cover uuid | string | If not provided, default front cover is rendered. See Cover Creation |
data.backCoverId | Back cover uuid | string | See Cover Creation |