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
- Inventory every exhaustive enum switch and status-to-message mapping that reads
CustomerPaymentMethod.revokedReason. - Add
RETRY_DECLINEDto the2027-01code path, with a request to replace the saved payment method. - Keep existing
TOO_MANY_CONSECUTIVE_FAILURESbehavior for older versions and other genuine repeated-failure cases. - When a
customer_payment_methods/revokewebhook arrives, fetch the payment method via Admin GraphQL to determine the reason. The webhook payload itself is unchanged. - 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.
RETRY_DECLINED payment attempt error is not the same field as CustomerPaymentMethod.revokedReason.- Validate schema support in
2027-01and confirm your2026-10path still works. - Unit-test all enum branches, including an unknown value.
- Replay a revoke webhook in staging; verify that the handler performs a follow-up GraphQL read.
- Assert that the processor-blocked case produces a replacement request and no retry job.
- Verify the customer-facing message does not claim that another retry will succeed.

