See all services → Shopify Plus Partner
API Developer

Tell Blocked Cards Apart From Failed Subscription Retries

Admin API 2027-01 adds RETRY_DECLINED to the payment method revocation reasons, separating a processor that has blocked further charges from a card that simply ran out of retries. Dunning logic can finally branch on the difference.

Executive summary

What changed

When Shopify stops charging a saved payment method after repeated failures, it records a reason on CustomerPaymentMethod.revokedReason. Until now, two genuinely different outcomes shared one value. A card that failed several times in a row and a card the processor had explicitly blocked both came back as TOO_MANY_CONSECUTIVE_FAILURES.

On API version 2027-01, the second case gets its own value. RETRY_DECLINED means the processor has blocked further retry attempts against that saved payment method, and a different payment method is required. On 2026-10 and earlier versions, those same revocations keep returning TOO_MANY_CONSECUTIVE_FAILURES, so nothing breaks until you move a version.

The customer_payment_methods/revoke webhook payload is unchanged. The webhook remains a trigger, not a source of truth: you still query revokedReason afterwards to learn which of the two reasons applied.

Why it matters

Conflating the two reasons costs money in both directions. TOO_MANY_CONSECUTIVE_FAILURES often describes a recoverable situation, such as a card that was temporarily short of funds, where patience and a retry window genuinely win the renewal back. RETRY_DECLINED describes a closed door. Retrying it accrues decline fees, drags down your authorization rate, and feeds processor risk scoring, all for a charge that was never going to clear.

The practical gain is message accuracy. A buyer whose processor has blocked the card needs to hear update your payment method now, with a deadline. A buyer in the generic failure bucket can sit in a softer retry sequence. Sending the first group the second message is a reliable way to lose subscribers quietly, which is exactly the kind of leak that surfaces when you audit how repeat purchases and recurring orders are automated.

Role-specific impact

Use-case example

Real-world scenario

Take a merchant carrying 40,000 active subscriptions with a 3 percent renewal failure rate, roughly 1,200 revoked payment methods per cycle. Under the single reason, all 1,200 entered the same seven day retry and reminder flow. Once the reasons are split and instrumented, suppose a third of them, about 400 subscribers, turn out to be processor blocks. Those 400 received three retry emails promising another attempt that could not succeed, and only reached a card update prompt on day eight. Routing them to that prompt on day one is a small code change against a meaningful slice of involuntary churn.

Implementation checklist

  1. Inventory every consumer of CustomerPaymentMethod.revokedReason, including middleware, ERP sync jobs, and reporting pipelines, not just the storefront app.
  2. Add an explicit RETRY_DECLINED branch, and confirm the default branch degrades safely for enum values that do not exist yet.
  3. Keep reading the reason with a follow up query after the customer_payment_methods/revoke webhook rather than inferring it from the payload.
  4. Split dunning into a hard card update path for RETRY_DECLINED and a retry path for TOO_MANY_CONSECUTIVE_FAILURES.
  5. Log the reason on every revocation so you can measure recovery rate per reason, and establish a baseline before the change ships.
  6. Pin the billing integration to 2027-01 only after the branches are in place, and validate the flow on a development store first.

FAQ

Q: Do we need to upgrade to 2027-01 to benefit from this?

A: Yes. On earlier versions, processor blocks continue to arrive as TOO_MANY_CONSECUTIVE_FAILURES, so the distinction is simply unavailable until the integration moves.

Q: Does the revoke webhook payload change?

A: No. It is identical. Any logic that depends on the specific reason must query CustomerPaymentMethod.revokedReason after the webhook arrives.

Resources

CustomerPaymentMethodRevocationReason enum reference, Admin API 2027-01

Need guidance? Talk to Makro.