> ## Documentation Index
> Fetch the complete documentation index at: https://rain-sandbox-trial.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# dispute.chargebackCreated

<Update label="v1.1.0" description="minor update">
  ### currency field added

  | Field      | Type                | Description                                                      |
  | ---------- | ------------------- | ---------------------------------------------------------------- |
  | `currency` | `string` (optional) | The chargeback currency, lowercase ISO-4217 (for example, `usd`) |
</Update>

<Update label="v1.0.0" description="initial release">
  ### dispute.chargebackCreated webhook

  Added the `dispute.chargebackCreated` webhook. Rain sends this webhook after it processes a dispute reimbursement, and it links the chargeback transaction to the original dispute.

  #### Payload Fields

  | Field                            | Type                | Description                                  |
  | -------------------------------- | ------------------- | -------------------------------------------- |
  | `id`                             | `string`            | Webhook ID                                   |
  | `resource`                       | `string`            | Always `"dispute"`                           |
  | `action`                         | `string`            | Always `"chargebackCreated"`                 |
  | `version`                        | `string`            | The webhook version                          |
  | `body.id`                        | `string`            | The dispute ID                               |
  | `body.disputeId`                 | `string`            | The dispute ID                               |
  | `body.transactionId`             | `string`            | The ID of the new chargeback transaction     |
  | `body.originalTransactionId`     | `string`            | The ID of the original disputed transaction  |
  | `body.amount`                    | `number`            | Chargeback amount in cents (always negative) |
  | `body.originalTransactionAmount` | `number`            | Original transaction amount in cents         |
  | `eventReceivedAt`                | `string` (optional) | ISO-8601 timestamp                           |

  #### Example Payload

  ```json theme={null}
  {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "resource": "dispute",
      "action": "chargebackCreated",
      "version": "1.0.0",
      "body": {
          "id": "dispute_abc123",
          "disputeId": "dispute_abc123",
          "transactionId": "txn_chargeback_xyz789",
          "originalTransactionId": "txn_original_def456",
          "amount": -5000,
          "originalTransactionAmount": 5000
      },
      "eventReceivedAt": "2026-02-18T12:00:00.000Z"
  }
  ```

  <Info>
    The `amount` field is always negative, representing a credit to the account. Use this webhook to link chargeback transactions back to their originating disputes.
  </Info>
</Update>
