Notification kinds

The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhook_notification.kind for Dispute webhooks will be one of the following:

  • Braintree::WebhookNotification::Kind::DisputeOpened
  • Braintree::WebhookNotification::Kind::DisputeLost
  • Braintree::WebhookNotification::Kind::DisputeWon
  • Braintree::WebhookNotification::Kind::DisputeAccepted
  • Braintree::WebhookNotification::Kind::DisputeExpired
  • Braintree::WebhookNotification::Kind::DisputeDisputed

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

Notification Type Description
dispute_opened

A dispute is opened.

dispute_won

A dispute is won.

dispute_lost

A dispute is lost.

dispute_accepted

A dispute is accepted.

dispute_expired

A dispute is expired.

dispute_disputed

A dispute is disputed.

Attributes

kind enum

The kind of webhook notification.

timestamp date

The UTC time at which the webhook was triggered.

dispute object

A Dispute object.

transaction_details

Deprecated. Please use transaction on the Dispute object instead.