Retrieves one or more PDF documents from the specified template.

You can specify the ID of the document to retrieve or can specify combined to retrieve all documents in the template as one pdf.

Request

HTTP request

GET /v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}

Parameters

Parameter name Value Description
Path parameters
accountId string

The external account number (int) or account ID Guid.

documentId string

The ID of the document being accessed.

templateId string

The ID of the template being accessed.

Optional query parameters
encrypt string
show_changes string

Responses

application/pdf

Code Description Reference
200 OK Successful response.
400 Bad Request Error encountered.

SDK Method

Templates::getDocument

Definitions Expand All | Collapse All

errorDetails

This object describes errors that occur. It is only valid for responses, and ignored in requests.

errorCode string

An error code associated with the error.

message string

A short error message.