{"name":"PromptInvoice PDF API","docs":"https://invoice.flowsxr.com/agents","request":{"method":"POST","url":"https://invoice.flowsxr.com/api/pdf","contentType":"application/json","body":"the document object (optionally wrapped as { \"document\": {...} })"},"response":{"success":"200 application/pdf (the file)","invalid":"400 { error, details: [{ field, message }], warnings }","tooLarge":"413","failure":"500 { error, message }"},"fields":{"docType":"one of invoice, quote, estimate, receipt, voucher (default invoice). \"voucher\" means you are paying someone.","number":"required, your document number, e.g. INV-0042 or PV-2026-014","issueDate":"YYYY-MM-DD, default today","dueDate":"YYYY-MM-DD, default issueDate + 14 days (not shown on vouchers). For receipts this is the paid-on date.","from":"{ name (required), email, phone, address, taxId, logo, signature }; logo and signature are data:image/...;base64 URIs up to 1 MB","to":"{ name (required), email, address, reference }","items":"1 to 200 lines of { description, qty (default 1), rate (unit price) }","currency":"ISO 4217 code, default USD","taxRate":"percent 0 to 100, default 0","taxLabel":"e.g. GST, VAT (default Tax)","discountType":"percent | fixed","discountValue":"number","shipping":"number","customFields":"up to 10 { label, value } pairs shown in the header","paymentDetails":"bank details or payment instructions","paymentMethod":"mainly for vouchers, e.g. Bank transfer","approvedBy":"vouchers: name printed under the signature","notes":"free text at the bottom","theme":"hex accent colour, default #166534","layout":"stacked | side (parties side by side)"},"notes":["Totals are always calculated from the items; do not send them.","Nothing is stored. Keep the PDF you receive."],"example":{"docType":"voucher","number":"PV-2026-014","issueDate":"2026-10-02","from":{"name":"Studio Nova Ltd","email":"billing@studionova.com","address":"12 Example Street\nAuckland 1010"},"to":{"name":"Jane Contractor","email":"jane@example.com"},"items":[{"description":"Design services, September 2026","qty":1,"rate":350},{"description":"Advance for October 2026 (deducted from the October payment)","qty":1,"rate":200}],"currency":"SGD","paymentMethod":"Bank transfer","approvedBy":"Alex Owner"}}