charge.declined
A card charge was declined.
Sent as POST to each of your endpoints subscribed to charge.declined. 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 (charge.declined), version, occurred_at, merchant_id and data.
| Field | Type | Required | Description |
|---|---|---|---|
data.charge_id |
string | yes | |
data.merchant_id |
string | yes | |
data.order_id |
string or null | no | |
data.subscription_id |
string or null | no | |
data.customer_ref |
string or null | no | |
data.amount_cents |
integer | yes | |
data.currency |
string | yes | |
data.nmi_txn_id |
string or null | no | |
data.provider_txn_id |
string or null | no | |
data.cof_intent |
string | yes | |
data.card |
object | no | |
data.captured_at |
string or null (date-time) | no | |
data.idempotency_key |
string | yes | |
data.decline_code |
string | yes | |
data.decline_category |
string | yes | |
data.retryable |
boolean | no | whether a recurring engine may retry the decline, Payments' Outcome::retryable |
data.response_text |
string or null | no | |
data.buyer_email |
string or null | no | |
data.request_currency |
string or null | no | The currency the platform sent to the processor; currency is the one the processor confirmed |
data.request_amount_cents |
integer or null | no | The amount sent to the processor, in the request currency's smallest unit |
data.processor_rate |
string or null | no | The processor's own conversion rate as answered, when it converted |
data.processor_rate_ref |
string or null | no | The processor's reference of that rate |
data.fx_bearer |
string or null (merchant, platform, ``) |
no | Who bears the exchange difference if the processor settles in another currency than the charged one, fixed at the sale. |
Example
{
"id": "evt_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
"type": "charge.declined",
"version": 1,
"occurred_at": "2026-10-21T14:05:00.000Z",
"merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
"data": {
"charge_id": "chg_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
"merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
"order_id": "ord_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
"subscription_id": null,
"amount_cents": 3139,
"currency": "USD",
"nmi_txn_id": null,
"provider_txn_id": null,
"cof_intent": "cit_hosted",
"card": {
"brand": "visa",
"bin": "411111",
"last4": "1111",
"exp_month": 12,
"exp_year": 2030,
"payment_method_id": "pm_01HZX5Y3V8N2K7QJ4R9T6B3M1C"
},
"captured_at": null,
"idempotency_key": "cks_01HZX5Y3V8N2K7QJ4R9T6B3M1C:1",
"decline_code": "200",
"decline_category": "do_not_honor",
"retryable": true,
"response_text": "DECLINE",
"buyer_email": "buyer@example.test",
"request_currency": "USD",
"request_amount_cents": 3139,
"processor_rate": null,
"processor_rate_ref": null
}
}
Verify the signature before trusting the body and deduplicate on X-Webhook-Delivery: see Webhooks.