Available in API 2.0+
Returns the contents of a template
Required Parameters | Possible Values | Description |
template | template name | Template name. See below for valid template names |
Template Name | Description | Additional |
email | Email (General) | |
email_book_cancel | Email (Booking Cancelled) | Email Subject |
email_book_confirm | Email (Booking Confirmation) | Email subject |
email_book_remind | Email (Booking Reminder) | Email subject |
email_req_approved | Email (Booking Request Approved) | Email subject |
email_req_approved_m | Email (Booking Request Approved - with changes) | Email subject |
email_req_rejected | Email (Booking Request Rejected / Declined) | Email subject |
email_req_submitted | Email (Booking Request Submitted) | Email subject |
email_inv_overdue | Email (Invoice Overdue) | Email subject |
email_inv_remind | Email (Invoice Reminder) | Email subject |
invoice | Invoice (Regular) | |
invoice_cancellation | Invoice (Cancellation) | |
payonline | Online Payments | URL of external .css file |
print | Print | |
receipt | Invoice Receipt | |
webrequest | Public Booking Requests | URL of external .css file |
intro | Welcome Note (on login screen) | |
Example Response ↓ Show |
{
"email":"<table style=\"width:100%\"><tr>
<td>%LOGO%</td><td><b>%DATABASE%</b></td><td>%MIDASLOGO%</td></tr>
</table>%CONTENT%"
} |
Variables Returned | Description |
template | The current contents of the specified template |
additional | For templates which contain an additional value in addition to the main template content (such as email templates with an additional subject line), this value is returned in the "additional " parameter |