Skip to content

Update Notifications

POST {api-url}/updateNotifications?ns={community}

Overwrite the existing notification rules for specific Transaction Types (TTs) with a new configuration. This allows you to set up SMS templates, Emails, and Webhooks with dynamic variables. For a detailed list of available variables to be evaluated in Conditions and Payload strings, refer to the Webhook Payload Structure.

FieldTypeRequirementDescription
NotificationsObjectRequiredAn object mapping Transaction Types (e.g., "TT1") to an array of rule definitions.
MetadataStringOptionalAny other detail to store with this request.
{
"Notifications": {
"TT4": [
{
"Type": "SMS",
"SMSCondition": "len(Audit_FromCardPANNo)==0",
"SMSRecipients": "[[From_MSISDN]]",
"SMSMessage": "Payment of [[Audit_AmountStr]] successful."
}
]
},
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/updateNotifications?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Notifications":{"TT4":[{"Type":"SMS","SMSCondition":"len(Audit_FromCardPANNo)==0","SMSRecipients":"[[From_MSISDN]]","SMSMessage":"Payment of [[Audit_AmountStr]] successful."}]},"Metadata":""}'