CreateTemplateInput
$schemauri
A URL to the JSON Schema for this object.
Example:
https://example.com/schemas/CreateTemplateInput.jsoncssContentstring
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:
portraitpageSizestringrequired
Page size (A4, A3, Letter, Legal)
Default value:
A4typestringrequired
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"
}