This topic provides a worked example of how to use API calls to set up a Notification Rule for triggering a Notification only if the specific conditions defined in the Notification Rule are satisfied:Documentation Index
Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
Use this file to discover all available pages before exploring further.
- Any Commitment updated Event where the Commitment amount drops below 10% of the original amount.
- Step 1: Create a Notification Rule
- Step 2: Create Integration Destination
- Step 3: Create Integration Configuration for Notification
Step 1: Create a Notification Rule
POST at https://api.m3ter.com/organizations/{orgId}/notifications/configurations/
In this example, we’ve set up a rule for triggering a Notification based on a configuration.commitment.updated Event, which includes a calculation referencing Event Fields to define the precise conditions for triggering the Notification. The calculation means the Notification will be triggered when the amount spent from the commitment drops below 10% of the total amount.
Step 2: Create Integration Destination
POST at: https://api.m3ter.com/organizations/{orgId}/integrationdestinations/webhooks
Step 3: Create Integration Configuration for Notification
POST at: https://api.m3ter.com/organizations/{orgId}/integrationconfigs