Skip to main content

Template Configuration

This configuration allows you to set SMS and email templates for an event.

Creating template configuration

Request

ENDPOINT
/notification/template_configuration
METHOD
POST
Request Body
{
"event_type": "bank_slip",
"email_template_key": "e5c337db-dacc-4f1d-8a3e-919628640dd5"
}

Response

STATUS
201
Response Body
{"template_configuration_key": "e5c337db-dacc-4f1d-8a3e-919628640d51"}
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "description in portuguese",
"code": "codigo",
"extra_fields": {}
}
HTTP CodeQI Code
code
Title
title
Description (eng)
Description
Description (ptbr)
translation
400PMB000023Bad RequestAlready exists an template configuration to this person and event typeJá existe um template configuration para essa pessoa e event type

Listing template configuration

Request

ENDPOINT
/notification/template_configurations
METHOD
GET

Response

STATUS
200
Response Body
{
"data": [
{
"event_type": "bank_slip",
"sms_template": null,
"template_configuration_key": "e5c337db-dacc-4f1d-8a3e-919628640d51",
"email_template": "e5c337db-dacc-4f1d-8a3e-919628640dd5"
},
{
"event_type": "account_transaction",
"sms_template": null,
"template_configuration_key": "e5c337db-dacc-4f1d-8a3e-919628640ds1",
"email_template": "e5c337db-dacc-4f1d-8a3e-919628640dd5"
}
],
"pagination": {
"current_page": 0,
"next_page": null,
"rows_per_page": 10
}
}

Updating template configuration

Request

ENDPOINT
/notification/template_configuration/TEMPLATE_CONFIGURATION_KEY
METHOD
PUT
Request Body
{
"event_type": "bank_slip",
"email_template_key": "e5c337db-dacc-4f1d-8a3e-919628640dd5"
}

Response

STATUS
201
Response Body
{}
STATUS
4XX
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "description in portuguese",
"code": "codigo",
"extra_fields": {}
}
HTTP CodeQI Code
code
Title
title
Description (eng)
Description
Description (ptbr)
translation
400PMB000022Bad RequestThe event type (event type) is not validO tipo de evento (tipo de evento) enviado não é válido
404PMB000024Not FoundTemplate configuration not foundConfiguração de template não encontrada