Early bird discounts live! Claim your offer

payment.failed

Provider rejects a charge.

When this fires

A payment provider rejects a charge — invalid card, insufficient funds, gateway risk, expired source. Emitted by Stripe, CeyPay, CoinPayments, Paystack, Razorpay and Skrill. PayPal does not emit payment.failed — a failed PayPal charge surfaces only through the subscription-level events.

Required ability

project-subscription:view — token must carry this at mint time to subscribe an endpoint to this event.

Payload

{
  "id": "evt_01HX...",
  "type": "payment.failed",
  "created_at": "2026-05-18T10:05:00Z",
  "api_version": "2026-05-01",
  "project_id": "7f3d1c92-8b45-4e6a-9d21-5c8e0a4b6f13",
  "data": {
    "subscription_id": "5b7e2d40-1a86-4c39-97f2-e83d0b16c5a4",
    "plan_id": "c4e82f16-93a7-4d5b-b81c-6e0f27a94d3b",
    "subscriber_id": "2a91c4e7-6f38-4b52-8e0d-9c1a7b3f5d80",
    "provider": "stripe",
    "external_payment_id": "pi_3Nxy..",
    "reason": "Your card was declined.",
    "amount": "29.00",
    "currency": "USD"
  }
}

Field reference

FieldTypeNotes
idstring ULIDUnique event id, prefixed evt_. Use for idempotent processing.
typestringAlways payment.failed for this event.
created_atISO 8601 timestampServer-side emission time.
api_versionstringWebhook API contract version.
project_idstring UUIDProject this event belongs to.
data.subscription_idstring UUIDSubscription identifier.
data.plan_idstring UUIDPlan the subscription is on.
data.subscriber_idstring UUIDSubscriber's project-scoped user id.
data.providerstringProvider slug.
data.external_payment_idstring | nullProvider charge id when one was created; null for pre-charge rejections.
data.reasonstringHuman-readable rejection reason, mostly free text from the provider (Razorpay sends the fixed slug razorpay_halted, Stripe falls back to stripe_invoice_failed). Not a stable enum — do not branch on its exact value.
data.amountstring | undefinedStripe only. Attempted amount in major units, as a decimal string. Omitted entirely by the other providers — never sent as null.
data.currencystring | undefinedStripe only. Uppercase ISO 4217 code. Omitted entirely by the other providers — never sent as null.

Caveats

  • The paired subscription event differs by provider: Razorpay emits subscription.past_due alongside; CeyPay, CoinPayments and Skrill instead cancel the subscription and emit subscription.cancelled; Paystack emits nothing alongside; for Stripe, subscription.past_due arrives separately when Stripe next syncs the subscription's status. Do not assume a subscription event accompanies every payment.failed.
  • A single billing cycle can produce multiple payment.failed events as the provider retries.

How is this guide?

On this page

Subscriby is a product designed by you — for you.

No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request