Webhooks
Payment Method
Notification kinds
The notification kind, returned by calling Kind on the notification object, reveals what triggered the webhook. The WebhookNotification.Kind for Payment Method webhooks will be one of the following:
WebhookKind.PAYMENTMETHODREVOKEDBYCUSTOMER
WebhookKind.PAYMENTMETHODCUSTOMERDATAUPDATED
The following table describes the conditions that trigger each kind of webhook.
Notification Type | Description |
---|---|
payment_method_revoked_by_customer |
A payment instrument that was previously enabled has been revoked by the customer or by Venmo. Currently this webhook will only be sent when a customer cancels their PayPal billing agreement, removes their Venmo connection , or when Venmo suspends the account due to suspicious activity on the customer's Venmo account. |
payment_method_customer_data_updated | A payment method's customer data has been updated. Currently, the only trigger for this webhook is when a customer updates their Enriched Customer Data in Venmo, provided that the merchant has enabled the feature. |
Attributes
Kind
enumThe kind of webhook notification.
Timestamp
dateThe UTC time at which the webhook was triggered.
RevokedPaymentMethodMetadata
Metadata referencing the revoked payment method.
Token
stringAn alphanumeric value that references a specific payment method stored in your Vault (used for recurring purchases).
CustomerId
stringA value representing an existing customer stored in your Vault. Use Customer: Findcall to look up a single customer.
RevokedPaymentMethod
PaymentMethodCustomerDataUpdatedMetadata
Metadata referencing the payment method whose customer data was updated.
Token
stringAn alphanumeric value that references a specific payment method stored in your Vault (used for recurring purchases).
PaymentMethod
The payment method including the customer data that was updated.
DatetimeUpdated
stringTimestamp of the customer data update.
EnrichedCustomerData
Collection of fields encompassing the Enriched Customer Data feature.
ProfileData
Collection of fields encompassing the customer's profile data.
Username
stringThe customer's Venmo username.
FirstName
stringThe customer's first name.
LastName
stringThe customer's last name.
PhoneNumber
stringThe customer's phone number.
Email
stringThe customer's email.
BillingAddress
Collection of fields encompassing the customer's billing address.
StreetAddress
stringThe billing address building number and street name.
ExtendedAddress
stringThe billing address additional information.
Locality
stringThe billing address locality.
Region
stringThe billing address region.
PostalCode
stringThe billing address postal code.
ShippingAddress
Collection of fields encompassing the customer's shipping address.
StreetAddress
stringThe shipping address building number and street name.
ExtendedAddress
stringThe shipping address additional information.
Locality
stringThe shipping address locality.
Region
stringThe shipping address region.
PostalCode
stringThe shipping address postal code.
FieldsUpdated
ArrayArray containing which fields from the data collection were updated, triggering the webhook.