Create template

Creates a new template.

Body Fields

FieldTypeRequiredDescription
titlestringYesTemplate title/name
typestringYesTemplate type (see below)
contentstringYesTemplate content (HTML supported)
subjectstringNoEmail subject line (for email templates)
byDefaultSendDealbooleanNoSet as default for sending quotations

Template Types

TypeDescription
emailEmail template for sending quotations
noticeLegal notice template
cgvTerms and conditions (CGV) template

Template Variables

Templates support dynamic variables that are replaced when used:

  • {{quotation.reference}} - Quotation reference number
  • {{customer.firstName}} - Customer first name
  • {{customer.lastName}} - Customer last name
  • {{company.name}} - Your company name
  • And more depending on context...

Response Fields

FieldTypeDescription
idintegerNewly created template unique identifier
titlestringTemplate title
typestringTemplate type
contentstringTemplate content
subjectstringEmail subject
byDefaultSendDealbooleanDefault for sending quotations
createdAtdatetimeCreation timestamp
updatedAtdatetimeLast update timestamp

Response

  • 201 Created: Template successfully created
  • 400 Bad Request: Invalid request body or validation error
  • 401 Unauthorized: Invalid or missing API key
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
boolean
Responses
201

Resource created

400

Bad request

401

Unauthorized

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!