Paynote sends webhook events when customer profiles are created or updated. These events let your application stay in sync with changes to customer records in real time.
Event Types
Event Name | Description |
---|---|
user.created | Triggered when a new customer is successfully created. Occurs after a POST request to the Create a Customer endpoint. |
user.changed | Triggered when an existing customer's information is updated. Occurs after a POST request to the Update a Customer endpoint. |
Example Payloads
user.created
user.created
{
"event": "user.created",
"customer_id": "c039ff1a-6a41-4fc5-801a-cc7497382b17",
"email": "[email protected]",
"created_at": "2024-06-10T09:02:11Z"
}
user.changed
user.changed
{
"event": "user.changed",
"customer_id": "c039ff1a-6a41-4fc5-801a-cc7497382b17",
"changes": {
"email": {
"old": "[email protected]",
"new": "[email protected]"
}
},
"updated_at": "2024-06-12T14:25:37Z"
}