# dispute.opened

A chargeback or retrieval was opened against a charge.

Sent as `POST` to each of your endpoints subscribed to `dispute.opened`. Verify `X-Webhook-Signature` before trusting the body; `X-Webhook-Delivery` is the same across retries of one event, so use it to deduplicate.

## Headers

| Header | Value |
|---|---|
| `X-Webhook-Signature` | `t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the endpoint secret>`. Recompute over the raw body, compare in constant time and reject when \|now - t\| is above 300 seconds. |
| `X-Webhook-Event` | The event type, the same as `type` in the body. |
| `X-Webhook-Delivery` | The event id (`evt_…`), stable across retries and replays of the same event. |

## Payload

The body is the delivery envelope: `id`, `type` (`dispute.opened`), `version`, `occurred_at`, `merchant_id` and `data`.

| Field | Type | Required | Description |
|---|---|---|---|
| `data.dispute_id` | string | yes |  |
| `data.merchant_id` | string | yes |  |
| `data.store_id` | string or null | no | The store of the charge the event is about; absent on older events |
| `data.charge_id` | string | yes |  |
| `data.order_id` | string or null | no |  |
| `data.source` | string (`chargeback`, `rdr`, `ethoca`) | yes |  |
| `data.reason_code` | string or null | no |  |
| `data.amount_cents` | integer | yes |  |
| `data.currency` | string | no | The currency of amount_cents and fee_cents (the disputed charge's); absent on an event from before, read as the home currency |
| `data.fee_cents` | integer | yes |  |
| `data.status` | string | yes |  |
| `data.outcome` | string or null | no |  |
| `data.evidence_due_at` | string or null (date-time) | no |  |
| `data.occurred_at` | string (date-time) | yes |  |
| `data.fraud` | boolean | no | The dispute carries a network fraud reason code, or staff marked it fraud |
| `data.provider_case_id` | string or null | no | The processor's chargeback id |
| `data.merchant_evidence_due_at` | string or null (date-time) | no | The merchant's evidence deadline (3 business days) |
| `data.over_disputed` | boolean | no | The charge's open and lost disputes exceed its amount |

## Example

```json
{
    "id": "evt_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "type": "dispute.opened",
    "version": 1,
    "occurred_at": "2026-10-21T14:05:00.000Z",
    "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "data": {
        "dispute_id": "dsp_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "store_id": "sto_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "charge_id": "chg_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "order_id": "ord_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "source": "chargeback",
        "reason_code": "10.4",
        "amount_cents": 3139,
        "fee_cents": 1500,
        "status": "open",
        "outcome": null,
        "evidence_due_at": "2026-10-20T00:00:00.000Z",
        "occurred_at": "2026-10-08T12:00:00.000Z",
        "fraud": true
    }
}
```

Verify the signature before trusting the body and deduplicate on `X-Webhook-Delivery`: see [Webhooks](http://docs.staging.regoria.com/guides/webhooks).
