Sending active notifications
This service executes template notifications and sends to the users through WhatsApp
JSON Properties
- hash: Hash of the company where the template is registered
- templateName: The name of the template that will be executed.
- templateNamespace: Namespace of the template that will be executed.
- templateData: Contains the phone list and information about macros/variables for the template to be executed
- DeliveryDate: (Optional) If you need to schedule the notification/template, then this field should be filled like YYYYMMDDHHMM
- Reference: (Optional) You can use this field for any notes about this notification/template dispatch
- PhoneList: Phone list separated by semicolons, e.g., “551199999999;551388888888”
- Prop_Keys: Contains the list of macros/variables that will be replaced
- PropName: Macro/Variable ID. It can be used as {{0}}, {{1}}, {{2}},…
NOTE: The slot {{0}} is reserved for media files and the value should be an URL - PropValue: Value which will replace the macro/variable
- PropName: Macro/Variable ID. It can be used as {{0}}, {{1}}, {{2}},…
- Prop_Parms: Contains the list of parameters that will be added to the service execution
- PropName: Name of the parameter that will be added
- PropValue: Value of the parameter that will be added
- ReturnMode: (Optional) Defines the type of return. If not informed, then DEFAULT will be applied
- DEFAULT: Returns a phone list with the status of each dispatch
- RESUME: Returns a JSON with data about the dispatch
- RequestStatus: Notification dispatch status
- CANCELED: All notifications cancelled
- QUEUED: Notifications not sent yet
- PROCESSED: All notifications have been sent
- PROCESSING: The system is still sending notifications
- RequestStatus: Notification dispatch status
Examples
Some examples on how to implement the dispatch of AnnA Notifications: