Skip to content

Shopify Dude Fix

Shopify Subscription Payment Method Revoked With RETRY_DECLINED? Stop Automatic Retries

API 2027-01 distinguishes processor-blocked subscription payment methods from repeated failures. Update your revokedReason handling and customer recovery flow.

Quick answer: In Admin GraphQL API 2027-01, CustomerPaymentMethod.revokedReason can return RETRY_DECLINED when a processor blocks further retries. Treat this as a payment-method replacement case, not a reason to schedule another charge.
On this page

Why this happens

Subscription dunning code often treats every revoked card as an ordinary sequence of failed attempts. A processor-level prohibition is different: another automatic attempt against the same stored instrument is not the recovery path. Shopify announced the new reason on November 4, 2026; earlier API versions still represent these cases as TOO_MANY_CONSECUTIVE_FAILURES.

Fix the implementation

  1. Inventory every exhaustive enum switch and status-to-message mapping that reads CustomerPaymentMethod.revokedReason.
  2. Add RETRY_DECLINED to the 2027-01 code path, with a request to replace the saved payment method.
  3. Keep existing TOO_MANY_CONSECUTIVE_FAILURES behavior for older versions and other genuine repeated-failure cases.
  4. When a customer_payment_methods/revoke webhook arrives, fetch the payment method via Admin GraphQL to determine the reason. The webhook payload itself is unchanged.
  5. Stop retry queues from repeatedly charging a revoked instrument. Maintain your normal idempotency and subscription state reconciliation.

Practical example

switch (paymentMethod.revokedReason) {
  case 'RETRY_DECLINED':
    return { action: 'request_new_payment_method', retry: false };
  case 'TOO_MANY_CONSECUTIVE_FAILURES':
    return { action: 'review_dunning_policy', retry: false };
  default:
    return { action: 'review_revocation', retry: false };
}

This is application-side decision logic, not a Shopify API mutation. Do not automatically retry any revoked payment method merely because the reason is unfamiliar.

Common misunderstanding: The new enum value is not added to the revoke webhook body, and a RETRY_DECLINED payment attempt error is not the same field as CustomerPaymentMethod.revokedReason.
How to test this

  1. Validate schema support in 2027-01 and confirm your 2026-10 path still works.
  2. Unit-test all enum branches, including an unknown value.
  3. Replay a revoke webhook in staging; verify that the handler performs a follow-up GraphQL read.
  4. Assert that the processor-blocked case produces a replacement request and no retry job.
  5. Verify the customer-facing message does not claim that another retry will succeed.