The paper of a preview: the sanitized HTML of a sample, for an iframe (II-D221)
The paper_url of a preview token or the paper of a preview link. HTML that loads nothing (its images and fonts travel inside it), runs no script, lives in a sandbox, can be framed only by the web, and is never cached; no cookie. Only sample data, never an invoice. Reload it on draft_saved. Opened by a link: at most 120 a minute per address and per link, whichever comes first (rate_limited); a gallery loads one per template.
GET
https://api.invox.page/paper/{credential}Path parameters
Query parameters
Returns
200
The HTML of the paper.
400
validation_failed: The request is not valid
JSON
404
preview_link_invalid: This preview link is not valid · template_not_found: The template does not exist in this organization · asset_not_found: The image does not exist in the library
JSON
422
template_syntax_error: The template has a syntax error · template_limit_exceeded: The template went over a limit while rendering · font_not_in_catalog: The template uses a font that is not in the catalog
JSON
429
rate_limited: Too many requests
JSON
500
internal_error: The service failed
JSON
503
service_unavailable: The service cannot answer right now · render_unavailable: The document could not be rendered right now
JSON