Skip to main content
PUT
Update template

Headers

x-admin-api-key
string
required

The API key to access the admin API

Path Parameters

id
string
required

Body

application/json

Fields to update in the template. All fields are optional.

name
string

Unique name for the invoice template

Example:

"Standard Template"

components
object

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 updated 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