Message templates

Messages templates can be defined to be used with Action Rules. Pilvi™ provides a default set of templates for you to get started with, but you can modify the templates to your liking or create new templates.


A variable is added in double-braces, e.g. {{}}. See list of available variables below.

Note properties[].value needs to be wrapped in triple-braces so the HTML is properly rendered for all Property value types.

Variable availability varies between messsage template types. Available contexts define which variables are available.

Message Template Type Context
PROFILE User Profile
SERVICE User Profile Service
SERVICE_CANCELED User Profile Service

All templates

Variable Name Description / Value source Preference: COMPANY_NAME Preference: COMPANY_EMAIL
company.address Preference: COMPANY_ADDRESS
company.zipcode Preference: COMPANY_ZIP_CODE Preference: COMPANY_CITY Preference: COMPANY_COUNTRY Preference: COMPANY_PHONE Preference: COMPANY_SITE_URL
company.logo.url Preference: COMPANY_LOGO_URL Preference: COMPANY_VAT_ID
message.title Title/Subject of the message template Site name. My Shop
site.console.url Site Console Root URL. ex.
site.console.profile.url Site Console Profile Page URL. ex.
site.console.invoices.url Site Console Invoices Page URL. ex. Site Console Services Page URL. ex.
site.manager.url Site Manager URL. ex.
site.domain Site's domain ex. Site's shop url ex.
year Current year

Template specific

Message Template Type Variable Name Description / Value source
SERVICES_EXPIRING numberofdaysbeforeexpire Days before Service Expiration Date (prev. numberofdaysbeforeexpire)
SERVICES_EXPIRING expiringservices List of expiring services. Contains same variables as Service context

User context

Variable Name Description / Value source User Id User Email User Full Name
user.firstname User Firstname
user.lastname User Lastname

Profile context

Variable Name Description / Value source Profile Name Profile Id Profile No
profile.balance Profile Balance
profile.debt Profile Debt Profile Delivery Address Street Profile Delivery City Profile Delivery Zip Code Profile Delivery Country
profile.address.invoice.street Profile Invoice Address Street Profile Invoice City
profile.address.invoice.zipcode Profile Invoice Zip Code Profile Invoice Country List of active Services on the Profile. Contains same variables as Service context

Service context

Variable Name Description / Value source Service Name Service Id Service No
service.url Service Page URL
service.expiredate Service Expiration Date[].name Service Property Name[].label Service Property Label[].value Service Property Value
service.product The Product of the Service. Contains same variables as Product context

Order context

Variable Name Description / Value source Order ID Order Number
order.created Order creation time, localized Order Total
order.totalwithvat Order Total With VAT
order.vat.rate Order VAT Rate
order.vat.amount Order VAT Amount
order.paymentmethod Payment method
order.reference Customer reference
order.additionalinfo Order additional info
order.products List of Products in Order. Contains same variables as Product context

Contract context

Variable Name Description / Value source Contract ID Contract Number
contract.startdate Contract start date
contract.invoicedtill Contract invoiced till date
contract.paidtill Contract paid till date
contract.reference Contract customer referenced
contract.created Contract creation time, localized

Product context

Variable Name Description / Value source Format Product Name string
product.plan Product Plan string Product Id number Product Number number
product.image.url Product Image URL string Product Group Name string[].name Product Property Name string[].label Product Property Label string[].value Product Property Value string
product.billingperiod Product Billing Period 1 month
product.billingprice Product Billing Price (price * billingperiod) 0.00
product.billingpricewithvat Product Billing VAT Price (price * billingperiod) 0.00
product.trialperiod Product Trial Period 1 month
product.price Product Price (price in product price interval) 0.00
product.priceperiod Product Price Period 1 month
product.pricewithvat Product VAT Price 0.00