# Payment events

Sent for every change to a payment on an order created through this
API.
- `payment.authorised`
: funds are held, after
`POST /payments/auth`
.
- `payment.succeeded`
: funds are captured, after a hosted-page

payment,
`POST /payments/sale`
 or
`PUT /payments/capture`
. The

first payment on a subscription order is reported as

`subscription.created`
 instead.
- `payment.failed`
: a payment, authorisation, capture or void was

declined or errored.
- `payment.voided`
: an authorisation was voided with

`PUT /payments/void`
.
- `payment.abandoned`
: a hosted-page order that never reached the card

processor was closed after an hour unpaid.
- `payment.settled`
: the captured payment was credited to your Dime

wallet, shortly after capture.

On `payment.failed`, `payload.transaction` carries `error_code` and
`error_message`.
**USD preference.** `payload.transaction.usd_preferred` is `true` when
the order opted in. That alone does not mean the payment was switched:
`payload.transaction.usd_conversion` is an object when it was charged
and settled in USD, and `null` when it stayed in the order currency.
When it is set, `currency` and `amount` are the USD charge and
`order.currency` and `order.total` are still what you asked for. Every
payment event carries these fields, so you do not need to read the
transaction back.

Endpoint: POST paymentEvent
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: "payment.authorised", "payment.succeeded", "payment.failed", "payment.voided", "payment.abandoned", "payment.settled"

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

  - `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"}

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

## Request examples:

  - `Succeeded after a sale` (unknown)

  - `Succeeded, and switched to USD by USD preference` (unknown)

  - `Failed after a declined 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`.

