Grant API
Notification kinds
The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhook_notification.kind for Grant API webhooks will be one of the following:
braintree.WebhookNotification.Kind.GrantorUpdatedGrantedPaymentMethodbraintree.WebhookNotification.Kind.RecipientUpdatedGrantedPaymentMethodbraintree.WebhookNotification.Kind.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
kindenumtimestampdaterevoked_payment_method_metadataOnly present for granted payment instrument revoked webhooks.
tokenstringcustomer_idstringCustomer: Find call to look up a single customer.revoked_payment_methodgranted_payment_instrument_updateOnly present for granted payment instrument updated webhooks.
grant_owner_merchant_idstringgrant_recipient_merchant_idstringpayment_method_nonceobjectnoncestringconsumedbooleanupdated_fieldsArraySee the Grant API webhooks guide for additional attributes specific to each webhook kind.