> ## Documentation Index
> Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer changed

> Fired when a customer is created or updated, with the previous state on updates.

This event is fired when a customer is created or updated. `changeType` is `ADDED` or `UPDATED`; `previousCustomer` is null on `ADDED`. Deletions are not reported here, see [Customer deleted](/docs/webhooks/customer-deleted).

## Schema

[**View JSON Schema →**](https://core-api.uk.plain.com/webhooks/schema/latest.json)

Example:

<Snippet file="webhooks/customer-changed.mdx" />

<Snippet file="webhooks/sdk-usage.mdx" />
