Skip to main content
TemplateVersion: 2021-07-28

Create template

POST/invoices/template

API to create a template

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:invoices/template.write
Auth methods:OAuthPrivate Integration
Token types:Sub-Account TokenAgency Token

Request​

Headers

Versionstringrequired

API Version

Available options2021-07-28

Body

altIdstringrequired

location Id / company Id based on altType

Example:6578278e879ad2646715ba9c
altTypestringrequired

Alt Type

Available optionslocation
Example:location
internalboolean
namestringrequired

Name of the template

Example:New Template
businessDetailsobjectrequired
currencystringrequired
itemsobject[]required
automaticTaxesEnabledboolean

Automatic taxes enabled for the Invoice

Example:true
discountobject
termsNotesstring
titlestring

Template title

Example:New Template
tipsConfigurationobject

Configuration for tips on invoices

lateFeesConfigurationobject

Late fees configuration for the invoices

invoiceNumberPrefixstring

prefix for invoice number

Example:INV-
paymentMethodsobject

Payment Methods for Invoices

attachmentsstring[]

attachments for the invoice

miscellaneousChargesobject

miscellaneous charges for the invoice

Response

Successful response

_idstringrequired

Template Id

Example:6578278e879ad2646715ba9c
altIdstringrequired

Location Id or Agency Id

Example:6578278e879ad2646715ba9c
altTypestringrequired
Available optionslocation
namestringrequired

Name of the Template

Example:New Template
businessDetailsobjectrequired

Business Details

currencystringrequired

Currency

Example:USD
discountobject

Discount

itemsstring[]required

Invoice Items

invoiceNumberPrefixstring

prefix for invoice number

Example:INV-
totalnumberrequired

Total Amount

Example:999
createdAtstringrequired

created at

Example:2023-12-12T09:27:42.355Z
updatedAtstringrequired

updated at

Example:2023-12-12T09:27:42.355Z