Spanish Invoice PDF Generator
## Spanish Invoice PDF Generator REST API to generate professional, tax-compliant PDF invoices for Spain. ### Features - **IVA & IRPF** calculation with configurable percentages - **Line-level discounts** with automatic subtotals - **Custom logo** support (base64 encoded) - **Payment information** block (IBAN, bank, due date) - **Notes section** for additional terms or comments - **Three…
Spanish Invoice PDF Generator endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Generate Invoice /api/invoice/generate |
Generates a professional Spanish-compliant PDF invoice and returns it as base64 along with all calculations (subtotals, IVA, IRPF, discounts, total). |
| POST |
Download Invoice PDF /api/invoice/download |
Generates a Spanish-compliant PDF invoice and returns it directly as a downloadable PDF file (application/pdf). |
| POST |
Calculate Invoice /api/invoice/calculate |
Returns only the invoice calculations (subtotals, IVA, IRPF, discounts, total) without generating a PDF. Useful for previewing totals before generating the final invoice. |