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

# Events

Below is the list of events that are sent to your webhook endpoint.

### Customer

The table below lists the events that are available for customer.
The received event will be in JSON format.

| Event Name         | Description                                         |
| ------------------ | --------------------------------------------------- |
| `customer.created` | This event is triggered when a customer is created. |
| `customer.updated` | This event is triggered when a customer is updated. |
| `customer.deleted` | This event is triggered when a customer is deleted. |

* `customer.created`

```json theme={null}
{
  "id": "webhook_123",
  "event": "customer.created",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "customer_123"
  }
}
```

* `customer.updated`

```json theme={null}
{
  "id": "webhook_123",
  "event": "customer.updated",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "customer_123"
  }
}
```

* `customer.deleted`

```json theme={null}
{
  "id": "webhook_123",
  "event": "customer.deleted",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "customer_123"
  }
}
```

When a customer's contact or address is created, updated, or deleted, a `customer.updated` event is sent with the customer id in `data.id`.

### Customer Payment Method

The table below lists the events that are available for customer payment method.
The received event will be in JSON format.

| Event Name                        | Description                                                        |
| --------------------------------- | ------------------------------------------------------------------ |
| `customer.payment_method.created` | This event is triggered when a customer payment method is created. |
| `customer.payment_method.updated` | This event is triggered when a customer payment method is updated. |
| `customer.payment_method.deleted` | This event is triggered when a customer payment method is deleted. |

* `customer.payment_method.created`

```json theme={null}
{
  "id": "webhook_123",
  "event": "customer.payment_method.created",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "customer_payment_method_123"
  }
}
```

* `customer.payment_method.updated`

```json theme={null}
{
  "id": "webhook_123",
  "event": "customer.payment_method.updated",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "customer_payment_method_123"
  }
}
```

* `customer.payment_method.deleted`

```json theme={null}
{
  "id": "webhook_123",
  "event": "customer.payment_method.deleted",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "customer_payment_method_123"
  }
}
```

### Order

The table below lists the events that are available for order.
The received event will be in JSON format.

| Event Name      | Description                                       |
| --------------- | ------------------------------------------------- |
| `order.created` | This event is triggered when an order is created. |
| `order.updated` | This event is triggered when an order is updated. |

* `order.created`

```json theme={null}
{
  "id": "webhook_123",
  "event": "order.created",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "order_123"
  }
}
```

* `order.updated`

```json theme={null}
{
  "id": "webhook_123",
  "event": "order.updated",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "data": {
    "id": "order_123"
  }
}
```
