Skip to main content
Version: 5.7.0

SysGetNotificationTemplates

Returns an array of the notification templates defined - with the text for the specified language.

ServiceOperation
pushNotificationSYS_GET_NOTIFICATION_TEMPLATES

Method Parameters

ParameterDescription
defaultLanguageCodeThe language code (lowercase) to be used for returning the default message text.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"pushTemplates":
[
{
"notificationTemplateId" : 1,
"name" : "awesomeSaleNotification",
"defaultMessage" : "This is english text!",
"updatedAt" : 1591730181151
},
{

"notificationTemplateId" : 2,
"name" : "anotherNotification",
"message" : "This is another notification",
"updatedAt" : 1591734121222
}
]
},
"status": 200
}