Notification Configuration
Here we will demonstrate how you can choose which types of events will be notified and by which means the notification will occur.
Warning
If there is no notification configuration for an event, you will not receive notifications for it.
Creating a Notification Configuration
Request
ENDPOINT
/notification/notification_configuration
METHOD
POSTRequest Body
{
"callback": true,
"email": true,
"event_type": "account_transaction",
"sms": true
}
Response
STATUS
201Response Body
{"notification_configuration_key": "69850ae3-28bc-4779-a871-e73e1e883413"}
Listing Notifications Configurations
Request
ENDPOINT
/notification/notification_configurations
METHOD
GETResponse
STATUS
200Response Body
{
"data": [{
"event_type": "account_request",
"sms_template": "b35ed5fc-fdda-4618-84e6-b49876dabf23",
"template_configuration_key": "480521cc-b0c9-4938-bd11-0000be11c66b"
}],
"pagination": {
"current_page": 1,
"next_page": null,
"rows_per_page": 1
}
}
Update Notifications configuration
Request
ENDPOINT
/notification/notification_configuration/NOTIFICATION_CONFIGURATION_KEY
METHOD
PUTRequest Body
{
"callback": true,
"email": true,
"event_type": "account_transaction",
"sms": false
}
Response
STATUS
200Response Body
{}
STATUS
4XXResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Code | QI Codecode | Titletitle | Description (eng)Description | Description (ptbr)translation |
---|---|---|---|---|
400 | PMB000026 | Invalid notification for event type | Invalid notification method for event type | Método de notificação inválido para tipo de evento |