anchor.diff:  
   === Uploading a custom template
   
  -As explained earlier, you can upload per-tenant email templates for various events. At runtime, the plugin will look at the configured templates and based on the locale associated with a given account, decide which one to take. An administrator should upload one template per event and type of locale supported. If a given Account does not have a `locale` specified, email sending will fail with an exception `Translation for locale XXX isn't found`.
  -
  -Let's look at an example to upload a template for the next upcoming invoice for a locale `en_US`:
  +As explained earlier, you can upload per-tenant email templates for various events. Let's look at an example to upload a template for the next upcoming invoice for a locale `en_US`:
   
   . Create the template `/tmp/UpcomingInvoice.mustache`:
   +
  
positive.code: 
  A plugin can be installed via the https://github.com/killbill/killbill-cloud/blob/master/kpm[Kill Bill Package Manager (KPM)]. For this, please follow the steps given below:
  
  . Ensure that you have kpm installed as explained https://github.com/killbill/killbill-cloud/tree/master/kpm#kpm-installation[here]. 
  
  . Install the plugin using the following kpm command (Replace `<path_to_install_plugin>` with the path where you want to install the plugin. This path should match the path specified by the `org.killbill.osgi.bundle.install.dir` property in the Kill Bill configuration file):
  [source,bash]
  
negative.code: |===
  |Event Type   |Email Description
  //-------------
  |INVOICE_CREATION   |The customer will receive an email informing them that a new invoice is available.  
  |INVOICE_NOTIFICATION   |The customer will receive an email about upcoming invoices (the time at which to send the email is configured through the Kill Bill system property `org.killbill.invoice.dryRunNotificationSchedule`).  
  |INVOICE_PAYMENT_SUCCESS   |The customer will receive an email after each successful payment or refund.
  |INVOICE_PAYMENT_FAILED   |The customer will receive an email after each failed payment.  
  |SUBSCRIPTION_CANCEL   | The customer will receive an email at the time a subscription was requested to be canceled and/or at the effective date of the subscription cancellation.  
  