documents

Generate And Download Pdf

Generate a document as PDF and return it for download.

This endpoint generates a PDF and immediately returns it as a downloadable file.

Args: request: Document generation request

Returns: PDF file for download

Raises: HTTPException: If generation fails or WeasyPrint not available

post/documents/generate-pdf

Request

  • Base URL: https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.jeevyfabrication.com/documents/generate-pdf
  • Auth: none declared

Request body

doc_type'quote_request' | 'po' | 'invoice' | 'quote' | 'work_order' required

Types of business documents that can be generated.

currencystring

Currency symbol

tax_ratenumber

Tax rate as decimal (0-1)

logo_pathstring nullable

Path to company logo image

output_formatstring

Output format: 'html' or 'pdf'

document_namestring nullable

Custom name for the generated document

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.