Grant API
Notification kinds
The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The $webhookNotification->kind for Grant API webhooks will be one of the following:
BraintreeWebhookNotification::GRANTORUPDATEDGRANTEDPAYMENTMETHODBraintreeWebhookNotification::RECIPIENTUPDATEDGRANTEDPAYMENTMETHODBraintreeWebhookNotification::GRANTEDPAYMENTMETHODREVOKED
The following table describes the conditions that trigger each kind of webhook.
| Notification Type | Description |
|---|---|
granted_payment_instrument_update | A payment instrument that was previously granted to another Braintree merchant has been updated. The |
granted_payment_instrument_revoked | A payment instrument that was previously granted has been revoked by the grantor. |
Attributes
kindenumtimestampdaterevokedPaymentMethodMetadataOnly present for granted payment instrument revoked webhooks.
tokenstringcustomerIdstringCustomer: Find call to look up a single customer.revokedPaymentMethodgrantedPaymentInstrumentUpdateOnly present for granted payment instrument updated webhooks.
grantOwnerMerchantIdstringgrantRecipientMerchantIdstringpaymentMethodNonceobjectnoncestringconsumedbooleanupdatedFieldsArraySee the Grant API webhooks guide for additional attributes specific to each webhook kind.