# Refund processed

Sent when a full or partial refund of a payment on the order is
recorded, whether you refunded with `PUT /payments/refund` or from the
Dime dashboard.
`payload.transaction` is the new refund transaction (`status`
`PARTIAL_REFUND` or `REFUND`). `payload.refund` summarises it and
names the original in `transaction_id`.
When the payment was switched to USD, the refund is in USD and
`payload.transaction.usd_conversion` is set: `amount` is the refunded
USD amount and `original_amount` is that part in the original currency
at the payment's rate.

Endpoint: POST refundProcessed
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: "refund.processed"

  - `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: "refund"

  - `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.transaction` (object, required)
    The transaction record, with internal fields removed. Every record is
named by its `token`, as in API responses; no database id is sent.
Where a block names your merchant it does so as `merchant`, holding
your merchant token. Other stored fields may be present. Rely on the
fields listed here; use `token` with `GET /transactions/{token}` for
the full v2 object.

  - `payload.transaction.token` (string | null)
    Use with `GET /transactions/{token}`.
    Example: txn_20261027_PBFpP02

  - `payload.transaction.status` (string)
    Enum: "COMPLETE", "FAILED", "PENDING", "AUTHORISED", "VOID", "REFUND", "PARTIAL_REFUND", "ABANDONED"

  - `payload.transaction.amount` (number)
    Example: 1100

  - `payload.transaction.final_amount` (number | null)
    Example: 1100

  - `payload.transaction.currency` (string)
    Enum: "USD", "JMD", "GBP", "EUR", "TTD", "BBD", "XCD", "GYD", "SRD"

  - `payload.transaction.authorized` (boolean)
    Example: true

  - `payload.transaction.captured` (boolean)
    Example: true

  - `payload.transaction.refunded` (boolean)
    Example: false

  - `payload.transaction.voided` (boolean | null)
    Example: false

  - `payload.transaction.settled` (boolean)
    Example: false

  - `payload.transaction.fees` (number | null)
    Total processing fee, once calculated.
    Example: null

  - `payload.transaction.error_code` (string | null)
    Example: null

  - `payload.transaction.error_message` (string | null)
    Example: null

  - `payload.transaction.reference_transaction_id` (string | null)
    On a refund, capture or void, the original transaction's `token`.
    Example: null

  - `payload.transaction.entity_type` (string)
    Example: ORDER

  - `payload.transaction.entity_id` (string | null)
    The `token` of what the transaction settled against: the order's
when `entity_type` is `ORDER`, the invoice's for `INVOICE`, the
product's for `PRODUCT`. `null` for other types.
    Example: ord_20261027_V1StGXR

  - `payload.transaction.customer_id` (string | null)
    The customer's `token`, when the transaction has a customer.
    Example: null

  - `payload.transaction.bridge_merchant_id` (string | null)
    Dime Bridge payments only. The linked merchant's `token`.
    Example: null

  - `payload.transaction.bridge_marketplace_merchant_id` (string | null)
    Dime Bridge payments only. The marketplace's merchant token.
    Example: null

  - `payload.transaction.usd_preferred` (boolean | null)
    `true` when the order opted in to USD preference. It does not mean
the payment was switched; check `usd_conversion`.
    Example: null

  - `payload.transaction.usd_conversion` (object | null)
    Set only when a USD-preferred payment was actually switched to USD. `currency` and `amount` on the transaction are then USD, and this object carries what the order originally asked for. `null` means the payment stayed in the order currency, even if the order has `usd_preferred: true`.

  - `payload.transaction.usd_conversion.applied` (boolean)
    Example: true

  - `payload.transaction.usd_conversion.original_currency` (string)
    Example: TTD

  - `payload.transaction.usd_conversion.original_amount` (number)
    Example: 757.72

  - `payload.transaction.usd_conversion.currency` (string)
    Example: USD

  - `payload.transaction.usd_conversion.amount` (number)
    Example: 112.83

  - `payload.transaction.usd_conversion.fx_rate` (number | null)
    USD per unit of the original currency, as applied.
    Example: 0.14890725

  - `payload.transaction.source_details` (object | null)

  - `payload.transaction.source_details.last_four_digits` (string | null)
    Example: 4242

  - `payload.transaction.source_details.card_scheme` (string | null)
    Example: visa

  - `payload.transaction.source_details.cardholder_name` (string | null)
    Example: Jane Chen

  - `payload.transaction.split` (array | null)
    Deprecated v1 Dime Bridge split only. Per-merchant `fee`, `gross_amount` and `net_amount`. v2 Bridge payments carry their breakdown under `metadata.bridge`; use `GET /transactions/{token}` for the `bridge` object.

  - `payload.transaction.order` (object)
    The order record, with internal fields removed. `customer_id` and
`subscription_id`, when present, hold tokens.

  - `payload.transaction.order.token` (string)
    Example: ord_20261027_V1StGXR

  - `payload.transaction.order.status` (string)
    Example: COMPLETE

  - `payload.transaction.order.origin_id` (string)
    The `id` you sent when creating the order.
    Example: ac58293d-a2c5-4979-8ef7-f3d4a9354b63

  - `payload.transaction.order.metadata` (object)
    The order's stored settings. The `metadata` you sent is under
`details`; the other keys are Dime's.

  - `payload.transaction.order.metadata.details` (object)
    Example: {"cart_id":"cart_8812"}

  - `payload.refund` (object, required)

  - `payload.refund.refund_id` (string)
    The refund transaction's `token`.
    Example: txn_20261027_3CqXuOw

  - `payload.refund.transaction_id` (string)
    The refunded transaction's `token`.
    Example: txn_20261027_PBFpP02

  - `payload.refund.amount` (number)
    Example: 500

  - `payload.refund.fully_refunded` (boolean)
    Example: false

  - `payload.refund.subscription_id` (string | null)
    The subscription's `token`, when the refunded payment was a subscription charge.
    Example: null

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

## Request examples:

  - `A 500 JMD partial refund of a 1100 JMD sale` (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`.

