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:
WebhookKind.GRANTORUPDATEDGRANTEDPAYMENTMETHODWebhookKind.RECIPIENTUPDATEDGRANTEDPAYMENTMETHODWebhookKind.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
KindenumThe kind of webhook notification.
TimestampdateThe UTC time at which the webhook was triggered.
RevokedPaymentMethodMetadataOnly present for granted payment instrument revoked webhooks.
TokenstringAn alphanumeric value that references a specific payment method stored in your Vault.
CustomerIdstringA value representing an existing customer's payment method stored in your Vault. Use
Customer: Find call to look up a single customer.RevokedPaymentMethodGrantedPaymentInstrumentUpdateOnly present for granted payment instrument updated webhooks.
GrantOwnerMerchantIdstringGrantRecipientMerchantIdstringPaymentMethodNonceobjectAn object containing the payment method nonce, which represents the updated payment instrument.
NoncestringA payment method nonce representing the updated payment instrument.
ConsumedbooleanA value that indicates if the payment method nonce has been used.
UpdatedFieldsArrayAn array of strings denoting all of the fields of the payment instrument that were updated.
See the Grant API webhooks guide for additional attributes specific to each webhook kind.