Documentation Index
Fetch the complete documentation index at: https://docs.heffl.com/llms.txt
Use this file to discover all available pages before exploring further.
Document templates
Document templates are the layout and settings presets used when you create documents in Heffl — not project templates or email templates. Each template belongs to one document type, for example:- Quotations (
type: quotations) - Invoices (
type: invoices) - Proforma invoices (
type: proforma_invoices) - Purchase orders (
type: purchase_orders) - Bills, sales orders, documents, and other types supported in your workspace
tpl_ prefix). Use it as templateId when creating records that require a template (for example POST /quotations).
List templates
Filter by document type to find templates for a specific workflow:| Parameter | Description |
|---|---|
type | Document type — quotations, invoices, proforma_invoices, purchase_orders, bills, sales_orders, documents, etc. |
search | Case-insensitive prefix match on template name |
includeInactive | When true, includes inactive templates |
Get a template
Use this when you need template-scoped custom field keys before creating a quotation:customFields array. Use each key as a top-level cf_* field on POST /quotations (same convention as Custom fields).
Create a quotation
- List templates with
type=quotationsand pick anid. - Optionally call
GET /document-templates/{id}forcustomFields. - Create the quotation with
templateId:
templateId cannot be changed after creation. See API v2 overview — Quotations.
Related
- ID prefixes —
tpl_template IDs - Custom fields — team-wide field definitions; template detail also lists template-scoped fields