LZT PDF Generator

API routes live under /api. Use GET /api/health to verify the deployment.

Invoice PDF: POST /st/invoice with body { "invoiceRecordId": <number> }, or GET /st/invoice?invoiceRecordId=… (optional token if ST_PDF_API_SECRET is set).

Purchase Order PDF: POST /st/po with { "poRecordId": <number> }, or GET /st/po?poRecordId=….

Production host example: https://pdfgen.lztek.io/st/invoice and https://pdfgen.lztek.io/st/po (append query/body as above).