v1

latestOpenAPI 3.1.0Apache 2.02026-07-2473175248.0 KB
9. Digital Templates

Create a new Digital Template

post/digitalTemplates

Request body

namestring required

A unique name to give the template.

fromNamestring required

The name that will appear in the From line of the email and the {from_name} in the text message.

subjectstring required

The Subject of the email.

headerImagestring required

A Base64 encoded string of an image that will show as the header of the email.

headerImageAltTextstring required

The Alt Text for the Header Image in the email.

accentColorstring required

A Hex color value, six hexadecimal digits preceded by a pound sign, used as an accent in the email.

messageBodystring required

The message body for the email. This is often used to let the recipient know why they have received the reward.

smsMessageBodystring

The message body for the SMS. This is often used to let the recipient know why they have received the reward. Must be non-NULL when sending rewards via SMS. (limited to 90 characters)

closingstring required

After the reward credential, a space to close the email message to the recipient.

customerServiceMessagestring

If left null, Tango Card's Customer Support contact information will be included. Otherwise, please provide the contact information for your customer support if you are responsible for providing first-tier customer support to your recipients. (email only)

Example request

{
  "accentColor": "#000000"
}

Response

Created

etidstring required
namestring required
fromNamestring required
subjectstring required
headerImagestring required
headerImageAltTextstring required
accentColorstring required
messageBodystring required
smsMessageBodystring
closingstring required
customerServiceMessagestring