Set threshold notifications against Prepaid with Drawdown
You can set threshold notifications against the Prepaid Validity Period Summary data source for Prepaid with Drawdown through the API and the Zuora UI.
Note that in order to set up an email threshold notification, the availability of email templates and email template IDs is a prerequisite for creating such a notification definition. For more information about how to create email templates and generate email template IDs, see Manage email templates.
To set up an email threshold notification, perform the following steps:
-
Use the Custom Event Triggers API operation to define a custom event. Determine the following mandatory fields specific to the custom event:
Field name |
Type |
Description |
||||||
---|---|---|---|---|---|---|---|---|
active |
boolean |
The status of the event trigger. |
||||||
baseObject |
string |
The base object that the trigger rule is defined upon. For Prepaid with Drawdown, use ValidityPeriodSummary as the base object. |
||||||
condition |
string |
The JEXL expression to be evaluated against object changes. |
||||||
eventType
|
||||||||
Sample API request: Create a custom event.
Request |
POST https://{endpoint}/events/event-triggers |
---|---|
Request body |
|
-
Use the Create a notification definition API operation to configure a notification definition. Determine the following mandatory fields specific to the notification:
Field name |
Type |
Description |
||||||
---|---|---|---|---|---|---|---|---|
eventTypeName |
string |
The name of the event type. Note that the event type name here must be the same as it is in the preceding step. |
||||||
filterRule
|
||||||||
name |
string |
The name of the notification definition, unique per communication profile. |
Sample API request: Create a notification definition.
Request |
POST https://{endpoint}/notifications/notification-definitions |
---|---|
Request body |
|
By performing this step, you have created a threshold notification with two event parameters available. You can make your own adjustments according to your needs.
-
Navigate to Platform > Events & Notifications in the left navigation menu. You can check and update notification configurations in the Notifications tab. Also, you can check the history of the email notifications sent in the Email History tab.