Disbursement
Notification kinds
The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhookNotification.getKind() for Disbursement webhooks will be one of the following:
WebhookNotification.Kind.DISBURSEMENT
WebhookNotification.Kind.TRANSACTIONDISBURSED
The following table describes the conditions that trigger each kind of webhook.
Notification Type | Description |
---|---|
disbursement | Braintree-funded merchant accounts only |
transaction_disbursed | Braintree-funded merchant accounts only |
Attributes
getKind()
enumThe kind of webhook notification.
getTimestamp()
dateThe UTC time at which the webhook was triggered.
getDisbursement()
getId()
stringThe id of the disbursement.
getAmount()
decimalThe amount of the disbursement.
getDisbursementDate()
dateThe date the funds were disbursed.
getDisbursementType()
stringThe type of disbursement (debit/credit).
getTransactionIds()
ArrayThe ids of all transactions associated with this disbursement.
getMerchantAccount()
The merchant account the disbursement corresponds to. You will only receive a disbursement webhook if Braintree manages funding for the selected merchant account. You'll know this is the case if Disbursement Summary reports are available for that account.
getRetry()
booltrue
if the disbursement previously failed and this webhook is for a second attempt. false
if this is the first time this disbursement has been attempted.
getSuccess()
booltrue
if the disbursement was successful.