{

Templates

Templates can be used in the frontend to reuse it for multiple mailings. The mailing object in the api also contains a template. These objects are the same.

Object definition template

Property Type Description
ID Guid The ID of the template
AccountID Guid The accountID of the template
Name String The name of the template
Description String The description of the template
HtmlBody String The html body of the template. This is the body that recipients with a normal e-mail client will get
TextBody String The text body of the template. This is the body that recipients will get when their e-mail client doesn't support HTML
Json String The json of the template. This field is only used when you use our editor. You can leave this blank.
MergeFields Object See mergefields object definition
CreatedOn DateTime When the template was created
ModifiedOn DateTime When the template was last modified
DeletedOn DateTime When the template was deleted

Object definition merge fields

Property Type Description
MergeTags Array of objects The mergetags available. See merge tag object definition
SpecialLinks Array of objects The special links available. See special link object definition

Object definition merge tag

Property Type Description
Name String The name of the merge tag
Value String The value of the merge tag. This is the placeholder that will be replaced in the body of the mail, for example: {{ Recipient.Url }}
Mapping String The field in the address object it should be replaced with, for example: Recipient.MergeFieldValue1.

Object definition special link

Property Type Description
Type String The of the link, this should be either system or link
Label String The label of the link. This is just for recognizing the link, it won't replace the label in the body.
Link String This is the placeholder in the body that will be replaced, for example [[ SpecialLink.link2 ]]
Link Mapping The url this link should map to, for example: https://www.cm.com. This can also be a merge field, for example: {{ Recipient.Url }}