Skip to Content
Docs
Customers

Customer events

WEBHOOKcustomer.*

Pay.com sends these events to your webhook endpoints when a customer changes. Each one carries the customer as it was at that moment. To add an endpoint and check signatures, see Webhooks.

Events

customer.created
A new customer was created.
customer.updated
A customer's details were updated.
customer.deleted
The customer was deleted.
customer.default_source.changed
A customer's default payment method changed.

Each event

idstring
The event’s id, starting evt_.
resourcestring
Always event.
typestring
One of the events above, such as customer.created.
createdstring
When it happened, in ISO 8601 (UTC).
dataobject
The customer as it was at that moment, with the attributes Retrieve a customer returns.
Was this page helpful?