Skip to main content

CreateTemplateInput

$schemauri

A URL to the JSON Schema for this object.

Example: https://example.com/schemas/CreateTemplateInput.json
cssContentstring

CSS styles for the template

descriptionstring

Template description

footerHtmlstring

Optional HTML footer template

headerHtmlstring

Optional HTML header template

htmlContentstringrequired

HTML template content

margins object

Page margins in millimeters

bottomdoublerequired
leftdoublerequired
rightdoublerequired
topdoublerequired
namestringrequired

Template name

orientationstringrequired

Page orientation (portrait, landscape)

Default value: portrait
pageSizestringrequired

Page size (A4, A3, Letter, Legal)

Default value: A4
typestringrequired

Template type (invoice, offer, receipt, custom)

CreateTemplateInput
{
"$schema": "https://example.com/schemas/CreateTemplateInput.json",
"cssContent": "string",
"description": "string",
"footerHtml": "string",
"headerHtml": "string",
"htmlContent": "string",
"margins": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"name": "string",
"orientation": "portrait",
"pageSize": "A4",
"type": "string"
}