Notification kinds

The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhookNotification.getKind() for Sub-merchant Account webhooks will be one of the following:

  • WebhookNotification.Kind.SUB_MERCHANT_ACCOUNT_APPROVED
  • WebhookNotification.Kind.SUB_MERCHANT_ACCOUNT_DECLINED

The following table describes the conditions that trigger each kind of webhook.

Notification Type Description

A sub-merchant has been approved.


A sub-merchant has been declined.


getKind() enum

The kind of webhook notification.

getTimestamp() date

The UTC time at which the webhook was triggered.


A MerchantAccount object.

See the sub-merchant onboarding guide for additional attributes available on a sub_merchant_account_declined webhook.