# Customers Segment Update

> Triggered when a C-end customer segment is updated. Reference for the Shoplazza customers/segment_update webhook: request headers and payload fields.

**Webhook** customers/segment_update

Triggered when a C-end customer segment is updated.

Requires the `customer` [access scope](/docs/app/building-blocks/authentication/access-scopes). Minimum supported version: `202007`.

## Request headers

- `X-Shoplazza-Topic` string

  The event that triggered this delivery, e.g. orders/create

  **Example:** `orders/create`
- `X-Shoplazza-Hmac-Sha256` string

  Base64-encoded HMAC-SHA256 signature of the request body, generated with your app's Client Secret. Use it to verify the request comes from Shoplazza
- `X-Shoplazza-Shop-Domain` string

  The domain of the store that generated the event

  **Example:** `example.myshoplaza.com`
- `X-Shoplazza-Api-Version` string

  The API version used to serialize the payload

  **Example:** `2025-06`
- `X-Shoplazza-Deduplication-ID` string

  Deduplication ID for this delivery. It stays the same across retries of the same event—use it for idempotency

## Request body

**Schema | Example**

- `customer_segment` object

  - `id` string

    Customer segment ID
  - `name` string

    Segment name
  - `filter` string

    Segment filter conditions (embedded JSON string)
  - `state` string

    Segment status (normal = active, invalid = inactive)
  - `source_name` string

    Data source (admin = admin panel, api = API)
  - `app_name` string

    Name of the app that created the segment
  - `created_at` string

    Time when the segment was created
  - `updated_at` string

    Time when the segment was last updated

```json
{
  "customer_segment": {
    "id": "string",
    "name": "string",
    "filter": "string",
    "state": "string",
    "source_name": "string",
    "app_name": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}
```
