Templates: Creates a new invoice template.
POST
/api/invoicing/templates
deprecated
Requires: Invoicing.Templates, Invoicing.Templates.Create, merchant scope.
**Required permissions**: `Invoicing.Templates`, `Invoicing.Templates.Create` **Scope**: merchant
Signed in, you can send this request to your own sandbox merchant from the console and read the answer. Sign in to try it.
Example request
Every block below sends the same request. Replace {{BASE_URL}} with the address of the API you are calling and {{API_KEY}} with your own key.
The request body is a InvoiceTemplateCreateDto. See the Request body section below for its fields.
Parameters
Request body
application/json
, required
| Field | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name
required |
string |
nullablemax length 100
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
isDefault
required |
boolean |
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
theme
required |
InvoiceThemeDto InvoiceThemeDto | DTO for invoice theme visual settings.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
Fields of InvoiceThemeDto:
This body has no documented fields. | |||||||||||||||||||||||||||||||||||
layout
required |
InvoiceLayoutDto InvoiceLayoutDto | DTO for invoice layout configuration.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
Fields of InvoiceLayoutDto:
This body has no documented fields. | |||||||||||||||||||||||||||||||||||
headerHtml
required |
string | Conditional: When HeaderHtml is not null. Max length: 50000.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
footerHtml
required |
string | Conditional: When FooterHtml is not null. Max length: 50000.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
emailSubjectTemplate
required |
string | Conditional: When EmailSubjectTemplate is not null. Max length: 500.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
emailBodyTemplate
required |
string | Conditional: When EmailBodyTemplate is not null. Max length: 50000.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
attachPdfToEmail
required |
boolean | Whether the invoice and reminder emails sent from this template carry the invoice PDF as an
attachment. Only false turns the attachment off. On create, null attaches. On update, null
leaves the stored setting as it is.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
isActive
required |
boolean |
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
billerId
required |
string (uuid) |
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
billerType
required |
InvoicePartyType InvoicePartyType | Identifies the type of entity acting as the biller or recipient on an invoice.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||
This request body has no documented fields.
Responses
Errors
A failed request returns the platform error envelope. The
error reference lists every value
error.code can carry and shows the four response shapes.
Authentication
ApiKeywith scopes