Email Templates

Create a new email template

Create a new email template with optional upsell products

post/email-templates

Request body

templateNamestring required

Template name

subjectstring required

Email subject

bodystring required

Email body (HTML)

upsellProductsnumber[] nullable

Array of product IDs for upsell (null or empty for normal emails)

sortOrdernumber

Sort order for display

Example request

{
  "templateName": "Upsell - Title Plan",
  "subject": "Complete your order with Title Plan!",
  "body": "<h1>Hi {{customerName}}</h1><p>Add Title Plan for just £10!</p>",
  "upsellProducts": [
    2,
    3
  ],
  "sortOrder": 1
}

Response

Email template created successfully

Changes

No recorded changes to this endpoint across all 1 revision of this API.