Skip to main content

Quote PDF

This GET endpoint allows you to download the PDF document for a specific client quote. The response body is a base64-encoded string representing the PDF document. Decode it to obtain the binary PDF file, or use it directly in a data URI (e.g., 'data:application/pdf;base64,<encoded_string>'). The response's Content-Type header is text/plain — the PDF media type is exposed separately via an Original-Content-Type: application/pdf header, not the standard Content-Type.

GET
/api/v2/quotes/:id/pdf

Request

Example requestGET
curl -X GET \
    --user "YOUR_API_KEY:" \
    "https://api.funnelleasing.com/api/v2/quotes/564323/pdf"

Response

Example response (base64-encoded PDF string)TEXT200 · text/plain
JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCjIgMCBvYmoKPDwKL1R5cGUgL1BhZ2VzCi9LaWRzIFszIDAgUl0KL0NvdW50IDEKL01lZGlhQm94IFswIDAgNTk1IDg0Ml0KPj4KZW5kb2JqCjMgMCBvYmoKPDwKL1R5cGUgL1BhZ2UKL1BhcmVudCAyIDAgUgovUmVzb3VyY2VzIDw8Ci9Gb250IDw8Ci9GMSA0IDAgUgo+Pgo+PgovQ29udGVudHMgNSAwIFIKPj4KZW5kb2JqCjQgMCBvYmoKPDwKL1R5cGUgL0ZvbnQKL1N1YnR5cGUgL1R5cGUxCi9CYXNlRm9udCAvSGVsdmV0aWNhCj4+CmVuZG9iago1IDAgb2JqCjw8Ci9MZW5ndGggNDQKPj4Kc3RyZWFtCkJUCi9GMSAxMiBUZgooTXkgUERGIFNhbXBsZSkKRVQKZW5kc3RyZWFtCmVuZG9iagp4cmVmCjAgNgowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA1OCAwMDAwMCBuIAowMDAwMDAwMTE1IDAwMDAwIG4gCjAwMDAwMDAyNzMgMDAwMDAgbiAKMDAwMDAwMDM0OCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDYKL1Jvb3QgMSAwIFIKPj4Kc3RhcnR4cmVmCjQyNwolJUVPRgo=
ℹ️

Requires the quotes route permission

This endpoint requires an API key with the quotes route permission. See Route permissions on the Authentication page.

Errors

Quote Not Found (404)

Returned when id doesn't match a quote for your company. The body is the two-character JSON string "" (an empty string) with Content-Type: application/json — not a zero-length body, and not an error object.

Error responseJSON404 · application/json
""