KYB Email Notification Webhook Events


Overview

During specific business scenarios, the KYB system needs to send email notifications to end users. When a customer has enabled the Webhook email notification feature, the system will not send emails directly. Instead, it pushes email-related information to the customer via Webhook events, allowing the customer to handle the email delivery on their own.

This document describes the business flow and payload structure for the following two Webhook events:

Event NameEvent IdentifierDescription
IDV Email Notificationbusiness.idv.emailEmail notifications during the Identity Verification (IDV) process
Questionnaire Email Notificationbusiness.qnre.emailEmail notifications during the Questionnaire process

1. IDV Email Notification Event (business.idv.email)

Business Scenarios

IDV (Identity Verification) is the step in the KYB process where individuals undergo identity checks. The system needs to notify relevant parties at the following points:

  1. Verification Request — After the system generates a verification link, it notifies the individual to complete the verification
  2. Verification Passed — After identity verification is approved, the individual is notified of the result
  3. Verification Failed — After identity verification is rejected, the individual is notified of the result

emailType Enum

emailTypeMeaningTrigger
REQUEST_IDVRequest identity verificationAfter the system generates an IDV link, notifying the individual to complete verification
NOTIFY_IDV_SUCCESSVerification passedWhen the IDV check result is PASS
NOTIFY_IDV_FAILEDVerification failedWhen the IDV check result is FAIL

Payload Fields

FieldTypePresenceDescription
emailStringAlwaysThe email address of the individual being verified (recipient)
directUrlStringOnly for REQUEST_IDVThe identity verification link for the individual to access the verification page
expireHourIntegerOnly for REQUEST_IDVLink validity period in hours; the link becomes invalid after expiration
emailTypeStringAlwaysEmail type identifier, see enum table above

Payload Examples

Verification Request:

{
  "email": "[email protected]",
  "directUrl": "https://kyb.example.com/idv?id=xxx&token=yyy",
  "expireHour": 72,
  "emailType": "REQUEST_IDV"
}

Verification Result Notification:

{
  "email": "[email protected]",
  "emailType": "NOTIFY_IDV_SUCCESS"
}

2. Questionnaire Email Notification Event (business.qnre.email)

Business Scenarios

The Questionnaire is the step in the KYB process where information about the company and related individuals is collected. The system needs to notify relevant parties at the following points:

  1. Form Filling Notification — After the system generates a questionnaire link, it notifies the respondent to fill out the form
  2. OTP Verification Code — When the respondent submits the form, the system sends an OTP code to verify their email identity
  3. Submission Confirmation — After successful form submission, a confirmation notification is sent to the respondent

emailType Enum

emailTypeMeaningTrigger
FORM_NOTIFICATIONForm filling notificationAfter the system generates a questionnaire link, notifying the respondent to fill it out
OTP_VERIFICATIONOTP verification codeWhen the respondent requests email verification during form submission
SUBMISSION_CONFIRMATIONSubmission confirmationAfter the form is successfully submitted

Payload Fields

FieldTypePresenceDescription
emailStringAlwaysThe email address of the respondent (recipient)
otpCodeStringOnly for OTP_VERIFICATIONA 6-digit numeric verification code for email identity verification
urlStringOnly for FORM_NOTIFICATIONThe questionnaire link for the respondent to access the form page
emailTypeStringAlwaysEmail type identifier, see enum table above

Payload Examples

Form Filling Notification:

{
  "email": "[email protected]",
  "url": "https://kyb.example.com/form?token=abc123",
  "emailType": "FORM_NOTIFICATION"
}

OTP Verification Code:

{
  "email": "[email protected]",
  "otpCode": "385721",
  "emailType": "OTP_VERIFICATION"
}

Submission Confirmation:

{
  "email": "[email protected]",
  "emailType": "SUBMISSION_CONFIRMATION"
}

3. Business Flow Diagrams

IDV Email Notification Flow

flowchart TD
    A[Initiate IDV Check] --> B[Generate Verification Link]
    B --> C{IDV Webhook<br/>Enabled?}
    C -->|Yes| D[Push Webhook Event<br/>emailType: REQUEST_IDV]
    C -->|No| E[System Sends<br/>Verification Request Email]
    D --> F[Customer Sends Email<br/>to Individual]
    E --> F2[Individual Receives Email]
    F --> G[Individual Clicks Link<br/>and Completes Verification]
    F2 --> G
    G --> H[System Retrieves<br/>Verification Result]
    H --> I{Verification<br/>Passed?}
    I -->|Yes| J{IDV Webhook<br/>Enabled?}
    I -->|No| K{IDV Webhook<br/>Enabled?}
    J -->|Yes| L[Push Webhook Event<br/>emailType: NOTIFY_IDV_SUCCESS]
    J -->|No| M[System Sends<br/>Success Notification Email]
    K -->|Yes| N[Push Webhook Event<br/>emailType: NOTIFY_IDV_FAILED]
    K -->|No| O[System Sends<br/>Failure Notification Email]

Questionnaire Email Notification Flow

flowchart TD
    A[Create Questionnaire Task] --> B[Generate Form Link]
    B --> C{Questionnaire Webhook<br/>Enabled?}
    C -->|Yes| D[Push Webhook Event<br/>emailType: FORM_NOTIFICATION]
    C -->|No| E[System Sends<br/>Form Notification Email]
    D --> F[Customer Sends Email<br/>to Respondent]
    E --> F2[Respondent Receives Email]
    F --> G[Respondent Clicks Link<br/>and Opens Form]
    F2 --> G
    G --> H[Respondent Fills Out Form<br/>and Requests Submission]
    H --> I{Questionnaire Webhook<br/>Enabled?}
    I -->|Yes| J[Push Webhook Event<br/>emailType: OTP_VERIFICATION]
    I -->|No| K[System Sends<br/>OTP Verification Email]
    J --> L[Customer Sends<br/>OTP Code]
    K --> L2[Respondent Receives<br/>Verification Code]
    L --> M[Respondent Enters Code<br/>and Completes Submission]
    L2 --> M
    M --> N{Questionnaire Webhook<br/>Enabled?}
    N -->|Yes| O[Push Webhook Event<br/>emailType: SUBMISSION_CONFIRMATION]
    N -->|No| P[System Sends<br/>Confirmation Email]

4. General Notes

  • Activation Requirement: To use webhook email notifications, please contact our support team to enable the appropriate KYB verification level for your account. Once configured, email notifications will be delivered via the webhook flow. Otherwise, the system will continue sending emails automatically.
  • Empty Fields Are Omitted: When a field is not applicable to the current emailType, it will not appear in the payload (rather than being returned as null).
  • Event Delivery Timing: Events are pushed in real-time when the business action occurs. Customers should send the corresponding emails promptly upon receiving the event to ensure a good user experience.