# Customer events

Sent when a customer record changes.
- `customer.created`
: a customer was created with
`POST /customers`
,

or by an order or charge that named a new billing or shipping

person.
- `customer.updated`
:
`PUT /customers/{token}`
.
- `customer.deleted`
:
`DELETE /customers/{token}`
.

`payload.order_id` is the `token` of the order that created the
customer, or `null`.

Endpoint: POST customerEvent
Security: ClientKey, SecretKey

## Header parameters:

  - `X-Dime-Signature` (string, required)
    `v1=` followed by the hex HMAC-SHA256 of the raw body, keyed with the endpoint's `signing_secret`.

  - `X-Dime-Signature-Version` (string, required)
    Signing scheme. Always `v1`.

  - `X-Dime-Event-Id` (string, required)
    The body's `event_id`.

  - `X-Dime-Event-Type` (string, required)
    The body's `event_type`.

  - `X-Dime-Attempt` (string, required)
    The attempt number, `1` for the first and up to `9` with retries.

## Request fields (application/json):

  - `event_id` (string, required)
    Unique per event, and the same on every redelivery and replay of it. Use it to discard duplicates.
    Example: evt_V1StGXR8Z5jdHi6BmyT2

  - `event_type` (string, required)
    Enum: "customer.created", "customer.updated", "customer.deleted"

  - `occurred_at` (string, required)
    When Dime sent the event. Events can arrive out of order; use this to order them.
    Example: 2026-10-27T15:04:07.112Z

  - `owner_type` (string, required)
    Enum: "merchant"

  - `owner_id` (string | null, required)
    Your merchant token.
    Example: m82yalYupLIdpAz

  - `addon_subscription_id` (null)
    Always `null`.
    Example: null

  - `resource_type` (string, required)
    Enum: "customer"

  - `resource_id` (string | null, required)
    The `token` of the record the event is about: a transaction's
for `payment` and `refund`, otherwise the token of the kind named
by `resource_type`.
    Example: txn_20261027_PBFpP02

  - `payload` (object, required)

  - `payload.order_id` (string | null)
    The `token` of the order that created the customer, when there is one.
    Example: ord_20261027_V1StGXR

  - `payload.customer` (object, required)
    The customer record. Use `token` with `GET /customers/{token}`.

  - `payload.customer.token` (string)
    Example: cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW

  - `payload.customer.first_name` (string | null)
    Example: Michael

  - `payload.customer.last_name` (string | null)
    Example: Scott

  - `payload.customer.email` (string | null)
    Example: mscott@example.com

  - `payload.customer.phone` (string | null)
    Example: +18765551234

  - `payload.customer.company` (string | null)
    Example: null

  - `payload.customer.is_active` (boolean)
    Example: true

  - `payload.customer.created_at` (string | null)
    Example: 2026-10-27T15:04:05.000Z

  - `signature_version` (string, required)
    Enum: "v1"

## Request examples:

  - `Created by an order` (unknown)

## Response 200:

  - `200` (unknown)
    Return any `2xx` within 7 seconds to acknowledge. Otherwise Dime
retries automatically for about 3 days; see **Webhooks guide**.
Replay a delivery sooner, or after it has `FAILED`, with
`POST /webhook-events/{token}/replay`.

