Submit a Ticket My Tickets
Welcome
Login  Sign up

GET EmailTemplates API Version 1

 

GET EmailTemplates API

Updated on 2015-06-08
Current Version: Version 1
Deprecated Version: NA
Requests Allowed: GET&SOAP


Summary:

Returns an array of email templates.


Resource/WSDL Page:

http://<your_domain_here>/api/1/get.asmx?op=EmailTemplates


Parameters

api_key
Required
Type: STRING
Length (Max/Min): 50

Must be a valid API key (existing and not expired) 

Example Values: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh

email_type
Required
Type: ENUM


lead_email, non_lead_email, both



**Note all optional parameters still need to be passed through in the actual call. These parameters do not need a value (therefore you can use a null value). 

 

Example Request

GET

http://demo.cakemarketing.com/api/1/get.asmx/EmailTemplates?api_key=dNJFmId9rI&email_type=both

 

Sample XML Response:

<email_templates_response><success>true</success><row_count>457</row_count><email_templates><email_template><email_template_id>-10</email_template_id><email_template_name>Affiliate Portal Terms & Conditions Updated</email_template_name><lead_email>false</lead_email><html_email>false</html_email><from_address>admin@cakemarketing.com</from_address><subject>Updated Terms and Conditions Attached</subject><body>#FirstName# #LastName#,

Thank you for agreeing to the updated Affiliate Portal Terms and Conditions for #SystemName#. Please find the Terms and Conditions that you agreed-to on #CurrentDate# attached to this message.

Should you have any further questions, please contact your Affiliate Manager.

Thanks,

#SystemName#</body></email_template><email_template><email_template_id>-9</email_template_id><email_template_name>Voucher Code Denial</email_template_name><lead_email>false</lead_email><html_email>true</html_email><from_address>admin@cakemarketing.com</from_address><subject>Request for Voucher Code has not been approved (#CampaignID#)</subject><body>&lt;p&gt;Greetings,&lt;/p&gt;&lt;p&gt;At this time we are not able to approve your Voucher Code request. &lt;br/&gt;&lt;br/&gt;If you have any questions please contact your account manager.&lt;/p&gt; &lt;p&gt;Sincerely,&lt;/p&gt;&lt;p&gt;#SystemName#&lt;/p&gt;</body></email_template><email_template><email_template_id>-8</email_template_id><email_template_name>Voucher Code Approval</email_template_name><lead_email>false</lead_email><html_email>true</html_email><from_address>admin@cakemarketing.com</from_address><subject>Voucher Code Request has been approved (#CampaignID#)</subject><body>&lt;p&gt;Greetings,&lt;/p&gt;&lt;p&gt;We received and approved your request for a Voucher Code.&lt;br/&gt;&lt;br/&gt;Your Voucher Code for Campaign #CampaignID# - #CreativeID# is #VoucherCode#. You can also see your voucher code from the offer card.&lt;br/&gt;&lt;br/&gt;If you have any questions please contact your account manager. &lt;/p&gt; &lt;p&gt;Sincerely,&lt;/p&gt;&lt;p&gt;#SystemName#&lt;/p&gt;</body></email_template>


Example Error Messages:  

Error Message

Likely Cause

Invalid API Key

API key does not exist or is expired

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.