Dynamic Document API
The following endpoints are for the ad-hoc rendering of document liquid templates.
These endpoints return URLs for the rendered document in both PDF and HTML formats. These URLs are valid for about an hour. The generated documents are not automatically attached to the policy; see the add document endpoint to attach files to a policy.
If a specific transaction is referenced in the rendering request, the data supplied to the template will reflect that transaction’s current state.
Endpoint Index
| Action | Endpoint |
|---|---|
| Render a document for an existing policy, given a liquid template | POST /document/renderPolicyDocument |
| Render a document for an existing policy, given a liquid template filename | POST /document/renderPolicyDocumentFromConfig |
Details
POST /document/renderPolicyDocument| Name | Position | Type | Required |
|---|---|---|---|
| PolicyDocumentRenderRequest | body | PolicyDocumentRenderRequest | required |
DocumentRenderResponserequiredpolicyDisplayId stringtemplate stringoptionaltransactionLocator stringtransactionType string renewal | endorsement | cancellation | reinstatement | premium_report
Renders a document for a policy, given the
policyDisplayIdand thetemplate(liquid template content passed in as a string) in the PolicyDocumentRenderRequest request body.
POST /document/renderPolicyDocumentFromConfig| Name | Position | Type | Required |
|---|---|---|---|
| PolicyDocumentRenderRequest2 | body | PolicyDocumentRenderRequestWithTemplate | required |
DocumentRenderResponserequiredconfigProductTemplate stringpolicyDisplayId stringoptionalresourcesAsOfTimestamp timestamptransactionLocator stringtransactionType string renewal | endorsement | cancellation | reinstatement | premium_report
Renders a document for a policy, given the
configProductTemplateliquid template filename from the configuration and thepolicyDisplayId, as specified in the PolicyDocumentRenderRequestWithTemplate request body.Specify the
resourcesAsOfTimestampto render based on a specific instance of the template.
requiredassignedVariables map<string,object>optionalrenderedHtmlUrl stringrenderedPdfUrl string