Skip to main content

Notifications

CREATE NOTIFICATION TEMPLATE

Description: Create notification template

REQUEST PARAMETERS

ParameterTypeDescriptionRequired
message StringNotification messageYes
messageType Integer0 - indicates message template for successful transaction, 1- indicates message template for failed transactionYes
productCode StringeTranzact specific product codeYes
POST / notification/template
curl `${base_url}/notification/template`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X POST
-d '{
"message": "Dear customer, an attempt to fund your wallet by bank transfer failed due to limit exceeded",
"messageType": 1,
"productCode": "PKM"
}'

GET NOTIFICATION TEMPLATES

Description: Get created notification templates

REQUEST PARAMETERS

ParameterTypeDescriptionRequired
product StringeTranzact specific product codeYes
tempID StringTemplate IDNo

Not-Required = tempID - Template ID

GET / notification/template?product=PKM&tempID=
curl https://{base_url}/notification/template?product=PKM&tempID=
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X GET

UPDATE NOTIFICATION TEMPLATE

Description: Update notification template

REQUEST PARAMETERS

ParameterTypeDescriptionRequired
message StringNotification messageYes
messageType Integer0 - indicates message template for successful transaction, 1- indicates message template for failed transactionYes
productCode StringeTranzact specific product codeYes
PUT / notification/template/{template_id}
curl https://{base_url}/notification/template/{template_id}
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X PUT

CREATE NOTIFICATION EMAIL

Description: Create notification email

REQUEST PARAMETERS

ParameterTypeDescriptionRequired
email arrayAdmin notification emailYes
POST / notification/email
curl `${base_url}/notification/email`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X POST
-d '{
"email": [‘john@etz.com’,’sarah@etz.com’]
}'

REMOVE NOTIFICATION EMAIL

Description: Remove notification email

REQUEST PARAMETERS

ParameterTypeDescriptionRequired
email arrayAdmin notification emailYes
DELETE / notification/email
curl `${base_url}/notification/email`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X DELETE
-d '{
"email": [‘john@etz.com’,]
}'

GET NOTIFICATION EMAIL

Description: Get admin notification email

RESPONSE PARAMETERS

ParameterTypeDescriptionRequired
status IntegerHTTP status codeYes
message StringDescription of HTTP status codeYes
data arrayAdmin EmailsYes
GET / notification/email
curl `${base_url}/notification/email`
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X GET