Reference
Document Generation
Generate PDF and Excel documents for invoices, receipts, quotations, VAT returns, WHT certificates, and payslips.
The documents module produces file exports from your accounting data — stamped with your business details, ready to email or download. Every endpoint returns a signed URL that's valid for 1 hour.
Invoice PDF
/v1/documents/invoice/{invoiceId}/pdfGenerates an invoice PDF with your logo, business address, and line items.
Query parameters
| Field | Type | Required |
|---|---|---|
businessId | string | yes |
Response — 200
{
"success": true,
"data": {
"documentType": "invoice",
"fileName": "INV-2026-001.pdf",
"url": "https://storage.googleapis.com/...",
"expiresAt": "2026-04-17T11:30:00.000Z"
}
}Receipt PDF
/v1/documents/receipt/{receiptId}/pdfReceipt PDF with payment breakdown and invoice allocation.
Quotation PDF
/v1/documents/quotation/{quotationId}/pdfQuotation PDF with validity date and terms.
Financial Statement PDF
/v1/documents/financial-statement/pdfCombined P&L, Balance Sheet, and Cash Flow for a period.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
startDate | ISO 8601 | yes | |
endDate | ISO 8601 | yes | |
includeCashFlow | boolean | no | Defaults to true. |
VAT Return
/v1/documents/vat-return/pdfFIRS-ready VAT return for a filing period.
/v1/documents/vat-return/excelSame data in an Excel workbook, suitable for FIRS e-filing.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
startDate | ISO 8601 | yes | Period start (usually 1st of month). |
endDate | ISO 8601 | yes | Period end (last day of month). |
WHT Certificate PDF
/v1/documents/wht-certificate/{certificateId}/pdfWithholding tax certificate for a supplier, issued from a WHT deduction.
Payslip PDF
/v1/documents/payslip/{payslipId}/pdfEmployee payslip with earnings, deductions, and net pay.
Rate-limit considerations
Each document generation is one API call. For bulk exports (e.g. emailing payslips to 50 employees), expect 50 calls against your rate limit. Batch them with a small delay to stay within the per-minute window.
Related endpoints
Reference index
Back to all modules