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 | Must be a valid API key (existing and not expired) Example Values: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
email_type | 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 |
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><p>Greetings,</p><p>At this time we are not able to approve your Voucher Code request. <br/><br/>If you have any questions please contact your account manager.</p> <p>Sincerely,</p><p>#SystemName#</p></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><p>Greetings,</p><p>We received and approved your request for a Voucher Code.<br/><br/>Your Voucher Code for Campaign #CampaignID# - #CreativeID# is #VoucherCode#. You can also see your voucher code from the offer card.<br/><br/>If you have any questions please contact your account manager. </p> <p>Sincerely,</p><p>#SystemName#</p></body></email_template>
Example Error Messages:
Error Message | Likely Cause |
Invalid API Key | API key does not exist or is expired |