Skip to main content
POST
Create invoice template

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json

Template configuration including layout, required fields, and display settings

name
string
required

Unique name for the invoice template

Example:

"Standard Template"

components
object
required

Template components configuration that defines the invoice layout and content. Includes: - Required fields (invoiceNumber, date, amount, etc.) - Display settings (company details, customer details, line items) - Company information - Tax settings - Custom fields

Example:
isDefault
boolean
default:false

Set this template as the default template for new invoices

Response

Template created successfully

name
string
required

Unique name for the invoice template

Example:

"Standard Template"

components
object
required

Template components configuration that defines the invoice layout and content. Includes: - Required fields (invoiceNumber, date, amount, etc.) - Display settings (company details, customer details, line items) - Company information - Tax settings - Custom fields

Example:
isDefault
boolean
default:false

Set this template as the default template for new invoices