Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Email /GetEmailTemplate

Allows 150 calls per minute

Response: EmailTemplate



Get the full data of a specific email template

Parameters

NameTypeDescription
pkEmailTemplateRowIdInt32Id of the email template to retrieve

Permissions

GlobalPermissions.Email.Templates.GetEmailTemplateNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Email/GetEmailTemplate

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

pkEmailTemplateRowId=1

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "pkEmailTemplateRowId": 1,
  "Name": "sample string 2",
  "Enabled": true,
  "TemplateType": "sample string 1",
  "TemplateTypeDefinition": {
    "AttachmentHelpText": "sample string 1",
    "Type": "sample string 1",
    "Name": "sample string 2",
    "IsAdhoc": true,
    "IsDesignerVisible": true,
    "ParsableCreator": null,
    "Tags": [],
    "AttachPDFAvailable": true,
    "PrintingTemplateType": "sample string 5",
    "AttachedFileName": "sample string 6"
  },
  "Subject": "sample string 5",
  "Condition": "sample string 6",
  "PreviewBeforeGenerating": true,
  "HTML": true,
  "AttachPDF": true,
  "Body": "sample string 10",
  "fkEmailAccountRowId": 11
}