m2pfintech
API LibraryNotifications

Send a notification to a customer

Send a notification to a customer through one of the supported channels - SMS, EMAIL, or PUSH notification.

The templateId identifies a pre-configured notification template. The params object provides dynamic values to be substituted into the template placeholders.

Templates and their available parameters are configured by M2P during onboarding. Contact M2P to get the list of available template IDs and their required parameters.

POST
/Yappay/notification-manager/send

Authorization

BearerAuth TenantHeader
AuthorizationBearer <token>

JWT Bearer token obtained from the /auth/login endpoint

In: header

TENANT<token>

Tenant identifier provided by M2P (e.g. ENBDTABBY)

In: header

Request Body

application/json

kitNo*string

Kit number of the customer to notify

channel*string

Notification delivery channel. SMS for text message, EMAIL for email, PUSH for push notification.

Value in"SMS" | "EMAIL" | "PUSH"
templateId*string

Pre-configured notification template ID. Available templates are set up by M2P during onboarding.

params?

Dynamic template parameter values. Keys and values depend on the template being used.

Response Body

application/json

application/json

curl -X POST "https://api.m2p.com/Yappay/notification-manager/send" \  -H "Content-Type: application/json" \  -d '{    "kitNo": "KIT20260306001234",    "channel": "SMS",    "templateId": "TXN_ALERT_001",    "params": {      "amount": "5000.00",      "merchant": "Amazon",      "date": "2026-03-06"    }  }'
{
  "status": "success",
  "message": "Notification sent successfully"
}
{
  "result": null,
  "exception": {
    "detailMessage": "Mandatory field kitNo is missing",
    "shortMessage": "Missing mandatory field",
    "errorCode": "Y105",
    "languageCode": "en"
  },
  "pagination": null
}