Notification kinds

The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. For a Sub-merchant Account webhook, $webhookNotification->kind will be one of the following:

  • Braintree_WebhookNotification::SUB_MERCHANT_ACCOUNT_APPROVED
  • Braintree_WebhookNotification::SUB_MERCHANT_ACCOUNT_DECLINED

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

Notification Type Description
sub_merchant_account_approved

A sub-merchant has been approved.

sub_merchant_account_declined

A sub-merchant has been declined.

Attributes

kind enum

The kind of webhook notification.

timestamp date

The UTC time at which the webhook was triggered.

merchantAccount

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

Still Have Questions?

If you can’t find an answer, give us a call at 877.434.2894 or contact our Support team