---
title: New field on the CustomerPaymentMethod object - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: 'https://shopify.dev/changelog/new-field-on-the-customerpaymentmethod-object'
  md: >-
    https://shopify.dev/changelog/new-field-on-the-customerpaymentmethod-object.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2021-09-13T18:46:13-04:00'
  postedAt: '2021-10-01T00:00:00-04:00'
  updatedAt: '2024-02-02T10:05:02-05:00'
  effectiveAt: '2021-10-01T00:00:00-04:00'
---

October 1, 2021

Tags:

* API

# New field on the CustomerPaymentMethod object

As of the 2020-10 version of the GraphQL API, a new field is now present on the `CustomerPaymentMethod` object: `revokedReason`. This field can contain one of the following values:

* `AUTHORIZE_NET_GATEWAY_NOT_ENABLED`
* `AUTHORIZE_NET_RETURNED_NO_PAYMENT_METHOD`
* `FAILED_TO_UPDATE_CREDIT_CARD`
* `STRIPE_API_AUTHENTICATION_ERROR`
* `STRIPE_API_INVALID_REQUEST_ERROR`
* `STRIPE_GATEWAY_NOT_ENABLED`
* `STRIPE_PAYMENT_METHOD_NOT_CARD`
* `STRIPE_RETURNED_NO_PAYMENT_METHOD`

Updated the customerPaymentMethod API to allow querying for a reason on why a payment method was revoked.

For more information about CustomerPaymentMethod, visit our [developer documentation](https://shopify.dev/api/admin/graphql/reference/orders/custompaymentmethod).
