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

# deal.moved

> Outbound webhook Klipy sends whenever a deal moves to a different pipeline stage, including a close into Closed Won or Closed Lost.

# `deal.moved`

## What this event means

`deal.moved` fires whenever a deal's stage changes to a different value within its pipeline. Internally, this is the `deal.stage_changed` event; it reaches your endpoint as `type: "deal.moved"`. A move that leaves the deal on its current stage does not fire this event.

Closing a deal is not a separate event. Moving a deal into its pipeline's Closed Won or Closed Lost stage fires this same `deal.moved` event. `data.newStageId` is set to the `CLOSED_WON` or `CLOSED_LOST` sentinel stage id in that case. See [`deal.closed`](https://klipy.ai/docs/developers/webhooks/deal-closed) for how to detect a close inside this event.

## Webhook `type`

`deal.moved`

## Internal source mapping

| Internal event | Trigger path |
| - | - |
| `deal.stage_changed` | A deal's stage is updated to a different value through the deal-update path, including a move into the `CLOSED_WON` or `CLOSED_LOST` synthetic closing stage. |

## Payload example

```json theme={null}
{
  "type": "deal.moved",
  "object": "event",
  "data": {
    "actor_name": "Alex Morgan",
    "deal_id": "dl_1a2b3c",
    "pipelineId": "pl_b4c5d6",
    "pipeline_id": "pl_b4c5d6",
    "pipeline": "Q4 Pipeline",
    "estimated_value": 18500,
    "currency": "USD",
    "deal_creation_date": "2026-04-20T09:21:11.122Z",
    "estimated_close_date": "2026-06-01T00:00:00.000Z",
    "is_private": false,
    "deal_name": "Acme Analytics - Expansion plan",
    "owner_name": "Alex Morgan",
    "from": "Opportunity",
    "to": "Proposal",
    "previousStageId": "st_opportunity",
    "newStageId": "st_proposal",
    "previousStageName": "Opportunity",
    "newStageName": "Proposal",
    "company": {
      "name": "Acme Analytics",
      "domain": "acmeanalytics.com"
    },
    "point_of_contact": {
      "first_name": "Jordan",
      "last_name": "Patel",
      "email": "jordan.patel@acmeanalytics.com",
      "title": "Head of Growth"
    }
  }
}
```

## Stage-transition fields

| Field | Description |
| - | - |
| `previousStageId` / `newStageId` | Stage ids the deal moved from and to. A closing move sets `newStageId` to `CLOSED_WON` or `CLOSED_LOST`. |
| `previousStageName` / `newStageName` | Display labels for the same transition. Falls back to the pipeline's Closed Won / Closed Lost label, or the raw stage id, when a name can't be resolved. |
| `from` / `to` | Same values as `previousStageName` / `newStageName`. Match on the `...StageId` fields instead, since pipelines can rename stage labels. |
| `pipelineId` / `pipeline_id` | The deal's pipeline id, duplicated under both keys. |

## Delivery and idempotency handling

* Deduplicate retried deliveries using the `svix-id` header, not a payload field.
* Do not key idempotency on `data.deal_id` alone. The same deal fires a new `deal.moved` event on every stage move, so `data.deal_id` repeats across many separate, legitimate events over a deal's lifetime.
* See [Webhook delivery, errors, and retries](https://klipy.ai/docs/developers/webhooks/fixes-errors-retries.md) for retry behavior and signature verification.

## Related links

* [`deal.closed`](https://klipy.ai/docs/developers/webhooks/deal-closed) — how to detect a close inside this event.
* [Webhook introduction](https://klipy.ai/docs/developers/webhooks/introduction.md)
* [Webhook event types](https://klipy.ai/docs/developers/webhooks/event-types.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.