APIs for Businesses
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification API
Payment Method
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification API
Payment Method
  1. Notification API
  • Notification API
    • Overview
    • Full Example
    • Authorization
      • Authorization
    • Notification Channel
      • SMS
      • Telegram
      • Email
  1. Notification API

Full Example

Configuring Notification Channels#

Before proceeding with the configuration, make sure you understand the fields that will change based on the notification channel (SMS, Telegram, or Email).

1. SMS Notification Example#

Field Breakdown:#

FieldTypeDescription
channelsarrayList of communication channels.
channelstring*Specifies that the notification will be sent via SMS.
tostring *The recipient's phone number (e.g., 0763407346).
metaDataobjectContains additional configuration options for SMS notifications.
retryOnFailureboolean*Indicates whether the system should retry sending the SMS if it fails.
subjectstring*The subject or title of the notification. Example: "OTP".
messagestring *The content of the SMS message to be sent to the recipient. Example: "Your code is 0092".
refIdstring*A reference ID for the notification. Example: "REF0092".
When retryOnFailure = true
1st Retry: If the notification fails, the system retry after 5 minutes.
2nd Retry: If it still fails, the system retry 15 minutes later (total 20 minutes from the first failure).
3rd Retry: If it fails again, the system retry 30 minutes later (total 50 minutes from the first failure).

Example Request:#

[
  {
    "channels": [
      {
        "channel": "sms",
        "to": "0763407346",
        "metaData": {
          "retryOnFailure": true
        }
      }
    ],
    "subject": "OTP",
    "message": "Your code is 0092",
    "refId": "REF0092"
  }
]

2. Telegram Notification Example#

Field Breakdown:#

FieldTypeDescription
channelsarrayList of communication channels.
channelstring*Specifies that the notification will be sent via Telegram.
tostring*The recipient’s Telegram ID (e.g., user_telegram_id).
metaDataobjectContains additional configuration options for Telegram.
retryOnFailureboolean*Indicates whether the system should retry sending the Telegram message if it fails.
parseModestring*Defines the message format (e.g., html for rich text formatting).
When retryOnFailure = true
1st Retry: If the notification fails, the system retry after 5 minutes.
2nd Retry: If it still fails, the system retry 15 minutes later (total 20 minutes from the first failure).
3rd Retry: If it fails again, the system retry 30 minutes later (total 50 minutes from the first failure).

Example Request:
[
  {
    "channels": [
      {
        "channel": "telegram",
        "to": "user_telegram_id",
        "metaData": {
          "retryOnFailure": true,
          "parseMode": "html"
        }
      }
    ],
    "subject": "OTP",
    "message": "Your code is 0092",
    "refId": "REF0092"
  }
]

3. Email Notification Example#

Field Breakdown:#

FieldTypeDescription
channelsarrayList of communication channels.
channelstring*Specifies that the notification will be sent via Email.
tostring*The recipient’s email address (e.g., example@example.com).
metaDataobjectContains additional configuration options for Email.
retryOnFailureboolean*Indicates whether the system should retry sending the email if it fails.
ccstringCarbon copy recipients
bccstringBlind carbon copy recipients
attachmentsstringURL to the file to be attached
separateToboolean*Whether to send the message separately to each recipient
When retryOnFailure = true
1st Retry: If the notification fails, the system retry after 5 minutes.
2nd Retry: If it still fails, the system retry 15 minutes later (total 20 minutes from the first failure).
3rd Retry: If it fails again, the system retry 30 minutes later (total 50 minutes from the first failure).

Example Request:
[
  {
    "channels": [
      {
        "channel": "email",
        "to": "example@example.com",
        "metaData": {
          "retryOnFailure": true,
          "cc": "",
          "bcc": "",
          "attachments": "file url",
          "separateTo": false
        }
      }
    ],
    "subject": "OTP",
    "message": "Your code is 0092",
    "refId": "REF0092"
  }
]
Previous
Overview
Next
Authorization